Move sed over to the generic llist_t for append. Saves about 90 bytes.
[oweals/busybox.git] / Makefile
index 977df5d4e3df4862a16da0c1c9182d80940361ed..8f5094a6eea0cc6b0454f2ca89b20d6ace39b659 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -132,10 +132,14 @@ 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'
        @echo '  release                - create a distribution tarball'
        @echo '  sizes                  - show size of all enabled busybox symbols'
+       @echo '  objsizes               - show size of each .o object built'
        @echo
 
 
@@ -349,8 +353,20 @@ check test: busybox
        bindir=$(top_builddir) srcdir=$(top_srcdir)/testsuite \
        $(top_srcdir)/testsuite/runtest $(CHECK_VERBOSE)
 
+.PHONY: checkhelp
+checkhelp:
+       $(Q)$(top_srcdir)/scripts/checkhelp.awk \
+               $(wildcard $(patsubst %,%/Config.in,$(SRC_DIRS) ./))
+.PHONY: sizes
 sizes: busybox_unstripped
        $(NM) --size-sort $(<)
+.PHONY: bloatcheck
+bloatcheck: busybox_old busybox_unstripped
+       @$(top_srcdir)/scripts/bloat-o-meter busybox_old busybox_unstripped
+
+.PHONY: objsizes
+objsizes: busybox_unstripped
+       $(SHELL) $(top_srcdir)/scripts/objsizes
 
 # Documentation Targets
 doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html
@@ -387,7 +403,7 @@ docs/busybox.net/BusyBox.html: docs/busybox.pod
 
 # The nifty new dependency stuff
 scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c
-       $(Q)$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
+       $(do_link.h)
 
 DEP_INCLUDES := include/bb_config.h
 
@@ -399,6 +415,13 @@ include/bbconfigopts.h: .config
        $(Q)$(top_srcdir)/scripts/config/mkconfigs > $@
 endif
 
+scripts/usage: $(top_srcdir)/scripts/usage.c .config
+       $(do_link.h) -I$(top_srcdir)/include
+
+DEP_INCLUDES += include/usage_compressed.h
+include/usage_compressed.h: .config scripts/usage
+       $(Q)sh $(top_srcdir)/scripts/usage_compressed "$(top_srcdir)/scripts" > $@
+
 depend dep: .depend
 .depend: scripts/bb_mkdep $(DEP_INCLUDES)
        $(disp_gen)