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 --- libc/test/Makefile.check | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libc/test') 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 -- cgit v1.1