Define -DOBJECT when generating Makefile rules, for consistency.
Inhibit -Werror when generating Makefile rules, to prevent warnings from killing the dependency list.
This commit is contained in:
parent
3f338b7b80
commit
f0acd8d7a7
|
@ -118,8 +118,8 @@ endef
|
||||||
#
|
#
|
||||||
define obj_template
|
define obj_template
|
||||||
|
|
||||||
@$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) \
|
@$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) -DOBJECT=$(4) \
|
||||||
-M $(1) -MT "$(4)_DEPS" -MG -MP | \
|
-Wno-error -M $(1) -MT "$(4)_DEPS" -MG -MP | \
|
||||||
sed 's/_DEPS\s*:/_DEPS =/' >> $(2)
|
sed 's/_DEPS\s*:/_DEPS =/' >> $(2)
|
||||||
@echo -e '\n$$(BIN)/$(4).o : $(1) $$(MAKEDEPS) $$($(4)_DEPS)' \
|
@echo -e '\n$$(BIN)/$(4).o : $(1) $$(MAKEDEPS) $$($(4)_DEPS)' \
|
||||||
'\n\t$$(QM)echo " [BUILD] $$@"\n' \
|
'\n\t$$(QM)echo " [BUILD] $$@"\n' \
|
||||||
|
|
Reference in New Issue