summaryrefslogtreecommitdiffstats
path: root/src/modules/Makefile.am
blob: ee11f5c621903107b5ddcf0edf3feb68650ef13e (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
moddir                        = ${pkglibdir}/modules

default_ldflags               = -module -avoid-version -export-dynamic 
static_ldflags                = $(default_ldflags) -static -rpath $(moddir)

EXTRA_LTLIBTRARIES            = SystemBackendPosix.la SystemBackendProc.la UserBackendMysql.la

mod_LTLIBRARIES               = 
noinst_LTLIBRARIES            = FileLogger.la

if SYSTEMBACKEND_POSIX
noinst_LTLIBRARIES           += SystemBackendPosix.la
endif

if SYSTEMBACKEND_PROC
noinst_LTLIBRARIES           += SystemBackendProc.la
endif

if USERBACKEND_MYSQL
mod_LTLIBRARIES              += UserBackendMysql.la
endif

FileLogger_la_SOURCES         = FileLogger.cpp
FileLogger_la_LDFLAGS         = $(static_ldflags) -export-symbols-regex '^FileLogger_LTX_'

SystemBackendPosix_la_SOURCES = SystemBackendPosix.cpp
SystemBackendPosix_la_LIBADD  = $(sigc_LIBS)
SystemBackendPosix_la_LDFLAGS = $(static_ldflags) -export-symbols-regex '^SystemBackendPosix_LTX_'

SystemBackendProc_la_SOURCES  = SystemBackendProc.cpp
SystemBackendProc_la_LDFLAGS  = $(static_ldflags) -export-symbols-regex '^SystemBackendProc_LTX_'

UserBackendMysql_la_SOURCES   = UserBackendMysql.cpp
UserBackendMysql_la_LIBADD    = $(MYSQL_LDFLAGS)
UserBackendMysql_la_LDFLAGS   = $(default_ldflags) -export-symbols-regex '^UserBackendMysql_LTX_'

noinst_HEADERS                = FileLogger.h SystemBackendPosix.h SystemBackendProc.h UserBackendMysql.h