Jump to content
  • Advertisement
Sign in to follow this  
icecubeflower

makefiles

This topic is 3509 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!