1 include ../benchmarks.mk
4 NORMAL_TESTS := testcase1 testcase2 testcase3
6 WILDCARD_TESTS := $(patsubst %, %_wildcard, $(NORMAL_TESTS))
8 #TESTS := $(NORMAL_TESTS) $(WILDCARD_TESTS)
9 TESTS := $(NORMAL_TESTS)
13 $(WILDCARD_TESTS): CXXFLAGS += -DWILDCARD
15 $(BENCH).o : $(BENCH).h
16 $(CXX) -o $@ $< $(CXXFLAGS) -c $(LDFLAGS)
18 $(BENCH)_wildcard.o : $(BENCH)_wildcard.h
19 $(CXX) -o $@ $< $(CXXFLAGS) -c $(LDFLAGS)
21 $(WILDCARD_TESTS): %_wildcard : %.cc $(BENCH)_wildcard.o
22 $(CXX) -o $@ $< $(CXXFLAGS) $(LDFLAGS)
24 $(NORMAL_TESTS): % : %.cc $(BENCH).o
25 $(CXX) -o $@ $< $(CXXFLAGS) $(LDFLAGS)
28 rm -f *.o *.d $(TESTS)