diff options
author | Pavel Roskin | 2000-07-28 19:41:32 +0000 |
---|---|---|
committer | Pavel Roskin | 2000-07-28 19:41:32 +0000 |
commit | 43c17b3d9649a2717961287b14b48960b611df82 (patch) | |
tree | eeb555b6637179ab5ed9925d53a1ab568fcdaada /Makefile | |
parent | 616d13bcd1a431eb21d1d3e48b17be6c26443c1d (diff) | |
download | busybox-43c17b3d9649a2717961287b14b48960b611df82.zip busybox-43c17b3d9649a2717961287b14b48960b611df82.tar.gz |
New variable WARNINGS to hold all warning options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -61,6 +61,8 @@ STRIPTOOL = $(CROSS)strip OPTIMIZATION = $(shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ then echo "-Os"; else echo "-O2" ; fi) +WARNINGS = -Wall + ifeq ($(DODMALLOC),true) # For testing mem leaks with dmalloc CFLAGS+=-DDMALLOC @@ -70,11 +72,11 @@ ifeq ($(DODMALLOC),true) endif # -D_GNU_SOURCE is needed because environ is used in init.c ifeq ($(DODEBUG),true) - CFLAGS += -Wall -g -D_GNU_SOURCE + CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE LDFLAGS += STRIP = else - CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE + CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE LDFLAGS += -s STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) #Only staticly link when _not_ debugging |