diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-12-15 18:33:26 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-12-15 18:33:26 +1100 |
commit | 123071788f97a6c1acefbf0841f7d07126ab99ef (patch) | |
tree | 5e609aa06682e17dfaa4d165c93b952c703f3269 /hw/ipmi | |
parent | 5c0cc57a31c826541f89884234fe566751fba99a (diff) | |
download | skiboot-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 'hw/ipmi')
-rw-r--r-- | hw/ipmi/test/Makefile.check | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/ipmi/test/Makefile.check b/hw/ipmi/test/Makefile.check index 364a921..59c7a9b 100644 --- a/hw/ipmi/test/Makefile.check +++ b/hw/ipmi/test/Makefile.check @@ -14,16 +14,11 @@ $(IPMI_TEST:%=%-check) : %-check: % $(IPMI_TEST) : % : %.c $(HOSTCC) $(HOSTCFLAGS) -O0 -g -I include -I . -o $@ $< -$(IPMI_TEST): % : %.d - $(IPMI_TEST:%=%-gcov): %-gcov : %.c % $(HOSTCC) $(HOSTCFLAGS) -fprofile-arcs -ftest-coverage -O0 -g -I include -I . -I libfdt -lgcov -o $@ $< $(IPMI_TEST:%=%-gcov): % : $(%.d:-gcov=) -hw/ipmi/test/%.d: hw/ipmi/test/%.c - $(HOSTCC) $(HOSTCFLAGS) -I include -I . -I libfdt -M $< > $@ - -include $(wildcard hw/ipmi/test/*.d) clean: ipmi-test-clean |