.PHONY : all
all : searchsort_tests 

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

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

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

searchsort_tests : searchsort.o searchsort_tests.o
	g++ $^ -lgtest -lgtest_main -lpthread  -o $@


