summaryrefslogtreecommitdiffstats
blob: f51828ef3aaff43833b2834cd02304400158793a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
UNITTEST_TARGET = QA/UnitTest/checker
UNITTEST_SOURCES += \
	QA/UnitTest/checker.cpp
UNITTEST_OBJECTS = \
	$(UNITTEST_SOURCES:.cpp=.o)

TEST_TARGETS += check

CLEANFILES += $(UNITTEST_TARGET)
DEPS += $(UNITTEST_SOURCES:.cpp=.dep)

.PHONY: check
check: $(UNITTEST_TARGET)
	$(TEST_RUNNER) ./$(UNITTEST_TARGET)

$(UNITTEST_TARGET): $(CPPUNIT_TARGET) $(UNITTEST_OBJECTS) $(UNITTEST_LIBS) $(BUNDLED_LIBS)
	$(QUIET_LINK)$(CXX) -o $(UNITTEST_TARGET) $(UNITTEST_OBJECTS) $(LDFLAGS) $(CPPUNIT_TARGET) $(UNITTEST_LIBS) $(BUNDLED_LIBS) $(LIBS)