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