[gameprogrammer] Re: Makefile: How to put .o Files into a different directory

Hello !


> Make doesn't make the object files, the compiler does.  Make just asks
> for the right ones.

That is clear.

> 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.


1000% Thanks. I am not a coding newbie,
but sometimes i am sitting on the line.


CU


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: