
all: thr1 thr2 count count_spin

thr1: thr1.cc
	gcc -o thr1 thr1.cc -lpthread

thr2: thr2.cc
	gcc -o thr2 thr2.cc -lpthread

count: count.cc
	gcc  -o count count.cc -lpthread

count_spin: count_spin.cc
	gcc  -o count_spin count_spin.cc -lpthread

clean:
	rm -f *.o thr1 thr2 count count_spin

