Make File Page:

examples:

wget http://home.adelphi.edu/~pe16132/csc270/note/SampleCode/cplus/guySample2/guy2.cpp

wget http://home.adelphi.edu/~pe16132/csc270/note/SampleCode/cplus/guySample2/guy2.h

wget http://home.adelphi.edu/~pe16132/csc270/note/SampleCode/cplus/guySample2/guy2app.cpp

wget http://home.adelphi.edu/~pe16132/csc270/note/SampleCode/cplus/guySample2/Makefile

wget http://home.adelphi.edu/~pe16132/csc270/note/SampleCode/cplus/guySample2/MakefileBetter

http://www.codeproject.com/Articles/31488/Makefiles-in-Linux-An-Overview

Makefile

Note that this contains 3 compilation steps:

1) guy2.o is created whenever guy2.cpp or guy2.h changes

2) guy2app.o is created whenever guy2app.cpp or guy2.h is created.

3) guy2app is created whenever guy2app.o or guy2.o changes

In MakefileBetter