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
Simple Directmedia Layer Forums
SDL Makefile with different sub-directories
AbdelOuery
Joined: 28 Aug 2014
Posts: 4
Location: Morocco
Posted: Mon Aug 10, 2015 11:45 pm
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]