Browse Source

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 5 years ago committed by David Gibson
parent
commit
0eb1cb0b53
  1. 2
      Makefile

2
Makefile

@ -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 $<

Loading…
Cancel
Save