3 BUILDTIME=$(shell date "+%Y%m%d-%H%M")
6 #This will choke on a non-debian system
7 ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'`
10 # -D_GNU_SOURCE is needed because environ is used in init.c
11 ifeq ($(DODEBUG),true)
12 CFLAGS=-Wall -g -D_GNU_SOURCE
16 CFLAGS=-Wall -O2 -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
18 STRIP= strip --remove-section=.note --remove-section=.comment busybox
27 OBJECTS=$(shell ./busybox.sh)
28 CFLAGS+= -DBB_VER='"$(VERSION)"'
29 CFLAGS+= -DBB_BT='"$(BUILDTIME)"'
34 $(CC) $(LDFLAGS) -o busybox $(OBJECTS) $(LIBRARIES)
38 - ./busybox.mkll | sort >busybox.links
41 - rm -f busybox busybox.links *~ *.o
48 $(OBJECTS): busybox.def.h internal.h Makefile