瀏覽代碼

[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 年之前
父節點
當前提交
c06e6d0635
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/Makefile.housekeeping

+ 1
- 1
src/Makefile.housekeeping 查看文件

@@ -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…
取消
儲存