diff options
author | Michael Brown <mcb30@etherboot.org> | 2009-04-18 15:55:01 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2009-04-18 15:56:29 +0100 |
commit | ead44dba8942e85730d545e9696cdf31433942d4 (patch) | |
tree | 34e0325ef338d049898007ad0a6f05fff52cfaea | |
parent | 3d6b8a67f2cc79c593a625a980cae8df021825e0 (diff) | |
download | ipxe-ead44dba8942e85730d545e9696cdf31433942d4.zip ipxe-ead44dba8942e85730d545e9696cdf31433942d4.tar.gz ipxe-ead44dba8942e85730d545e9696cdf31433942d4.tar.bz2 |
[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.
-rw-r--r-- | src/Makefile.housekeeping | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 24005bd..6751291 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 # |