all: driver threadDemo1 threadDemo2 threadDemo3 pipe1 pipe2

driver: Counter.o counterTester.o
	g++ Counter.o counterTester.o -o driver

Counter.o: Counter.h Counter.cc
	g++ -c Counter.cc

counterTester.o: Counter.h counterTester.cc
	g++ -c counterTester.cc -o counterTester.o

threadDemo1: threadDemo1.cc
	g++ threadDemo1.cc -lpthread -lposix4 -o threadDemo1

threadDemo2: threadDemo2.cc
	g++ threadDemo2.cc -lpthread -lposix4 -o threadDemo2

threadDemo3: threadDemo3.cc
	g++ threadDemo3.cc -lpthread -lposix4 -o threadDemo3

pipe1: pipeEx1.cc
	g++ pipeEx1.cc -o pipe1

pipe2: pipeEx2.cc
	g++ pipeEx2.cc -o pipe2







