How to Find a Tutorial on The Writing of Makefiles

Basic Tutorial? Makefiles in Eclipse CDT

This could be of some help for you:

www.cs.umanitoba.ca/~eclipse/7-EclipseCDT.pdf

Resources for learning GNUMake?

The definitive guide is http://www.gnu.org/software/make/manual/make.html

There is an o'reilly book "Managing Projects with GNU Make" which has more explanation.
You can also uses the earlier editions, they don't cover GnuMake specifically but are a lot thinner.

Make is a dirty secret among developers - none of us understand it, we just borrow a make script from somebody else and change it. I imagine only one script was ever written from scratch (probably by the creator of the tool).

When you need to do more than the simple example most people either switch to a more modern build system like Ant or roll their own in Perl/Python/etc.

Linux Makefile structure and documentation

The best tutorial that I have found for makefiles so far has been this one. One of your other options is to learn autotools and let them produce your makefiles for you, though a little outdated this is the tutorial that I found best to learn from.

Creating/improving a makefile

Here is a generic Makefile I created for C, it can be easily adapted to C++:

Generic Makefile for Linux

and here is a great tutorial on how to write a makefile.



Related Topics



Leave a reply



Submit