aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-02 09:44:32 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-03-02 09:44:32 +0000
commita7b0e95a7b673f5516ffd646717979eadb6bc5b0 (patch)
tree3a2617b46341111f986586f3dc2fc4256010358f
parent3e42de836e4e08c6226383f84de0f734f96c8697 (diff)
downloadbusybox-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--Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 95a948fe6..d9d0b7c6c 100644
--- a/Makefile
+++ b/Makefile
@@ -313,7 +313,9 @@ endif # CONFIG_FEATURE_SHARED_BUSYBOX
313endif # CONFIG_BUILD_AT_ONCE 313endif # 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))) 316ifneq ($(bin-obj-y)$(bin-mobj-y),)
317 applets.a:=$(bin-obj-y) $(bin-mobj-y)
318endif
317ifdef applets.a 319ifdef applets.a
318applets.a: $(applets.a) 320applets.a: $(applets.a)
319 $(do_ar) 321 $(do_ar)
@@ -363,7 +365,7 @@ endif
363 365
364endif # ifeq ($(strip $(CONFIG_BUILD_LIBBUSYBOX)),y) 366endif # ifeq ($(strip $(CONFIG_BUILD_LIBBUSYBOX)),y)
365 367
366busybox: $(top_builddir)/.depend $(LIBBUSYBOX_SONAME) $(BUSYBOX_SRC) $(APPLET_SRC) $(bin-obj.a) 368busybox_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
379busybox: busybox_unstripped
380 $(Q)cp busybox_unstripped busybox
376 $(do_strip) 381 $(do_strip)
377 382
378busybox.links: $(top_srcdir)/applets/busybox.mkll include/bb_config.h $(top_srcdir)/include/applets.h 383busybox.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
408sizes: 413sizes: 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
415doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html ; 417doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html ;