diff options
author | Michael Brown <mcb30@etherboot.org> | 2009-04-17 13:43:35 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2009-04-17 13:43:35 +0100 |
commit | f721067d3565bfec4cca1f65e5be3ce8112de938 (patch) | |
tree | 2f6ecba875e36a30ab4de9c228658efd5ca04f99 /src/Makefile.housekeeping | |
parent | a63ef9207dfad65507f8dfeea643b0f8354f4741 (diff) | |
download | ipxe-f721067d3565bfec4cca1f65e5be3ce8112de938.zip ipxe-f721067d3565bfec4cca1f65e5be3ce8112de938.tar.gz ipxe-f721067d3565bfec4cca1f65e5be3ce8112de938.tar.bz2 |
[build] Kill off the multiple-object-per-source-file mechanism
Now that there are no remaining multiple-object source files, kill off
the mechanism in order to simplify the Makefile.
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 9b7d163..24005bd 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -419,23 +419,6 @@ define src_template @$(MKDIR) -p $(dir $(2)) @$(RM) $(2) @$(TOUCH) $(2) - $(foreach OBJ,$(if $(OBJS_$(4)),$(OBJS_$(4)),$(4)), \ - $(call obj_template,$(1),$(2),$(3),$(OBJ))) - @$(PARSEROM) $(1) >> $(2) - -endef - -# obj_template : generate Makefile rules for a given resultant object -# of a particular source file. (We can have multiple objects per -# source file via the OBJS_xxx list.) -# -# $(1) is the full path to the source file (e.g. "drivers/net/rtl8139.c") -# $(2) is the full path to the .d file (e.g. "bin/deps/drivers/net/rtl8139.d") -# $(3) is the source type (e.g. "c") -# $(4) is the object name (e.g. "rtl8139") -# -define obj_template - @$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) -DOBJECT=$(4) \ -Wno-error -MM $(1) -MG -MP | \ sed 's/\.o\s*:/_DEPS =/' >> $(2) @@ -454,6 +437,7 @@ define obj_template '\n$(2) : $$($(4)_DEPS)\n' \ '\nTAGS : $$($(4)_DEPS)\n' \ >> $(2) + @$(PARSEROM) $(1) >> $(2) endef |