4 BUILDTIME=$(shell date "+%Y%m%d-%H%M")
6 # Comment out the following to make a debuggable build
7 # Leave this off for production use.
10 #This will choke on a non-debian system
11 ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'`
14 # -D_GNU_SOURCE is needed because environ is used in init.c
15 ifeq ($(DODEBUG),true)
16 CFLAGS=-Wall -g -D_GNU_SOURCE
20 CFLAGS=-Wall -Os -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
22 STRIP= strip --remove-section=.note --remove-section=.comment
31 OBJECTS=$(shell ./busybox.sh)
32 CFLAGS+= -DBB_VER='"$(VERSION)"'
33 CFLAGS+= -DBB_BT='"$(BUILDTIME)"'
38 $(CC) $(LDFLAGS) -o $(PROG) $(OBJECTS) $(LIBRARIES)
42 - ./busybox.mkll | sort >busybox.links
45 - rm -f $(PROG) busybox.links *~ *.o core
52 $(OBJECTS): busybox.def.h internal.h Makefile