2 # Copyright 2006 Rob Landley <rob@landley.net>
6 toybox toybox_unstripped: .config *.[ch] lib/*.[ch] toys/*.[ch] scripts/*
9 .PHONY: clean distclean baseline bloatcheck install_flat test tests help
11 include kconfig/Makefile
13 $(KCONFIG_TOP): generated/Config.in
20 baseline: toybox_unstripped
21 @cp toybox_unstripped toybox_old
23 bloatcheck: toybox_old toybox_unstripped
24 @scripts/bloat-o-meter toybox_old toybox_unstripped
27 $(HOSTCC) $(CCFLAGS) -I . scripts/install.c -o instlist
29 install_flat: instlist
32 @for i in `./instlist`; do ln -s toybox "$(PREFIX)/$$i"; done
35 rm -rf toybox toybox_unstripped generated/config.h generated/Config.in \
36 generated/newtoys.h generated/globals.h instlist testdir
39 rm -f toybox_old .config* generated/help.h
47 @echo ' toybox - Build toybox.'
48 @echo ' baseline - Create busybox_old for use by bloatcheck.'
49 @echo ' bloatcheck - Report size differences between old and current versions'
50 @echo ' test - Run test suite against compiled commands.'
51 @echo ' clean - Delete temporary files.'
52 @echo ' distclean - Delete everything that isn't shipped.'
53 @echo ' install_flat - Install toybox into $PREFIX directory.'