From: Michael Brown Date: Sat, 18 Apr 2009 14:55:01 +0000 (+0100) Subject: [build] Provide mechanism for listing constituent object sizes X-Git-Tag: v0.9.8~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ead44dba8942e85730d545e9696cdf31433942d4;p=thirdparty%2Fipxe.git [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. --- diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 24005bdce..675129171 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 #