diff options
Diffstat (limited to 'make.defs')
-rw-r--r-- | make.defs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/make.defs b/make.defs new file mode 100644 index 0000000..b9bc3fb --- /dev/null +++ b/make.defs @@ -0,0 +1,28 @@ +# Definitions for our funky-chicken build system + +ifeq ($(shell uname -m), x86_64) +M32=-m32 +endif + +CC = gcc ${M32} +LEX=flex +BISON=bison + +PLATFORM = $(shell uname) +ifeq ($(findstring FreeBSD,$(PLATFORM)), FreeBSD) +MAKE = gmake +else +MAKE = make +endif + +OPT = -pipe -g -fno-strict-aliasing -O2 -Wall + +ifeq ($(findstring CYGWIN,$(PLATFORM)), CYGWIN) +OS_TYPE = -DCYGWIN +CFLAGS = $(OPT) -DFD_SETSIZE=4096 -I../common $(PACKETDEF) $(OS_TYPE) +else +OS_TYPE = +CFLAGS = $(OPT) -fstack-protector -Wno-pointer-sign -I../common $(PACKETDEF) $(OS_TYPE) +endif + +MKDEF = CC="$(CC)" CFLAGS="$(CFLAGS)" |