From 4095d5726ebabc663a6d5397d003773ee652818a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 2 Apr 2011 22:00:46 -0700 Subject: Rewrite make system to be optimal --- make.defs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'make.defs') diff --git a/make.defs b/make.defs index 6f648e3..debf3aa 100644 --- a/make.defs +++ b/make.defs @@ -1,20 +1,15 @@ # defaults CC = gcc -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 +BISON = bison +CFLAGS = -pipe -g @warnings # works on both x86 and x86_64 override CC += -m32 -std=gnu99 +# TODO check if this is actually needed - I don't think it should be ifeq ($(findstring CYGWIN,$(shell uname)), CYGWIN) override CFLAGS += -DFD_SETSIZE=4096 -DCYGWIN else override CFLAGS += -fstack-protector endif -# The default recipe is suboptimal -%.c: %.l - $(LEX) -o $@ $< -- cgit v1.2.3-60-g2f50