From a2306446c86b3333e69b082e41ae76ba71a42d9d Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 24 Mar 2011 13:57:13 -0700 Subject: Optimize common objects, and adjust other objects accordingly. Major changes still need to be made to each of the servers. --- make.defs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'make.defs') 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 $@ $< + -- cgit v1.2.3-70-g09d2