lib_LTLIBRARIES = libchrysacore4.la libchrysacoreui.la # libchrysacore.la bin_PROGRAMS = chrysalide # chrysalide-hub rost AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/intl ############################################################ # Bibliothèques dynamiques ############################################################ #--- libchrysacore if TRACK_GOBJECT_LEAKS GOBJECT_LEAKS_SOURCES = gleak.h gleak.c endif libchrysacore_la_SOURCES = if BUILD_GTK_SUPPORT GTKEXT_LIBADD = \ gtkext/libgtkext.la GTKEXT_SUBDIR = \ gtkext GUI_LIBADD = \ gui/libgui.la GUI_SUBDIR = \ gui endif libchrysacore_la_LIBADD = \ analysis/libanalysis.la \ arch/libarch.la \ common/libcommon.la \ core/libcore.la \ debug/libdebug.la \ format/libformat.la \ glibext/libglibext.la \ $(GTKEXT_LIBADD) \ $(GUI_LIBADD) \ mangling/libmangling.la \ plugins/libplugins.la # -ldl: dladdr(), dlerror() # -lm : pow() libchrysacore_la_LDFLAGS = \ -avoid-version -ldl -lm \ $(TOOLKIT_LIBS) $(LIBXML_LIBS) \ $(LIBSQLITE_LIBS) $(LIBARCHIVE_LIBS) \ $(LIBSSL_LIBS) $(LIBHS_LIBS) if BUILD_CURL_SUPPORT libchrysacore_la_LDFLAGS += $(LIBCURL_LIBS) endif if BUILD_MAGIC_SUPPORT libchrysacore_la_LDFLAGS += $(LIBMAGIC_LIBS) endif libchrysacore4_la_SOURCES = libchrysacore4_la_LIBADD = \ analysis/libanalysis4.la \ arch/libarch4.la \ common/libcommon4.la \ core/libcore4.la \ glibext/libglibext4.la \ plugins/libplugins.la libchrysacore4_la_LDFLAGS = \ $(TOOLKIT_LIBS) $(LIBSSL_LIBS) #--- libchrysacoreui EXTRA_libchrysacoreui_la_DEPENDENCIES = libchrysacore4.la libchrysacoreui_la_SOURCES = libchrysacoreui_la_LIBADD = \ glibext/libglibextui.la \ gtkext/libgtkext4.la \ gui/libgui4.la # -lm: log() libchrysacoreui_la_LDFLAGS = \ $(LIBGTK4_CFLAGS) -L.libs -lchrysacore4 \ -lm ############################################################ # Programme principal ############################################################ EXTRA_chrysalide0_DEPENDENCIES = libchrysacore.la chrysalide0_SOURCES = \ $(GOBJECT_LEAKS_SOURCES) \ main.c chrysalide0_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS) chrysalide0_LDFLAGS = $(TOOLKIT_LIBS) -L/usr/X11R6/lib -ldl -lm $(LIBXML_LIBS) $(LIBPYTHON_LIBS) $(LIBARCHIVE_LIBS) $(LIBSQLITE_LIBS) \ -L.libs -lchrysacore chrysalide0_LDADD = $(LIBINTL) EXTRA_chrysalide_DEPENDENCIES = libchrysacore4.la libchrysacoreui.la chrysalide_SOURCES = \ app.h app.c chrysalide_CFLAGS = $(TOOLKIT4_CFLAGS) $(LIBGIOUNIX_CFLAGS) chrysalide_LDFLAGS = $(TOOLKIT4_LIBS) $(LIBGIOUNIX_LIBS) \ -L.libs -lchrysacore4 -lchrysacoreui chrysalide_LDADD = ############################################################ # Gestionnaire de serveurs distants ############################################################ EXTRA_chrysalide_hub_DEPENDENCIES = libchrysacore.la chrysalide_hub_SOURCES = \ $(GOBJECT_LEAKS_SOURCES) \ hub.c chrysalide_hub_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS) chrysalide_hub_LDFLAGS = $(TOOLKIT_LIBS) $(LIBXML_LIBS) -L.libs -lchrysacore ############################################################ # Détecteur de motifs ############################################################ EXTRA_rost_DEPENDENCIES = libchrysacore.la rost_SOURCES = \ $(GOBJECT_LEAKS_SOURCES) \ rost.c rost_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS) rost_LDFLAGS = $(LIBGOBJ_LIBS) -L.libs -lchrysacore ############################################################ # Le reste du monde ############################################################ # glibext doit être traité en premier, à cause des marshals GLib #SUBDIRS = core glibext $(GTKEXT_SUBDIR) analysis arch format common debug $(GUI_SUBDIR) mangling plugins schemas SUBDIRS = analysis arch common core glibext gtkext gui plugins