blob: eaf83cd7b7bf59ae50b4d81dbe6cf16be2b74fb2 (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
--- Makefile.orig Wed Dec 31 11:43:37 2003
+++ Makefile Mon Jan 5 17:16:41 2004
@@ -10,11 +10,11 @@
# $NetAMS: netams/Makefile,v 1.25.2.4 2003/12/31 08:43:37 jura Exp $
##########################################################################
# for FreeBSD, uncomment this
-DEFINE = -DFREEBSD -D_THREAD_SAFE
-LIB = -lpcap -lcrypt
+DEFINE += -DFREEBSD
+LIB += -lpcap -lcrypt
#
# For FreeBSD-4.x uncomment this
-LIB += -pthread
+# LIB += -pthread
# For FreeBSD-5.x uncomment this
# LIB += -lc_r
#
@@ -22,8 +22,8 @@
# DEFINE+= -DUSE_HASH
#
# MySQL storage support
-DEFINE += -DUSE_MYSQL
-LIB += -lmysqlclient -L/usr/local/lib/mysql
+# DEFINE += -DUSE_MYSQL
+# LIB += -lmysqlclient -L/usr/local/lib/mysql
#
# PostgreSQL storage support
# DEFINE += -DUSE_POSTGRES
@@ -53,14 +53,14 @@
# DEFINE += -DIPTBL_NONE
##########################################################################
# Define here a PATH variables
-PATH_TO_CONFIG="/usr/local/etc/netams.cfg"
+PATH_TO_CONFIG="${PREFIX}/etc/netams.conf"
PATH_TO_LOG="/var/log/netams.log"
#
# Uncomment this if you want to log dropped packets
# DEFINE += -DLOG_DROP
# Uncomment this if you want to enable debug features
-DEFINE += -DDEBUG
-FLAGS += -g -Wall
+# DEFINE += -DDEBUG
+# FLAGS += -g -Wall
# Uncomment this if you want to enable profiler support
# LIB += -lm -pg
# FLAGS += -pg
@@ -81,7 +81,7 @@
flowmodule.h versions.sh versions_build.dat
CC = g++
-INCLUDE=/usr/local/include
+INCLUDE = ${LOCALBASE}/include
OBJ = $(SRC:.c=.o)
CFLAGS = $(FLAGS) -I$(INCLUDE) $(DEFINE)
|