summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2009-04-18 16:55:01 +0200
committerMichael Brown2009-04-18 16:56:29 +0200
commitead44dba8942e85730d545e9696cdf31433942d4 (patch)
tree34e0325ef338d049898007ad0a6f05fff52cfaea /src/Makefile.housekeeping
parent[build] Remove obsolete linker script files (diff)
downloadipxe-ead44dba8942e85730d545e9696cdf31433942d4.tar.gz
ipxe-ead44dba8942e85730d545e9696cdf31433942d4.tar.xz
ipxe-ead44dba8942e85730d545e9696cdf31433942d4.zip
[build] Provide mechanism for listing constituent object sizes
You can now type e.g. make bin/rtl8139.rom.sizes in order to see the (uncompressed) sizes of all of the object files linked in to bin/rtl8139.rom. This should make it easier to identify relevant code bloat.
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 24005bdc..67512917 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -657,6 +657,8 @@ define objs_list
endef
$(BIN)/%.objs : $(BIN)/%.tmp
$(Q)$(ECHO) $(call objs_list,$<)
+$(BIN)/%.sizes : $(BIN)/%.tmp
+ $(Q)$(SIZE) -t $(foreach OBJ,$(call objs_list,$<),$(BIN)/$(OBJ).o)
# Get dependency list for the specified target
#