summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2008-03-24 01:28:55 +0100
committerMichael Brown2008-03-24 01:28:55 +0100
commitc06e6d063582a96982449b0238b0081ae8da0114 (patch)
tree39da4cfb9082446acdebd4dcf2e66649243b92df /src/Makefile.housekeeping
parent[libc] Use __builtin_va_list et al in stdarg.h (diff)
downloadipxe-c06e6d063582a96982449b0238b0081ae8da0114.tar.gz
ipxe-c06e6d063582a96982449b0238b0081ae8da0114.tar.xz
ipxe-c06e6d063582a96982449b0238b0081ae8da0114.zip
[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.
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index ba306ca5..fe3addc9 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' \