Sign in to follow this  

makefiles

This topic is 3294 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

This topic is 3294 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this