makefiles
Anyone got a link to a good place to learn about makefiles, the make command, macros, and all that? Tutorials? Something that assumes you've only used
g++ blah.cpp -o blah -lSDL -lSDL_image
from the command line all your life and you've never used a makefile ever.
I would strongly recommend that you forgo traditional *nix style makefiles. Once you start writing makefiles, you'll want to start writing configuration scripts, and before you know it you'll be in autotools hell. Instead I suggest you learn something like CMake (actually I recommend CMake itself). I find that this greatly simplifies the task of configuring and making my code across a variety of different platforms (both *nix and not). CMake is a makefile generator. You basically write a file from which the CMake tool will generate the appropriate makefile for the underlying platform. I've also heard good things about SCons (a Python based make system), but I've never used it myself. Anyway, I suggest you try one of these other tools instead, and save yourself from the headache of a autoconf/make system.
Cheers,
Rob
Cheers,
Rob
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement