summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-07-20 05:40:13 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-07-20 05:40:13 +0000
commit680f2098f186224aefb78df78c3cdefbf232d315 (patch)
tree5c84fcfcf96d5888a0ddffdf88cbf10c4bc82c11 /Makefile
parent376c808b503dbee0991b5eb4027ca6e4f4ece702 (diff)
With gcc4, turn off unnecessart pointer sign warnings.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index ba249dbf..307fb73c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.144 2009-07-14 06:47:12 nicm Exp $
+# $Id: Makefile,v 1.145 2009-07-20 05:40:13 nicm Exp $
.SUFFIXES: .c .o
.PHONY: clean
@@ -12,6 +12,14 @@ CFLAGS+= -DBUILD="\"$(VERSION)\""
LDFLAGS+= -L/usr/local/lib
LIBS+= -lcurses
+.ifdef FDEBUG
+CFLAGS+= -g -ggdb -DDEBUG
+CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
+CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
+CFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
+CFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align
+.endif
+
# This sort of sucks but gets rid of the stupid warning and should work on
# most platforms...
CCV!= (LC_ALL=C ${CC} -v 2>&1|awk '/gcc version 4/') || true
@@ -19,14 +27,9 @@ CCV!= (LC_ALL=C ${CC} -v 2>&1|awk '/gcc version 4/') || true
CPPFLAGS:= -I. -I- -I/usr/local/include ${CPPFLAGS}
.else
CPPFLAGS:= -iquote. -I/usr/local/include ${CPPFLAGS}
-.endif
-
.ifdef FDEBUG
-CFLAGS+= -g -ggdb -DDEBUG
-CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
-CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
-CFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
-CFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align
+CFLAGS+= -Wno-pointer-sign
+.endif
.endif
PREFIX?= /usr/local