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