aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2000-07-28 19:41:32 +0000
committerPavel Roskin <proski@gnu.org>2000-07-28 19:41:32 +0000
commit43c17b3d9649a2717961287b14b48960b611df82 (patch)
treeeeb555b6637179ab5ed9925d53a1ab568fcdaada
parent616d13bcd1a431eb21d1d3e48b17be6c26443c1d (diff)
downloadbusybox-w32-43c17b3d9649a2717961287b14b48960b611df82.tar.gz
busybox-w32-43c17b3d9649a2717961287b14b48960b611df82.tar.bz2
busybox-w32-43c17b3d9649a2717961287b14b48960b611df82.zip
New variable WARNINGS to hold all warning options
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a43c7b0ee..d936ae166 100644
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,8 @@ STRIPTOOL = $(CROSS)strip
61OPTIMIZATION = $(shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ 61OPTIMIZATION = $(shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
62 then echo "-Os"; else echo "-O2" ; fi) 62 then echo "-Os"; else echo "-O2" ; fi)
63 63
64WARNINGS = -Wall
65
64ifeq ($(DODMALLOC),true) 66ifeq ($(DODMALLOC),true)
65 # For testing mem leaks with dmalloc 67 # For testing mem leaks with dmalloc
66 CFLAGS+=-DDMALLOC 68 CFLAGS+=-DDMALLOC
@@ -70,11 +72,11 @@ ifeq ($(DODMALLOC),true)
70endif 72endif
71# -D_GNU_SOURCE is needed because environ is used in init.c 73# -D_GNU_SOURCE is needed because environ is used in init.c
72ifeq ($(DODEBUG),true) 74ifeq ($(DODEBUG),true)
73 CFLAGS += -Wall -g -D_GNU_SOURCE 75 CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE
74 LDFLAGS += 76 LDFLAGS +=
75 STRIP = 77 STRIP =
76else 78else
77 CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE 79 CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
78 LDFLAGS += -s 80 LDFLAGS += -s
79 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) 81 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
80 #Only staticly link when _not_ debugging 82 #Only staticly link when _not_ debugging