SOURCE FILE: Makefile


#
# To compile the program, put Makefile, sem.h, sem.cpp
# and worker.cpp in a directory, and type 
#
# make
#
# while in that directory.
#
# 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, possibly the tabs will be 'translated' into
# a series of blanks.  So check and change the indents back
# into tabs or you will get syntax errors.
#

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