aboutsummaryrefslogtreecommitdiff
path: root/libc
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 /libc
parent5c0cc57a31c826541f89884234fe566751fba99a (diff)
downloadskiboot-123071788f97a6c1acefbf0841f7d07126ab99ef.zip
skiboot-123071788f97a6c1acefbf0841f7d07126ab99ef.tar.gz
skiboot-123071788f97a6c1acefbf0841f7d07126ab99ef.tar.bz2
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 'libc')
-rw-r--r--libc/test/Makefile.check7
1 files changed, 0 insertions, 7 deletions
diff --git a/libc/test/Makefile.check b/libc/test/Makefile.check
index dc9f1ff..57f6cf7 100644
--- a/libc/test/Makefile.check
+++ b/libc/test/Makefile.check
@@ -14,16 +14,9 @@ $(LIBC_TEST:%=%-check) : %-check: %
$(LIBC_TEST) : % : %.c
$(HOSTCC) $(HOSTCFLAGS) -O0 -g -I include -I . -I libfdt -I libc/include -o $@ $<
-$(LIBC_TEST): % : %.d
-
$(LIBC_TEST:%=%-gcov): %-gcov : %.c %
$(HOSTCC) $(HOSTCFLAGS) -fprofile-arcs -ftest-coverage -lgcov -O0 -g -I include -I . -I libfdt -I libc/include -o $@ $<
-$(LIBC_TEST:%=%-gcov): % : $(%.d:-gcov=)
-
-libc/test/%.d: libc/test/%.c
- $(HOSTCC) $(HOSTCFLAGS) -I include -I . -I libfdt -I libc/include -M $< > $@
-
-include $(wildcard libc/test/*.d)
clean: libc-test-clean