summaryrefslogtreecommitdiff
path: root/make.defs
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-03-24 13:57:13 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-03-24 13:57:13 -0700
commita2306446c86b3333e69b082e41ae76ba71a42d9d (patch)
treeac032fc4566d2ae3091a0dc95329ac86d50b9a23 /make.defs
parentb6fa80d4c17994771cb796317c52cb8fb7a38a16 (diff)
downloadtmwa-a2306446c86b3333e69b082e41ae76ba71a42d9d.tar.gz
tmwa-a2306446c86b3333e69b082e41ae76ba71a42d9d.tar.bz2
tmwa-a2306446c86b3333e69b082e41ae76ba71a42d9d.tar.xz
tmwa-a2306446c86b3333e69b082e41ae76ba71a42d9d.zip
Optimize common objects, and adjust other objects accordingly.
Major changes still need to be made to each of the servers.
Diffstat (limited to 'make.defs')
-rw-r--r--make.defs10
1 files changed, 7 insertions, 3 deletions
diff --git a/make.defs b/make.defs
index 55710c4..6f648e3 100644
--- a/make.defs
+++ b/make.defs
@@ -1,16 +1,20 @@
# defaults
CC = gcc
-CFLAGS = -pipe -g -fno-strict-aliasing -O2 -Wall
+CFLAGS = -pipe -g -fno-strict-aliasing -Wall -Wextra -Werror=all -Werror=implicit-function-declaration
CP = cp -f
# The below might cause problems sometimes
# CP = cp -lf
# CP = cp -sf
# works on both x86 and x86_64
-override CC += -m32
+override CC += -m32 -std=gnu99
ifeq ($(findstring CYGWIN,$(shell uname)), CYGWIN)
override CFLAGS += -DFD_SETSIZE=4096 -DCYGWIN
else
- override CFLAGS += -fstack-protector -Wno-pointer-sign
+ override CFLAGS += -fstack-protector
endif
+# The default recipe is suboptimal
+%.c: %.l
+ $(LEX) -o $@ $<
+