(Latest Revision: Tue Oct 10 00:19:05 PDT 2017 ) Makefile

Makefile



# To compile the program put dmnd.cpp, sem.cpp,
# sem.h, and this file: Makefile in a directory
# on one of the lab Macs.  Then type 
#         make
# at the shell prompt while 'in' the directory

dmnd: dmnd.o sem.o
	g++ -o dmnd dmnd.o sem.o
dmnd.o: dmnd.cpp sem.h
	g++ -c dmnd.cpp
sem.o: sem.cpp sem.h
	g++ -c sem.cpp