1 TEST_DIRS := $(shell cd $(TOP); find tests -type d)
2 TEST_SRCS := $(shell cd $(TOP); find tests -type f -name '*.cpp')
3 TEST_OBJS := $(TEST_SRCS:.cpp=.o)
5 ALL_DIRS += $(TEST_DIRS)
6 ALL_EXES += test-all$(binext)
7 ALL_OBJS += $(TEST_OBJS)
15 test-all$(binext): $(BASE_OBJS) $(TEST_OBJS)
18 $(VERBOSE) $(CXX) -o "$@" $(LDFLAGS) $^ $(TEST_LIBS)
20 run-test-all: test-all$(binext)
21 @echo "test: test-all$(binext)"
22 $(VERBOSE) ./test-all$(binext)
24 tests: test-all$(binext)