Makefile for the conc.cpp Program (this version may work on non-Macs)
Note: you need to make sure that the indented lines below are made with
TABS. If you just cut and paste from your browser window, the tabs
may be 'translated' into a series of blanks. So check and change the
indents back into tabs or you will get syntax errors.
conc: conc.o sem.o
g++ -o conc conc.o sem.o -lpthread -lposix4
conc.o: conc.cpp sem.h
g++ -c conc.cpp
sem.o: sem.cpp sem.h
g++ -c sem.cpp