Page 1 of 1

SGDK - changing where .o files are generated?

Posted: Sun Mar 25, 2012 2:21 pm
by djcouchycouch
Hi,

Right now, when I compile my code it generates object (.o) files in the same folder as the source. How can I change it so that all the .o and other intermediate files (language.dat?) go into the out folder?

Thanks!
DJCC

Posted: Mon Mar 26, 2012 10:19 am
by Stef
I guess you have to modify the makefile.gen file.
I will probably to it anyway in future version to keep things cleaner :)

Posted: Sun Apr 15, 2012 2:13 am
by djcouchycouch
I've tweaked makefile.gen to put .o files in the out folder. You can find it here:
http://dl.dropbox.com/u/17303735/makefile.gen

It's basically just doing it for .s and .c files at the moment since they're all what I'm using right now. I haven't done anything for the other types of files.

DJCC

Posted: Sun Apr 15, 2012 5:21 pm
by Stef
Thanks for the patch, i added some mkdir command for sources located in sub 'src' / 'res' directory else you obtain some errors =)