aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-10-08 17:14:14 +0000
committerEric Andersen <andersen@codepoet.org>1999-10-08 17:14:14 +0000
commit8341a1565306a54e685455d19efb0516ad3328a1 (patch)
tree61b2bca05cc536fc83979be4ef23604754eb1a19 /Makefile
parent596e5469d00fa4a74d8a3b1ebfaae20ce8dc3afe (diff)
downloadbusybox-8341a1565306a54e685455d19efb0516ad3328a1.tar.gz
Finally mount works properly. Made debugging work (no more -s ld flag
when debugging is on).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cf182097e..86fc9f6a6 100644
--- a/Makefile
+++ b/Makefile
@@ -11,8 +11,10 @@ ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'`
ifeq ($(DODEBUG),true)
CFLAGS=-Wall -g -D_GNU_SOURCE
STRIP=
+ LDFLAGS=
else
CFLAGS=-Wall -O2 -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
+ LDFLAGS= -s
STRIP= strip --remove-section=.note --remove-section=.comment busybox
endif
@@ -21,17 +23,15 @@ ifndef $(prefix)
endif
BINDIR=$(prefix)
-LDFLAGS= -s
LIBRARIES=-lc
OBJECTS=$(shell ./busybox.sh)
CFLAGS+= -DBB_VER='"$(VERSION)"'
CFLAGS+= -DBB_BT='"$(BUILDTIME)"'
all: busybox links
-#all: busybox
busybox: $(OBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) -o busybox $(OBJECTS) $(LIBRARIES)
+ $(CC) $(LDFLAGS) -o busybox $(OBJECTS) $(LIBRARIES)
$(STRIP)
links: