summaryrefslogblamecommitdiff
path: root/make.defs
blob: b9bc3fbb0d3c1a08dce1a7972b44680438ea55bb (plain) (tree)



























                                                                                       
# 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)"