diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-06 20:25:32 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-06 20:25:32 +0000 |
commit | 17d49efd8ce6507152d78a70574193bb1b313af6 (patch) | |
tree | 64e24302dc2575867d8a78897500e5a5b2a48398 /Makefile | |
parent | 9d3aba7b37b275350a9fe0887871da9ba73dcbd7 (diff) | |
download | busybox-w32-17d49efd8ce6507152d78a70574193bb1b313af6.tar.gz busybox-w32-17d49efd8ce6507152d78a70574193bb1b313af6.tar.bz2 busybox-w32-17d49efd8ce6507152d78a70574193bb1b313af6.zip |
More stuff.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 22 insertions, 10 deletions
@@ -1,30 +1,38 @@ | |||
1 | 1 | ||
2 | VERSION=0.29alpha1 | 2 | VERSION=0.29alpha1 |
3 | BUILDTIME=$(shell date "+%Y%m%d-%H%M") | 3 | BUILDTIME=$(shell date "+%Y%m%d-%H%M") |
4 | DODEBUG=true | ||
4 | 5 | ||
5 | #This will choke on a non-debian system | 6 | #This will choke on a non-debian system |
6 | ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'` | 7 | ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'` |
7 | 8 | ||
8 | 9 | ||
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 | 10 | # -D_GNU_SOURCE is needed because environ is used in init.c |
13 | CFLAGS=-Wall -O2 -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE | 11 | ifeq ($(DODEBUG),true) |
14 | # For debugging only | 12 | CFLAGS=-Wall -g -D_GNU_SOURCE |
15 | #CFLAGS=-Wall -g -D_GNU_SOURCE | 13 | STRIP= |
14 | else | ||
15 | CFLAGS=-Wall -O2 -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE | ||
16 | STRIP= strip --remove-section=.note --remove-section=.comment busybox | ||
17 | endif | ||
18 | |||
19 | ifndef $(prefix) | ||
20 | prefix=`pwd` | ||
21 | endif | ||
22 | BINDIR=$(prefix) | ||
23 | |||
24 | LDFLAGS= -s | ||
16 | LIBRARIES=-lc | 25 | LIBRARIES=-lc |
17 | OBJECTS=$(shell ./busybox.sh) utility.o | 26 | OBJECTS=$(shell ./busybox.sh) utility.o |
18 | |||
19 | CFLAGS+= -DBB_VER='"$(VERSION)"' | 27 | CFLAGS+= -DBB_VER='"$(VERSION)"' |
20 | CFLAGS+= -DBB_BT='"$(BUILDTIME)"' | 28 | CFLAGS+= -DBB_BT='"$(BUILDTIME)"' |
21 | 29 | ||
22 | #all: busybox links | 30 | all: busybox links |
23 | all: busybox | 31 | #all: busybox |
24 | 32 | ||
25 | busybox: $(OBJECTS) | 33 | busybox: $(OBJECTS) |
26 | $(CC) $(CFLAGS) $(LDFLAGS) -o busybox $(OBJECTS) $(LIBRARIES) | 34 | $(CC) $(CFLAGS) $(LDFLAGS) -o busybox $(OBJECTS) $(LIBRARIES) |
27 | #$(STRIP) | 35 | $(STRIP) |
28 | 36 | ||
29 | links: | 37 | links: |
30 | - ./busybox.mkll | sort >busybox.links | 38 | - ./busybox.mkll | sort >busybox.links |
@@ -38,3 +46,7 @@ distclean: clean | |||
38 | force: | 46 | force: |
39 | 47 | ||
40 | $(OBJECTS): busybox.def.h internal.h Makefile | 48 | $(OBJECTS): busybox.def.h internal.h Makefile |
49 | |||
50 | install: busybox | ||
51 | install.sh $(BINDIR) | ||
52 | |||