Makefile for the HiHo 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.

HiHo: HiHo.o sem.o
	g++ -o HiHo HiHo.o sem.o -lpthread -lposix4
HiHo.o: HiHo.cpp sem.h
	g++ -c HiHo.cpp
sem.o: sem.cpp sem.h
	g++ -c sem.cpp