Makefile: pass $(CFLAGS) also during dependency generation

When Valgrind is not available NO_VALGRIND is set in CFLAGS, and this
is needed during dependency generation as well as compilation.
Message-Id: <20191210163033.9888-1-emaste@freefall.freebsd.org>

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
Ed Maste 2019-12-10 16:30:33 +00:00 committed by David Gibson
parent c40aeb60b4
commit 0eb1cb0b53
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ clean: libfdt_clean pylibfdt_clean tests_clean


%.d: %.c %.d: %.c
@$(VECHO) DEP $< @$(VECHO) DEP $<
$(CC) $(CPPFLAGS) -MM -MG -MT "$*.o $@" $< > $@ $(CC) $(CPPFLAGS) $(CFLAGS) -MM -MG -MT "$*.o $@" $< > $@


%.d: %.S %.d: %.S
@$(VECHO) DEP $< @$(VECHO) DEP $<