SGDK - changing where .o files are generated?

SGDK only sub forum

Moderator: Stef

Post Reply
djcouchycouch
Very interested
Posts: 710
Joined: Sat Feb 18, 2012 2:44 am

SGDK - changing where .o files are generated?

Post by djcouchycouch » Sun Mar 25, 2012 2:21 pm

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

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Mon Mar 26, 2012 10:19 am

I guess you have to modify the makefile.gen file.
I will probably to it anyway in future version to keep things cleaner :)

djcouchycouch
Very interested
Posts: 710
Joined: Sat Feb 18, 2012 2:44 am

Post by djcouchycouch » Sun Apr 15, 2012 2:13 am

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

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sun Apr 15, 2012 5:21 pm

Thanks for the patch, i added some mkdir command for sources located in sub 'src' / 'res' directory else you obtain some errors =)

Post Reply