aboutsummaryrefslogtreecommitdiff
path: root/libflash
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 /libflash
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 'libflash')
-rw-r--r--libflash/test/Makefile.check2
1 files changed, 1 insertions, 1 deletions
diff --git a/libflash/test/Makefile.check b/libflash/test/Makefile.check
index 54a7890..d6aac3c 100644
--- a/libflash/test/Makefile.check
+++ b/libflash/test/Makefile.check
@@ -22,7 +22,7 @@ $(LIBFLASH_TEST) : % : %.c
$(LIBFLASH_TEST:%=%-gcov): %-gcov : %.c %
$(HOSTCC) $(HOSTCFLAGS) -fprofile-arcs -ftest-coverage -lgcov -O0 -g -I include -I . -o $@ $< libflash/test/stubs.o
-$(LIBFLASH_TEST:%=%-gcov): % : $(%.d:-gcov=)
+-include $(wildcard libflash/test/*.d)
clean: libflash-test-clean