diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-02 09:44:32 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-02 09:44:32 +0000 |
commit | a7b0e95a7b673f5516ffd646717979eadb6bc5b0 (patch) | |
tree | 3a2617b46341111f986586f3dc2fc4256010358f | |
parent | 3e42de836e4e08c6226383f84de0f734f96c8697 (diff) | |
download | busybox-w32-a7b0e95a7b673f5516ffd646717979eadb6bc5b0.tar.gz busybox-w32-a7b0e95a7b673f5516ffd646717979eadb6bc5b0.tar.bz2 busybox-w32-a7b0e95a7b673f5516ffd646717979eadb6bc5b0.zip |
Denis Vlasenko writes: make sizes was rebuilding busybox - unstripped one!
git-svn-id: svn://busybox.net/trunk/busybox@14425 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -313,7 +313,9 @@ endif # CONFIG_FEATURE_SHARED_BUSYBOX | |||
313 | endif # CONFIG_BUILD_AT_ONCE | 313 | endif # CONFIG_BUILD_AT_ONCE |
314 | 314 | ||
315 | # build an .a to keep .hash et al small | 315 | # build an .a to keep .hash et al small |
316 | $(if $(bin-obj-y)$(bin-mobj-y),$(eval applets.a:=$(bin-obj-y) $(bin-mobj-y))) | 316 | ifneq ($(bin-obj-y)$(bin-mobj-y),) |
317 | applets.a:=$(bin-obj-y) $(bin-mobj-y) | ||
318 | endif | ||
317 | ifdef applets.a | 319 | ifdef applets.a |
318 | applets.a: $(applets.a) | 320 | applets.a: $(applets.a) |
319 | $(do_ar) | 321 | $(do_ar) |
@@ -363,7 +365,7 @@ endif | |||
363 | 365 | ||
364 | endif # ifeq ($(strip $(CONFIG_BUILD_LIBBUSYBOX)),y) | 366 | endif # ifeq ($(strip $(CONFIG_BUILD_LIBBUSYBOX)),y) |
365 | 367 | ||
366 | busybox: $(top_builddir)/.depend $(LIBBUSYBOX_SONAME) $(BUSYBOX_SRC) $(APPLET_SRC) $(bin-obj.a) | 368 | busybox_unstripped: $(top_builddir)/.depend $(LIBBUSYBOX_SONAME) $(BUSYBOX_SRC) $(APPLET_SRC) $(bin-obj.a) |
367 | $(do_link) $(PROG_CFLAGS) $(PROG_LDFLAGS) $(CFLAGS_COMBINE) \ | 369 | $(do_link) $(PROG_CFLAGS) $(PROG_LDFLAGS) $(CFLAGS_COMBINE) \ |
368 | $(foreach f,$(^:.o=.c),$(CFLAGS-$(notdir $(patsubst %/$,%,$(dir $(f))))-$(notdir $(f)))) \ | 370 | $(foreach f,$(^:.o=.c),$(CFLAGS-$(notdir $(patsubst %/$,%,$(dir $(f))))-$(notdir $(f)))) \ |
369 | $(CFLAGS-$(@)) \ | 371 | $(CFLAGS-$(@)) \ |
@@ -373,6 +375,9 @@ busybox: $(top_builddir)/.depend $(LIBBUSYBOX_SONAME) $(BUSYBOX_SRC) $(APPLET_SR | |||
373 | $(bin-obj.a) \ | 375 | $(bin-obj.a) \ |
374 | $(LDBUSYBOX) $(LIBRARIES) \ | 376 | $(LDBUSYBOX) $(LIBRARIES) \ |
375 | -Wl,--end-group | 377 | -Wl,--end-group |
378 | |||
379 | busybox: busybox_unstripped | ||
380 | $(Q)cp busybox_unstripped busybox | ||
376 | $(do_strip) | 381 | $(do_strip) |
377 | 382 | ||
378 | busybox.links: $(top_srcdir)/applets/busybox.mkll include/bb_config.h $(top_srcdir)/include/applets.h | 383 | busybox.links: $(top_srcdir)/applets/busybox.mkll include/bb_config.h $(top_srcdir)/include/applets.h |
@@ -405,11 +410,8 @@ check test: busybox | |||
405 | bindir=$(top_builddir) srcdir=$(top_srcdir)/testsuite \ | 410 | bindir=$(top_builddir) srcdir=$(top_srcdir)/testsuite \ |
406 | $(top_srcdir)/testsuite/runtest $(CHECK_VERBOSE) | 411 | $(top_srcdir)/testsuite/runtest $(CHECK_VERBOSE) |
407 | 412 | ||
408 | sizes: | 413 | sizes: busybox_unstripped |
409 | -rm -f busybox | 414 | $(NM) --size-sort $(<) |
410 | $(MAKE) top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \ | ||
411 | -f $(top_srcdir)/Makefile STRIPCMD=/bin/true | ||
412 | $(NM) --size-sort busybox | ||
413 | 415 | ||
414 | # Documentation Targets | 416 | # Documentation Targets |
415 | doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html ; | 417 | doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html ; |