Mercurial > hg > toybox
comparison Makefile @ 47:6b933d9c54ac
Blah. The sed filter's not right, I'll try again later.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 04 Jan 2007 17:26:30 -0500 |
parents | e60d48d30ef0 |
children | 4f5cdc6552da |
comparison
equal
deleted
inserted
replaced
46:5a6241f16e95 | 47:6b933d9c54ac |
---|---|
36 # Actual build | 36 # Actual build |
37 | 37 |
38 toyfiles = main.c toys/*.c lib/*.c | 38 toyfiles = main.c toys/*.c lib/*.c |
39 toybox_unstripped: gen_config.h $(toyfiles) toys/toylist.h lib/lib.h toys.h | 39 toybox_unstripped: gen_config.h $(toyfiles) toys/toylist.h lib/lib.h toys.h |
40 $(CC) $(CFLAGS) -I . $(toyfiles) -o toybox_unstripped \ | 40 $(CC) $(CFLAGS) -I . $(toyfiles) -o toybox_unstripped \ |
41 -ffunction-sections -fdata-sections -Wl,--gc-sections \ | 41 -ffunction-sections -fdata-sections -Wl,--gc-sections #\ |
42 2>&1 | sed -n -e '/may be used uninitialized/{s/.*/\n/;h;b};1{x;b};: print;x;/\n/b thing;p;: thing;${x;p}' >&2 | 42 #2>&1 | sed -n -e '/may be used uninitialized/{s/.*/\n/;h;b};1{x;b};: print;=;p;x;/\n/b thing;p;: thing;${x;p}' >&2 |
43 | 43 |
44 toybox: toybox_unstripped | 44 toybox: toybox_unstripped |
45 $(STRIP) toybox_unstripped -o toybox | 45 $(STRIP) toybox_unstripped -o toybox |
46 clean:: | 46 clean:: |
47 rm -f toybox toybox_old toybox_unstripped gen_config.h | 47 rm -f toybox toybox_old toybox_unstripped gen_config.h |