Make File Page:

all in wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio/makefileTests.tar

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

In samplemake1

See how one function is not included in the main.c. It's prototype is in its own h file. That h file is included in the main.c

make with make -f mkfile.

Notice all .w is wrong in that it does not indicate consider changes to h file as need for recompilation

In samplemake2

See how -c is used to suppress linking until all objects are made.

See how .h is included. Use this for your project.