The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL Makefile with different sub-directories
AbdelOuery


Joined: 28 Aug 2014
Posts: 4
Location: Morocco
Hello,
I just want to ask if anybody could supply me with a Makefile or make me one, I've been suffering for days trying to get this to work, so it goes like this: I have the main directory that's like this:


Game
||
||
||
||
inc src obj

So basically i want the header (.hpp or .h) files to be in the "inc" folder, and the source files (.c or .cpp) in the "src" folder, with .obj files in the "obj" directory, making it compile the executable in the root folder.

I would appreciate any help.
Thanks in advance.[/b]