diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-10-08 17:14:14 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-10-08 17:14:14 +0000 |
commit | 91a8af1309378544b6dfe6283fbbf654ed30ab4c (patch) | |
tree | 61b2bca05cc536fc83979be4ef23604754eb1a19 /Makefile | |
parent | 34a0ea765870866608d9d62cde4dd950a2340c0a (diff) | |
download | busybox-w32-91a8af1309378544b6dfe6283fbbf654ed30ab4c.tar.gz busybox-w32-91a8af1309378544b6dfe6283fbbf654ed30ab4c.tar.bz2 busybox-w32-91a8af1309378544b6dfe6283fbbf654ed30ab4c.zip |
Finally mount works properly. Made debugging work (no more -s ld flag
when debugging is on).
git-svn-id: svn://busybox.net/trunk/busybox@16 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -11,8 +11,10 @@ ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'` | |||
11 | ifeq ($(DODEBUG),true) | 11 | ifeq ($(DODEBUG),true) |
12 | CFLAGS=-Wall -g -D_GNU_SOURCE | 12 | CFLAGS=-Wall -g -D_GNU_SOURCE |
13 | STRIP= | 13 | STRIP= |
14 | LDFLAGS= | ||
14 | else | 15 | else |
15 | CFLAGS=-Wall -O2 -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE | 16 | CFLAGS=-Wall -O2 -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE |
17 | LDFLAGS= -s | ||
16 | STRIP= strip --remove-section=.note --remove-section=.comment busybox | 18 | STRIP= strip --remove-section=.note --remove-section=.comment busybox |
17 | endif | 19 | endif |
18 | 20 | ||
@@ -21,17 +23,15 @@ ifndef $(prefix) | |||
21 | endif | 23 | endif |
22 | BINDIR=$(prefix) | 24 | BINDIR=$(prefix) |
23 | 25 | ||
24 | LDFLAGS= -s | ||
25 | LIBRARIES=-lc | 26 | LIBRARIES=-lc |
26 | OBJECTS=$(shell ./busybox.sh) | 27 | OBJECTS=$(shell ./busybox.sh) |
27 | CFLAGS+= -DBB_VER='"$(VERSION)"' | 28 | CFLAGS+= -DBB_VER='"$(VERSION)"' |
28 | CFLAGS+= -DBB_BT='"$(BUILDTIME)"' | 29 | CFLAGS+= -DBB_BT='"$(BUILDTIME)"' |
29 | 30 | ||
30 | all: busybox links | 31 | all: busybox links |
31 | #all: busybox | ||
32 | 32 | ||
33 | busybox: $(OBJECTS) | 33 | busybox: $(OBJECTS) |
34 | $(CC) $(CFLAGS) $(LDFLAGS) -o busybox $(OBJECTS) $(LIBRARIES) | 34 | $(CC) $(LDFLAGS) -o busybox $(OBJECTS) $(LIBRARIES) |
35 | $(STRIP) | 35 | $(STRIP) |
36 | 36 | ||
37 | links: | 37 | links: |