CCFLAGS=-g -Wno-deprecated -I . -I .. -I ./Test -I ./Include -I ../Include INCLUDE=$(wildcard ../*.h) TESTSOURCE=$(wildcard test*.cc) TESTBIN=$(patsubst %.cc, %, $(TESTSOURCE)) TEST=$(patsubst test_%, %, $(TESTBIN)) all: $(TESTBIN) tests: $(TEST) $(TESTBIN): test_% : test_%.cc $(INCLUDE) g++ ${CCFLAGS} -o test_$* test_$*.cc $(TEST): % : test_% ./test_$* clean: rm -f *.o *~ ${TEST}