Make doesn't make the object files, the compiler does. Make just asks for the right ones.
Alter the line in your Makefile which calls the compiler, just add a obj/ to the -o switch or similar.
Example: .cpp.o: $(CC) $(CFLAGS) $< -o obj/$@
If makefiles are completely foreign to you, google for a tutorial.
Hello !
I am coding on a game and the generated object files are really cluttering the main source directory.
What is the way to say Make to put the generated object files into for example an obj directory ?
Thanks.
--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
-- Paul Smith Computer programmer
paul@xxxxxxxxxxxxxxxxxx
--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html