http://sourceforge.net/projects/gcmakefile/
An easily-customizable makefile template for C/C++ programs. Once
customized, without any changes it can be used to build all the same
kind of programs, even when source files are renamed, added or
removed.