david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Generate phony targets, so that we don't get screwed by missing config

header files.
This commit is contained in:
Michael Brown 2005-04-17 15:31:06 +00:00
parent 7b2a0cded1
commit 04a0de1c92
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ endef
define obj_template
@$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) \
-M $(1) -MT "$(4)_DEPS" | tr : = >> $(2)
-M $(1) -MT "$(4)_DEPS" -MG -MP | \
sed 's/$(4)_DEPS[[:space:]]*:/$(4)_DEPS =/' >> $(2)
@echo -e '\n$$(BIN)/$(4).o : $(1) $$(MAKEDEPS) $$($(4)_DEPS)' \
'\n\t$$(RULE_$(3))\n' \
'\nBOBJS += $$(BIN)/$(4).o\n' \