summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2007-07-24 16:19:09 +0200
committerMichael Brown2007-07-24 16:19:09 +0200
commitf0acd8d7a7d885f218509ef048004e0897a31573 (patch)
treef00abcb4ea437531590649d20e2a2cd12694c22d /src/Makefile.housekeeping
parentInclude errno.h in the few drivers which use it, rather than in nic.h (diff)
downloadipxe-f0acd8d7a7d885f218509ef048004e0897a31573.tar.gz
ipxe-f0acd8d7a7d885f218509ef048004e0897a31573.tar.xz
ipxe-f0acd8d7a7d885f218509ef048004e0897a31573.zip
Define -DOBJECT when generating Makefile rules, for consistency.
Inhibit -Werror when generating Makefile rules, to prevent warnings from killing the dependency list.
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index ccf4dc11..108cc3ab 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -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' \