X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=Makefile;h=8c7cb41bea7cd5ef8c66279d90a9dcf5d4c11b9c;hb=c488f87953ff2c4d4fc005c52ec30c5cb6885f72;hp=29e741ddd5c49c81615ee1dc418d8d85c139038a;hpb=2b398bec9c5e777f215efd79e340ac7ae5356cee;p=oweals%2Fbusybox.git diff --git a/Makefile b/Makefile index 29e741ddd..8c7cb41be 100644 --- a/Makefile +++ b/Makefile @@ -136,6 +136,7 @@ help: @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 @@ -305,6 +306,9 @@ busybox: busybox_unstripped $(Q)cp busybox_unstripped busybox $(do_strip) +%.bflt: %_unstripped + $(do_elf2flt) + busybox.links: $(top_srcdir)/applets/busybox.mkll include/bb_config.h $(top_srcdir)/include/applets.h $(Q)-$(SHELL) $^ >$@ @@ -346,9 +350,14 @@ check test: busybox bindir=$(top_builddir) srcdir=$(top_srcdir)/testsuite \ $(top_srcdir)/testsuite/runtest $(CHECK_VERBOSE) +.PHONY: sizes sizes: busybox_unstripped $(NM) --size-sort $(<) +.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 @@ -384,7 +393,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 @@ -396,6 +405,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)