diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-04-02 22:00:46 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2011-04-03 18:26:38 -0700 |
commit | 4095d5726ebabc663a6d5397d003773ee652818a (patch) | |
tree | b42844e6a6d8f283d0a31ae92ac5b0d32a669b7b /make.defs | |
parent | 7a1b57a80346c1b5f2b2c5b8f0899167bf2fd9b1 (diff) | |
download | tmwa-4095d5726ebabc663a6d5397d003773ee652818a.tar.gz tmwa-4095d5726ebabc663a6d5397d003773ee652818a.tar.bz2 tmwa-4095d5726ebabc663a6d5397d003773ee652818a.tar.xz tmwa-4095d5726ebabc663a6d5397d003773ee652818a.zip |
Rewrite make system to be optimal
Diffstat (limited to 'make.defs')
-rw-r--r-- | make.defs | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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 $@ $< |