.PHONY : all
all : lab8_tests

.PHONY : clean
clean :
	rm -fv *~ *.o lab8_tests

# $< is the first dependency
# $^ is all the dependencies
# $@ is the target

.cpp.o :
	g++ $< -std=c++11 -c -Wall -o $@

lab8_tests : lab8.o lab8_test.o
	g++ $^ -lgtest -lgtest_main -lpthread  -o $@
