summaryrefslogtreecommitdiffstats
path: root/src/modules/Makefile.am
blob: 5e12a5d570ffe4c691c2d2e4c18a9cb965e54630 (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
madlibdir                     = ${libdir}/mad
moddir                        = ${madlibdir}/modules

default_ldflags               = -module -avoid-version -export-dynamic 

EXTRA_LTLIBTRARIES            = SystemBackendPosix.la SystemBackendProc.la UserBackendMysql.la

mod_LTLIBRARIES               =
noinst_LTLIBRARIES            =

if SYSTEMBACKEND_POSIX
noinst_LTLIBRARIES           += SystemBackendPosix.la
endif

if SYSTEMBACKEND_PROC
noinst_LTLIBRARIES           += SystemBackendProc.la
endif

if USERBACKEND_MYSQL
mod_LTLIBRARIES              += UserBackendMysql.la
endif

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

SystemBackendProc_la_SOURCES  = SystemBackendProc.cpp
SystemBackendProc_la_LDFLAGS  = $(default_ldflags) -static -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                = SystemBackendPosix.h SystemBackendProc.h UserBackendMysql.h