summaryrefslogtreecommitdiffstats
path: root/core/test/Makefile.check
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-12-15 18:33:26 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-12-15 18:33:26 +1100
commit123071788f97a6c1acefbf0841f7d07126ab99ef (patch)
tree5e609aa06682e17dfaa4d165c93b952c703f3269 /core/test/Makefile.check
parent5c0cc57a31c826541f89884234fe566751fba99a (diff)
downloadblackbird-skiboot-123071788f97a6c1acefbf0841f7d07126ab99ef.tar.gz
blackbird-skiboot-123071788f97a6c1acefbf0841f7d07126ab99ef.zip
Fix makefile dependency generation, especially for HOSTCC
Instead of having individual rules to generate .d, add -MMD to HOSTCC parameters, and just include the generated .d files. This fixes a few weird dependency issues. Also, make the mambo hello_kernel test depend on skiboot.lid Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/test/Makefile.check')
-rw-r--r--core/test/Makefile.check9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/test/Makefile.check b/core/test/Makefile.check
index 7ffbfc4e..15a662fc 100644
--- a/core/test/Makefile.check
+++ b/core/test/Makefile.check
@@ -19,18 +19,9 @@ $(CORE_TEST) : core/test/stubs.o
$(CORE_TEST) : % : %.c
$(HOSTCC) $(HOSTCFLAGS) -O0 -g -I include -I . -I libfdt -o $@ $< core/test/stubs.o
-$(CORE_TEST): % : %.d
-
$(CORE_TEST:%=%-gcov): %-gcov : %.c %
$(HOSTCC) $(HOSTCFLAGS) -fprofile-arcs -ftest-coverage -O0 -g -I include -I . -I libfdt -lgcov -o $@ $< core/test/stubs.o
-$(CORE_TEST:%=%-gcov): % : $(%.d:-gcov=)
-
-core/test/stubs.o: core/test/stubs.d
-
-core/test/%.d: core/test/%.c
- $(HOSTCC) $(HOSTCFLAGS) -I include -I . -I libfdt -M $< > $@
-
-include $(wildcard core/test/*.d)
clean: core-test-clean
OpenPOWER on IntegriCloud