summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 9b1a9a2565574c52baa7fac0a5f30a8c367cad9f (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
SUBDIRS = Common Client Core Daemon Net modules

daemon_modules   = -dlpreopen modules/FileLogger.la
core_modules     = -dlpreopen modules/FileLogger.la

if SYSTEMBACKEND_POSIX
daemon_modules  += -dlpreopen modules/SystemBackendPosix.la
core_modules    += -dlpreopen modules/SystemBackendPosix.la
endif

if SYSTEMBACKEND_PROC
daemon_modules  += -dlpreopen modules/SystemBackendProc.la
core_modules    += -dlpreopen modules/SystemBackendProc.la
endif

if USERBACKEND_MYSQL
core_modules    += -dlopen modules/UserBackendMysql.la
endif

bin_PROGRAMS     = mad madc mad-core

mad_SOURCES      = mad.cpp
mad_LDADD        = Daemon/libdaemon.la Common/libcommon.la Net/libnet.la \
                   $(libxml2_LIBS) $(sigc_LIBS) $(GnuTLS_LIBS) @LIBLTDL@ $(daemon_modules)
mad_LDFLAGS      = -export-dynamic
                   
madc_SOURCES     = madc.cpp
madc_LDADD       = Client/libclient.la Common/libcommon.la Net/libnet.la \
                   $(libxml2_LIBS) $(sigc_LIBS) $(GnuTLS_LIBS) $(READLINE_LIBS)

mad_core_SOURCES = mad-core.cpp
mad_core_LDADD   = Core/libcore.la Common/libcommon.la Net/libnet.la \
                   $(libxml2_LIBS) $(sigc_LIBS) $(GnuTLS_LIBS) $(GSSAPI_LIBS) @LIBLTDL@ $(core_modules)
mad_core_LDFLAGS = -export-dynamic