aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-05-07 19:26:53 +0000
committerRob Landley <rob@landley.net>2006-05-07 19:26:53 +0000
commitf8a808426745ee5f4e5cc76ff1fb9c484c315195 (patch)
tree98685847c9ee70e5997466e29db22f8d46b30e36 /Makefile
parent9fb272a222c8c25dbd99d7c186f668516d6b3ebe (diff)
downloadbusybox-f8a808426745ee5f4e5cc76ff1fb9c484c315195.tar.gz
Add "make bloatcheck" to run Matt Mackall's bloat-o-meter. Copy an old
busybox_unstripped to busybox_old, build a new version, and "make bloatcheck" to see a detailed breakdown of the size difference.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 974048fb9..a16a98c64 100644
--- a/Makefile
+++ b/Makefile
@@ -132,6 +132,8 @@ help:
@echo ' uninstall'
@echo
@echo 'Development:'
+ @echo ' bloatcheck - show size difference between busybox_unstripped'
+ @echo ' and busybox_old
@echo ' check - run the test suite for all applets'
@echo ' checkhelp - check for missing help-entries in Config.in'
@echo ' randconfig - generate a random configuration'
@@ -358,6 +360,9 @@ checkhelp:
.PHONY: sizes
sizes: busybox_unstripped
$(NM) --size-sort $(<)
+.PHONY: bloatcheck
+bloatcheck: busybox_old busybox_unstripped
+ @scripts/bloat-o-meter busybox_old busybox_unstripped
.PHONY: objsizes
objsizes: busybox_unstripped