blob: b9bc3fbb0d3c1a08dce1a7972b44680438ea55bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)"
|