From: Michael Brown Date: Mon, 24 Mar 2008 00:28:55 +0000 (+0000) Subject: [Makefile] Use -MM instead of -M in dependency generation X-Git-Tag: v0.9.4~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c06e6d063582a96982449b0238b0081ae8da0114;p=thirdparty%2Fipxe.git [Makefile] Use -MM instead of -M in dependency generation Using -MM strips out any system header files from the dependency list, which means that we could safely use an external stdarg.h if we wanted to. --- diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index ba306ca50..fe3addc94 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -179,7 +179,7 @@ endef define obj_template @$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) -DOBJECT=$(4) \ - -Wno-error -M $(1) -MT "$(4)_DEPS" -MG -MP | \ + -Wno-error -MM $(1) -MT "$(4)_DEPS" -MG -MP | \ sed 's/_DEPS\s*:/_DEPS =/' >> $(2) @$(ECHO_E) '\n$$(BIN)/$(4).o : $(1) $$(MAKEDEPS) $$($(4)_DEPS)' \ '\n\t$$(QM)$(ECHO) " [BUILD] $$@"\n' \