Makefile.in.OLD 2.46 KB
Newer Older
's avatar
committed
1
PREFIX=/usr/local
Arne Øslebø's avatar
Arne Øslebø committed
2 3 4 5 6 7 8 9
INSTALL_LIBDIR=$(PREFIX)/lib/mapi
INSTALL_INCDIR=$(PREFIX)/include/mapi
INSTALL_BINDIR=$(PREFIX)/bin

# For local libraries (e.g., libpcap)
LIB_DIR=-L/usr/local/lib

# Debug messages ( not to be set if going in production )
10
DEBUG=1
Arne Øslebø's avatar
Arne Øslebø committed
11 12

#DAG cards
13
WITH_DAG=0
Arne Øslebø's avatar
Arne Øslebø committed
14 15

#COMBO6 cards
's avatar
committed
16
WITH_COMBO6=0
Arne Øslebø's avatar
Arne Øslebø committed
17

's avatar
committed
18
#Distributed MAPI functionality
's avatar
committed
19
WITH_DIMAPI=1
's avatar
committed
20

Arne Øslebø's avatar
Arne Øslebø committed
21 22
#MAPI function statistics
#With this pkt counters for each function is enabled
23
WITH_FUNCT_STATS=1
Arne Øslebø's avatar
Arne Øslebø committed
24

25
#Support for flow priorities
Arne Øslebø's avatar
Arne Øslebø committed
26
WITH_PRIORITIES=0
27 28
PRIORITIES=3

Arne Øslebø's avatar
Arne Øslebø committed
29
#Support for functions that modifies packets
Arne Øslebø's avatar
Arne Øslebø committed
30
WITH_MODIFY_PKTS=1
Arne Øslebø's avatar
Arne Øslebø committed
31

32 33 34
#Support for global optimization
WITH_GLOBAL_OPT=0

's avatar
nits  
committed
35
#Support for anonymization
36
WITH_ANONYMIZATION=0
's avatar
committed
37

38
#Support for application-level filtering (mostly P2P traffic identification)
's avatar
nits  
committed
39
WITH_TRACKING=1
40

Arne Øslebø's avatar
Arne Øslebø committed
41
#Ipfix flow record generation
's avatar
committed
42
WITH_IPFIX=0
Arne Øslebø's avatar
Arne Øslebø committed
43

44 45 46 47
#Set to 1 for easier debugging using valgrind
#This keeps drivers loaded and causes memory leak when mapid is shut down
VALGRIND=1

Arne Øslebø's avatar
Arne Øslebø committed
48
#Ethereal filters
49 50 51
#Warning, ethereal-filters could easily kill mapid 
#if not handled correctly by the client. This library
#should only be used in non-production environments
Arne Øslebø's avatar
Arne Øslebø committed
52 53 54 55 56 57
WITH_ETHEREAL=0

#Optimized BPF filter
WITH_OPTIMIZED_BPF_FILTER=0

# ADMISSION CONTROL
Arne Øslebø's avatar
Arne Øslebø committed
58
WITH_ADMISSION_CONTROL=0
Arne Øslebø's avatar
Arne Øslebø committed
59 60
WITH_RESOURCE_CONTROL=0

61
# AUTHENTICATION
62
WITH_AUTHENTICATION=0
63

Arne Øslebø's avatar
Arne Øslebø committed
64 65 66 67 68 69
ifeq ($(WITH_DAG),1)
DAG_API_DIR=/usr/local/dag/tools
DAG_INCLUDE_DIR=/usr/local/dag/include
endif

ifeq ($(WITH_COMBO6),1)
70 71
SCAMPI_PREFIX=/usr/local/src/scampi/scampi
LIBEROUTER_PREFIX=/usr/local/src/scampi/liberouter
's avatar
committed
72
LOBSTER_PREFIX=/usr/local/src/lobster
Arne Øslebø's avatar
Arne Øslebø committed
73 74 75 76
endif

ifeq ($(WITH_ADMISSION_CONTROL),1)
ADMCTRLCL_LDADD=-ladmctrlcl -lssl
's avatar
committed
77
ADMCTRLCL_HEADERS=admctrl_cl.h ./adm_ctrl/lib/slist.h ./adm_ctrl/config.h
Arne Øslebø's avatar
Arne Øslebø committed
78
ADMCTRLCL_BYTESTREAM_H=bytestream.h
's avatar
committed
79
ADMCTRLCL_OBJS=admctrl_cl.o ./adm_ctrl/lib/slist.o
Arne Øslebø's avatar
Arne Øslebø committed
80
ADMCTRLCL_CFLAGS=-DWITH_ADMISSION_CONTROL
's avatar
committed
81
#KEYNOTE_CFLAGS=-I/usr/local/keynote
Arne Øslebø's avatar
Arne Øslebø committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
KEYNOTE_LDADD=-L/usr/local/keynote -lkeynote -lm -lcrypto
endif

ifeq ($(WITH_RESOURCE_CONTROL),1)
RESCTRL_HEADERS=resctrl_cl.h
RESCTRL_OBJS=resctrl_cl.o
RESCTRL_LDADD=-ldb -lsnprintfv
RESCTRL_CFLAGS=-DWITH_RESOURCE_CONTROL
endif


## Normally no need to change anything below this
#################################################
INSTALL=install
MKINSTALLDIRS=mkinstalldirs

's avatar
committed
98 99
# -Wno-pointer-sign shuts up "pointer targets differ in signedness", which gcc-4.0 produces
# en masse
Arne Øslebø's avatar
Arne Øslebø committed
100
C_WARNINGS=-Wall -Wsign-compare -Wpointer-arith -Wnested-externs \
101
-Wmissing-declarations -Wcast-align -Wchar-subscripts -W
Arne Øslebø's avatar
Arne Øslebø committed
102 103
C_FEATURES=-D_GNU_SOURCE -D_THREAD_SAFE
CC=gcc