all: driver sigtest timeserver timeclient

driver: Counter.o counterTester.o
	g++ counterTester.o Counter.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

sigtest: sigtest.c
	g++ sigtest.c -o sigtest

timeserver: timeserver.c
	g++ -o timeserver timeserver.c -lsocket -lnsl

timeclient: tcpclient.c 
	g++ -o timeclient tcpclient.c -lsocket -lnsl

