More stuff
[oweals/busybox.git] / Makefile
index 86fc9f6a6655138cc480946237649d008df33092..4b05075f9abc5695920cac8c4bc7a12777f24190 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
 
 VERSION=0.29alpha1
 BUILDTIME=$(shell date "+%Y%m%d-%H%M")
-DODEBUG=true
+
+# Comment out the following to make a debuggable build
+# Leave this off for production use.
+#DODEBUG=true
 
 #This will choke on a non-debian system
 ARCH=`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'`
@@ -13,7 +16,7 @@ ifeq ($(DODEBUG),true)
     STRIP=
     LDFLAGS=
 else
-    CFLAGS=-Wall -O2 -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
+    CFLAGS=-Wall -Os -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
     LDFLAGS= -s
     STRIP= strip --remove-section=.note --remove-section=.comment busybox
 endif
@@ -38,7 +41,7 @@ links:
        - ./busybox.mkll | sort >busybox.links
        
 clean:
-       - rm -f busybox busybox.links *~ *.o 
+       - rm -f busybox busybox.links *~ *.o core 
 
 distclean: clean
        - rm -f busybox