summaryrefslogtreecommitdiffstats
path: root/Rules.make.in
blob: 21b05d9ca6ff466697d9ce873c6353071a8c41bd (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
#

PREFIX=@prefix@
exec_prefix=@exec_prefix@
ETCDIR=@sysconfdir@
BINDIR=@sbindir@

ULOGD_CONFIGFILE=@sysconfdir@/ulogd.conf

ULOGD_LIB_PATH=@libdir@/ulogd

# Path of libipulog (from iptables)
LIBIPULOG=@top_srcdir@/libipulog
INCIPULOG=-I@top_srcdir@/libipulog/include
INCCONFFILE=-I@top_srcdir@/conffile

CC=@CC@
LD=@LD@
INSTALL=@INSTALL@

CFLAGS=@CFLAGS@ @CPPFLAGS@ -Wall
CFLAGS+=-DULOGD_CONFIGFILE=\"$(ULOGD_CONFIGFILE)\"
# doesn't work for subdirs
#CFLAGS+=$(INCIPULOG) $(INCCONFFILE)
CFLAGS+=-I/lib/modules/`uname -r`/build/include
#CFLAGS+=@DEFS@
#CFLAGS+=-g -DDEBUG -DDEBUG_MYSQL -DDEBUG_PGSQL

LIBS=@LIBS@


# Names of the plugins to be compiled
ULOGD_SL:=BASE OPRINT PWSNIFF LOGEMU LOCAL SYSLOG

# mysql output support
#ULOGD_SL+=MYSQL
MYSQL_CFLAGS=-I@MYSQLINCLUDES@ @EXTRA_MYSQL_DEF@
MYSQL_LDFLAGS=@DATABASE_LIB_DIR@ @MYSQL_LIB@

# postgreSQL output support
#ULOGD_SL+=PGSQL
PGSQL_CFLAGS=-I@PGSQLINCLUDES@ @EXTRA_PGSQL_DEF@
PGSQL_LDFLAGS=@DATABASE_LIB_DIR@ @PGSQL_LIB@