diff options
| author | Eric Andersen <andersen@codepoet.org> | 1999-10-05 16:24:54 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 1999-10-05 16:24:54 +0000 |
| commit | cc8ed39b240180b58810784f844e253263594ac3 (patch) | |
| tree | 15feebbb4be9a9168209609f48f0b100f9364420 /Makefile | |
| download | busybox-w32-0_29alpha2.tar.gz busybox-w32-0_29alpha2.tar.bz2 busybox-w32-0_29alpha2.zip | |
Initial revision0_29alpha2
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..bef25a3ae --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | |||
| 2 | VERSION=0.29alpha1 | ||
| 3 | BUILDTIME=$(shell date "+%Y%m%d-%H%M") | ||
| 4 | |||
| 5 | #This will choke on a non-debian system | ||
| 6 | ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'` | ||
| 7 | |||
| 8 | |||
| 9 | STRIP= strip --remove-section=.note --remove-section=.comment busybox | ||
| 10 | LDFLAGS= -s | ||
| 11 | |||
| 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 | ||
| 14 | # For debugging only | ||
| 15 | #CFLAGS=-Wall -g -D_GNU_SOURCE | ||
| 16 | LIBRARIES=-lc | ||
| 17 | OBJECTS=$(shell ./busybox.obj) utility.o | ||
| 18 | |||
| 19 | CFLAGS+= -DBB_VER='"$(VERSION)"' | ||
| 20 | CFLAGS+= -DBB_BT='"$(BUILDTIME)"' | ||
| 21 | |||
| 22 | #all: busybox links | ||
| 23 | all: busybox | ||
| 24 | |||
| 25 | busybox: $(OBJECTS) | ||
| 26 | $(CC) $(CFLAGS) $(LDFLAGS) -o busybox $(OBJECTS) $(LIBRARIES) | ||
| 27 | #$(STRIP) | ||
| 28 | |||
| 29 | links: | ||
| 30 | - ./busybox.mkll | sort >busybox.links | ||
| 31 | |||
| 32 | clean: | ||
| 33 | - rm -f busybox busybox.links *~ *.o | ||
| 34 | |||
| 35 | distclean: clean | ||
| 36 | - rm -f busybox | ||
| 37 | |||
| 38 | force: | ||
