3 BUILDTIME=$(shell date "+%Y%m%d-%H%M")
5 #This will choke on a non-debian system
6 ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'`
9 STRIP= strip --remove-section=.note --remove-section=.comment busybox
12 # -D_GNU_SOURCE is needed because environ is used in init.c
13 CFLAGS=-Wall -O2 -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
15 #CFLAGS=-Wall -g -D_GNU_SOURCE
17 OBJECTS=$(shell ./busybox.obj) utility.o
19 CFLAGS+= -DBB_VER='"$(VERSION)"'
20 CFLAGS+= -DBB_BT='"$(BUILDTIME)"'
26 $(CC) $(CFLAGS) $(LDFLAGS) -o busybox $(OBJECTS) $(LIBRARIES)
30 - ./busybox.mkll | sort >busybox.links
33 - rm -f busybox busybox.links *~ *.o