gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > makefile how to??

#101469 - smoothingeye - Tue Sep 05, 2006 8:13 pm

say i have file in serveral folders and my m ain file is on another how do i ask the compiler to looking other folders for dependency .


seewan

#101476 - gmiller - Tue Sep 05, 2006 8:37 pm

There are many different ways of doing this. You can hardcode the relative file names into the make file or even the absolute value into the make file. The prefernece is up to you. Generally how you do it depend on your preference on the build environment. When I create a project I just put all the code I want compiled into my source directory in the project and my make file finds all the files and compiles then with the output going into my build directory. Then the link step links all of them into an elf. My current make file is tageted at GBA code but with minor changes it can do DS. See http://forum.gbadev.org/viewtopic.php?t=10923 for a sample setup.