summaryrefslogtreecommitdiff
path: root/makefiles/Makefile.top
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2010-12-04 23:12:01 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2010-12-04 23:12:01 +0000
commit3b8cb13f0032d1a5f3e2eec9f59a854c5acbb041 (patch)
treee5ce2c0b35a2d4ab4af337a14e2934a178b6a5ba /makefiles/Makefile.top
parentc09ca63f9efb2a9698de2f82a98e54d1706cd707 (diff)
downloadbuildsystem-3b8cb13f0032d1a5f3e2eec9f59a854c5acbb041.tar.gz
buildsystem-3b8cb13f0032d1a5f3e2eec9f59a854c5acbb041.tar.bz2
Add TEST_PREREQS support and make TESTCFLAGS postfix the CFLAGS
svn path=/trunk/tools/buildsystem/; revision=10991
Diffstat (limited to 'makefiles/Makefile.top')
-rw-r--r--makefiles/Makefile.top6
1 files changed, 4 insertions, 2 deletions
diff --git a/makefiles/Makefile.top b/makefiles/Makefile.top
index ca6a4f6..4600a79 100644
--- a/makefiles/Makefile.top
+++ b/makefiles/Makefile.top
@@ -139,6 +139,8 @@ DISTCLEAN_ITEMS :=
TEST_ITEMS :=
# List of targets to run for testing
TEST_TARGETS :=
+# List of targets which are prerequisites for running tests
+TEST_PREREQS :=
# List of items to (un)install
INSTALL_ITEMS :=
@@ -216,7 +218,7 @@ endif
all: $(PRE_TARGETS) $(OUTPUT) $(POST_TARGETS)
# Build and execute testsuite
-test: all $(TEST_BINARIES) $(TEST_TARGETS)
+test: all $(TEST_PREREQS) $(TEST_BINARIES) $(TEST_TARGETS)
$(VQ)$(ECHO) $(ECHOFLAGS) " TEST: Testing complete"
# Compute coverage
@@ -557,7 +559,7 @@ ifeq ($(WANT_TEST),yes)
TESTLDFLAGS += -L$(BUILDDIR)/ -l$(COMPONENT)
endif
- TESTCFLAGS += $(CFLAGS)
+ TESTCFLAGS := $(CFLAGS) $(TESTCFLAGS)
TESTCXXFLAGS += $(CXXFLAGS)
TESTLDFLAGS += $(LDFLAGS)