From 123071788f97a6c1acefbf0841f7d07126ab99ef Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Mon, 15 Dec 2014 18:33:26 +1100 Subject: 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 --- hw/ipmi/test/Makefile.check | 5 ----- 1 file changed, 5 deletions(-) (limited to 'hw/ipmi/test') 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 -- cgit v1.1