Sidetrack: Make/Makefiles (cont)
make is driven by dependencies given in a Makefile
A dependency specifies
target : source1 source2 …
commands to build target from sources
|
e.g.
num : numerals.o stack.o
gcc -o num numerals.o stack.o
|
Rule: target is rebuilt if older than any sourcei
|