Mercurial > hg > toybox
comparison Makefile @ 158:01784c0d3681
Make toybox_unstripped depend upon toys/help.h (so it will be rebuilt when toys/Config.in is updated)
author | Charlie Shepherd <masterdriverz@gentoo.org> |
---|---|
date | Sat, 10 Nov 2007 08:54:22 +0000 |
parents | 28d2042bcc13 |
children | 93899f7c3e0c |
comparison
equal
deleted
inserted
replaced
157:714f4c051594 | 158:01784c0d3681 |
---|---|
44 | 44 |
45 # Get list of .c files to compile, including toys/*.c files from .config | 45 # Get list of .c files to compile, including toys/*.c files from .config |
46 toyfiles = main.c lib/*.c \ | 46 toyfiles = main.c lib/*.c \ |
47 $(shell scripts/cfg2files.sh < .config | sed 's@\(.*\)@toys/\1.c@') | 47 $(shell scripts/cfg2files.sh < .config | sed 's@\(.*\)@toys/\1.c@') |
48 | 48 |
49 toybox_unstripped: gen_config.h $(toyfiles) toys/toylist.h lib/*.h toys.h | 49 toybox_unstripped: gen_config.h $(toyfiles) toys/toylist.h toys/help.h lib/*.h toys.h |
50 $(CC) $(CCFLAGS) -I . $(toyfiles) -o toybox_unstripped $(OPTIMIZE) | 50 $(CC) $(CCFLAGS) -I . $(toyfiles) -o toybox_unstripped $(OPTIMIZE) |
51 | 51 |
52 toybox: toybox_unstripped | 52 toybox: toybox_unstripped |
53 $(STRIP) toybox_unstripped -o toybox | 53 $(STRIP) toybox_unstripped -o toybox |
54 | 54 |