Page 1 of 1

Makefile question

Posted: Wed Feb 24, 2010 2:06 pm
by n315on
Hello All,

I have been slowly learning to program the DS over the last couple of months, and got a couple of simple program going (Craps game and tank demo). Got to say, I really enjoy the challange of programming, thanks to all that put thier time into developing these libs/tools.

My question is should I be using the standard Makefile supplied in the current template, or do I need to modify it based on what I am doing (sprites/sound,etc). For example, the MAXMOD documentation has you edit the make file. To be honest, I have been making it work by using the makefiles in the examples provided, and/or manually doing conversions using WINGRIT and the mmutil.exe.

Thanks,
Greg

Re: Makefile question

Posted: Wed Feb 24, 2010 7:16 pm
by vuurrobin
the makefiles in the examples are set up to work without (much) modification, so people can work on projects even if they don't know anything about makefiles. that said, if you want to modify the makefile to include grit, maxmod or anything, then go ahead.

Re: Makefile question

Posted: Thu Feb 25, 2010 4:42 am
by WinterMute
It's good practice to avoid manual conversions if at all possible - automation makes it easier to replicate a build and helps avoid human error.

The template & example Makefiles are there for copying as needed so that gnu make novices don't have to spend a lot of time learning the make language in order to build simple projects. You can and should modify these as needed for projects which need extra customisation.

Re: Makefile question

Posted: Thu Feb 25, 2010 1:00 pm
by n315on
Thanks for the feedback. I'll keep using the examples, and try to not use manual conversion as much.