mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-09 04:55:26 +00:00
[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.
This commit is contained in:
parent
dbf8a02e8f
commit
c06e6d0635
@ -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' \
|
||||
|
Loading…
Reference in New Issue
Block a user