diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-08 17:14:14 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-08 17:14:14 +0000 |
commit | 8341a1565306a54e685455d19efb0516ad3328a1 (patch) | |
tree | 61b2bca05cc536fc83979be4ef23604754eb1a19 /Makefile | |
parent | 596e5469d00fa4a74d8a3b1ebfaae20ce8dc3afe (diff) | |
download | busybox-w32-8341a1565306a54e685455d19efb0516ad3328a1.tar.gz busybox-w32-8341a1565306a54e685455d19efb0516ad3328a1.tar.bz2 busybox-w32-8341a1565306a54e685455d19efb0516ad3328a1.zip |
Finally mount works properly. Made debugging work (no more -s ld flag
when debugging is on).
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: |