Mercurial > hg > toybox
changeset 19:414625f97667
Better dependencies, and feed the linker --gc-sections. (Which is not an
substitute for building just the stuff we need, but is easy to do for now.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 02 Nov 2006 19:50:02 -0500 |
parents | 7e7ae6e9a28e |
children | 3981c96f9285 |
files | Makefile |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Thu Nov 02 11:59:25 2006 -0500 +++ b/Makefile Thu Nov 02 19:50:02 2006 -0500 @@ -11,6 +11,8 @@ include kconfig/Makefile +.config: Config.in toys/Config.in + # The long and roundabout sed is to make old versions of sed happy. New ones # have '\n' so can replace one line with two without all the branches and # mucking about with hold space. @@ -26,9 +28,9 @@ # Actual build toyfiles = main.c toys/*.c lib/*.c -toybox: gen_config.h $(toyfiles) +toybox: gen_config.h $(toyfiles) lib/lib.h toys.h $(CC) -Wall -Os -s -funsigned-char $(CFLAGS) -I . \ - $(toyfiles) -o toybox + $(toyfiles) -o toybox -ffunction-sections -fdata-sections -Wl,--gc-sections clean:: rm -f toybox gen_config.h