Define -DOBJECT when generating Makefile rules, for consistency.
authorMichael Brown <mcb30@etherboot.org>
Tue, 24 Jul 2007 14:19:09 +0000 (15:19 +0100)
committerMichael Brown <mcb30@etherboot.org>
Tue, 24 Jul 2007 14:19:09 +0000 (15:19 +0100)
Inhibit -Werror when generating Makefile rules, to prevent warnings
from killing the dependency list.

src/Makefile.housekeeping

index ccf4dc1..108cc3a 100644 (file)
@@ -118,8 +118,8 @@ endef
 #
 define obj_template
 
-       @$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) \
-               -M $(1) -MT "$(4)_DEPS" -MG -MP | \
+       @$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) -DOBJECT=$(4) \
+               -Wno-error -M $(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' \