2 # Copyright 2006 Rob Landley <rob@landley.net>
6 toybox toybox_unstripped: .config *.[ch] lib/*.[ch] toys/*.[ch] scripts/*.sh
9 .PHONY: clean distclean baseline bloatcheck install install_flat \
10 uinstall uninstall_flat test tests help scripts/test
12 include kconfig/Makefile
14 $(KCONFIG_TOP): generated/Config.in
15 generated/Config.in: toys/*.c
21 baseline: toybox_unstripped
22 @cp toybox_unstripped toybox_old
24 bloatcheck: toybox_old toybox_unstripped
25 @scripts/bloat-o-meter toybox_old toybox_unstripped
28 $(HOSTCC) $(CCFLAGS) -I . scripts/install.c -o instlist
30 install_flat: instlist
31 scripts/install.sh --symlink --force
34 scripts/install.sh --long --symlink --force
36 uninstall_flat: instlist
37 scripts/install.sh --uninstall
40 scripts/install.sh --long --uninstall
43 rm -rf toybox toybox_unstripped generated/config.h generated/Config.in \
44 generated/newtoys.h generated/globals.h instlist testdir
47 rm -f toybox_old .config* generated/help.h
55 @echo ' toybox - Build toybox.'
56 @echo ' baseline - Create busybox_old for use by bloatcheck.'
57 @echo ' bloatcheck - Report size differences between old and current versions'
58 @echo ' test - Run test suite against compiled commands.'
59 @echo ' clean - Delete temporary files.'
60 @echo ' distclean - Delete everything that isn't shipped.'
61 @echo ' install_flat - Install toybox into $PREFIX directory.'
62 @echo ' install - Install toybox into subdirectories of $PREFIX.'
63 @echo ' uninstall_flat - Remove toybox from $PREFIX directory."
64 @echo ' uninstall - Remove toybox from subdirectories of $PREFIX."