#112889 - misterDtD - Thu Dec 21, 2006 5:55 am
I heard makefiles were supposed to make comiling do alot faster, but it doesn't seem faster than using a BATCH file.
So, is it my makefile, if so how could I make it better?
~DtD
BTW> Can I make certain files compile in ARM code and the rest in THUMB code? because the only function in my program that needs the ARM code is my interrupt function.
PS> I'm including all my resources (graphics, music, ect.) via "#include" directives, but I heard about linking them in the makefile, how do I do this, is it what's causing the long compile time?
PS2> I'm new to makefiles, so please explain what you post, don't just post a bunch of make "code".
PS3> I saw the make file tutorial in the documentation section, but it's for the old version of DevkitAdv
So, is it my makefile, if so how could I make it better?
Code: |
IN= infile
OUT= outfile CC= arm-eabi-gcc OBJCOPY= arm-eabi-objcopy .PHONY : build build: $(CC) -mthumb-interwork -marm -c $(IN).c $(CC) -specs=gba.specs -marm-interwork -marm $(IN).o -o $(IN).elf $(OBJCOPY) -v -O binary $(IN).elf $(OUT).gba -@gbafix $(OUT).gba .PHONY : clean clean: @rm -fv $(IN).o @rm -fv $(IN).elf #EOF |
~DtD
BTW> Can I make certain files compile in ARM code and the rest in THUMB code? because the only function in my program that needs the ARM code is my interrupt function.
PS> I'm including all my resources (graphics, music, ect.) via "#include" directives, but I heard about linking them in the makefile, how do I do this, is it what's causing the long compile time?
PS2> I'm new to makefiles, so please explain what you post, don't just post a bunch of make "code".
PS3> I saw the make file tutorial in the documentation section, but it's for the old version of DevkitAdv