summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-12-13 22:41:31 -0500
committerMadCamel <madcamel@gmail.com>2009-12-13 22:41:31 -0500
commit91ffbdb8eccdfcb5adc68838d807e0c296e9ce35 (patch)
tree916d528710bfccffbe57830407b87bfa3b6931f2
parent6e42644247e80667db4d39c3a0e543d9476f9c87 (diff)
downloadtmwa-91ffbdb8eccdfcb5adc68838d807e0c296e9ce35.tar.gz
tmwa-91ffbdb8eccdfcb5adc68838d807e0c296e9ce35.tar.bz2
tmwa-91ffbdb8eccdfcb5adc68838d807e0c296e9ce35.tar.xz
tmwa-91ffbdb8eccdfcb5adc68838d807e0c296e9ce35.zip
Cleaned up Makefile, Added -fstack-protector to cflags
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6d378dc..50e8ff2 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ ifeq ($(shell uname -m), x86_64)
M32=-m32
endif
-CC = gcc ${M32} -pipe
+CC = gcc ${M32}
PLATFORM = $(shell uname)
@@ -14,14 +14,14 @@ else
MAKE = make
endif
-OPT = -g -fno-strict-aliasing -O2 ${M32}
+OPT = -pipe -g -fno-strict-aliasing -O2 -Wall
ifeq ($(findstring CYGWIN,$(PLATFORM)), CYGWIN)
OS_TYPE = -DCYGWIN
-CFLAGS = $(OPT) -Wall -DFD_SETSIZE=4096 -I../common $(PACKETDEF) $(OS_TYPE)
+CFLAGS = $(OPT) -DFD_SETSIZE=4096 -I../common $(PACKETDEF) $(OS_TYPE)
else
OS_TYPE =
-CFLAGS = $(OPT) -Wall -Wno-pointer-sign -I../common $(PACKETDEF) $(OS_TYPE)
+CFLAGS = $(OPT) -fstack-protector -Wno-pointer-sign -I../common $(PACKETDEF) $(OS_TYPE)
endif
MKDEF = CC="$(CC)" CFLAGS="$(CFLAGS)"