TESTS: Revert changes to module Makefile

The recent changes were made in attempt to fix the test building
for NDS target, but since we're not building tests there, these
changes are reverted for the sake of cleaner code.
This commit is contained in:
Eugene Sandulenko 2017-01-23 21:34:47 +01:00
parent 4212734b1e
commit 37bb3abce4

View file

@ -43,14 +43,8 @@ endif
test: test/runner
./test/runner
test/runner: test/runner.o $(TEST_LIBS)
$(QUIET_LINK)$(LD) $(TEST_CXXFLAGS) $(CPPFLAGS) $(TEST_CFLAGS) -o $@ $+ $(TEST_LDFLAGS)
test/runner.cpp: $(TESTS)
@mkdir -p test
$(srcdir)/test/cxxtest/cxxtestgen.py $(TEST_FLAGS) -o $@ $+
test/runner.o: test/runner.cpp
$(QUIET_CXX)$(CXX) $(TEST_CXXFLAGS) $(CPPFLAGS) $(TEST_CFLAGS) -c $(<) -o $@
test/runner: test/runner.cpp $(TEST_LIBS)
$(QUIET_CXX)$(CXX) $(TEST_CXXFLAGS) $(CPPFLAGS) $(TEST_CFLAGS) -o $@ $+ $(TEST_LDFLAGS)
clean: clean-test
clean-test: