|
Sample Makefile# This is a comment (1) # Sample makefile (2) CPP = /home/lacher/cop4530/cpp # (3) exec: exec.o xfile.o # dependency (4) g++ -o exec exec.o xfile.o # shell command (TAB req'd) (5) exec.o: exec.cpp xfile.h # dependency (6) g++ -c -I$(CPP) exec.cpp # shell command (7) xfile.o: xfile.h xfile.cpp # dependency (8) g++ -c -I$(CPP) xfile.cpp # shell command (9) |
|