SUBDIRS = Common Client Server Daemon Net modules daemon_modules = -dlpreopen modules/FileLogger.la server_modules = -dlpreopen modules/FileLogger.la if SYSTEMBACKEND_POSIX daemon_modules += -dlpreopen modules/SystemBackendPosix.la server_modules += -dlpreopen modules/SystemBackendPosix.la endif if SYSTEMBACKEND_PROC daemon_modules += -dlpreopen modules/SystemBackendProc.la server_modules += -dlpreopen modules/SystemBackendProc.la endif if USERBACKEND_MYSQL server_modules += -dlopen modules/UserBackendMysql.la endif bin_PROGRAMS = mad madc mad-server 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_server_SOURCES = mad-server.cpp mad_server_LDADD = Server/libserver.la Common/libcommon.la Net/libnet.la \ $(libxml2_LIBS) $(sigc_LIBS) $(GnuTLS_LIBS) $(GSSAPI_LIBS) @LIBLTDL@ $(server_modules) mad_server_LDFLAGS = -export-dynamic