Browse Source

[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.
tags/v0.9.4
Michael Brown 16 years ago
parent
commit
c06e6d0635
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/Makefile.housekeeping

+ 1
- 1
src/Makefile.housekeeping View File

@@ -179,7 +179,7 @@ endef
179 179
 define obj_template
180 180
 
181 181
 	@$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) -DOBJECT=$(4) \
182
-		-Wno-error -M $(1) -MT "$(4)_DEPS" -MG -MP | \
182
+		-Wno-error -MM $(1) -MT "$(4)_DEPS" -MG -MP | \
183 183
 		sed 's/_DEPS\s*:/_DEPS =/' >> $(2)
184 184
 	@$(ECHO_E) '\n$$(BIN)/$(4).o : $(1) $$(MAKEDEPS) $$($(4)_DEPS)' \
185 185
 		 '\n\t$$(QM)$(ECHO) "  [BUILD] $$@"\n' \

Loading…
Cancel
Save