summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 605de80..07be7ea 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1051,6 +1051,11 @@ libmurphy_resource_la_LDFLAGS = \
libmurphy_resource_la_LIBADD = \
libmurphy-common.la
+if DLOG_ENABLED
+libmurphy_resource_la_CFLAGS += $(DLOG_CFLAGS) -DDLOG_ENABLED
+libmurphy_resource_la_LIBADD += $(DLOG_LIBS)
+endif
+
libmurphy_resource_la_DEPENDENCIES = \
libmurphy-common.la \
linker-script.resource \
@@ -1426,6 +1431,30 @@ endif
endif
endif
+# dlog (logging) plugin
+if DLOG_ENABLED
+DLOG_PLUGIN_SOURCES = plugins/plugin-dlog.c
+DLOG_PLUGIN_CFLAGS = $(DLOG_CFLAGS)
+DLOG_PLUGIN_LIBS = $(DLOG_LIBS)
+
+if !DISABLED_PLUGIN_DLOG
+if BUILTIN_PLUGIN_DLOG
+BUILTIN_PLUGINS += $(DLOG_PLUGIN_SOURCES)
+BUILTIN_CFLAGS += $(DLOG_PLUGIN_CFLAGS)
+BUILTIN_LIBS += $(DLOG_PLUGIN_LIBS)
+else
+plugin_dlog_la_SOURCES = $(DLOG_PLUGIN_SOURCES)
+plugin_dlog_la_CFLAGS = $(DLOG_PLUGIN_CFLAGS) \
+ $(MURPHY_CFLAGS) \
+ $(AM_CFLAGS)
+plugin_dlog_la_LDFLAGS = -module -avoid-version
+plugin_dlog_la_LIBADD = $(DLOG_PLUGIN_LIBS)
+
+plugin_LTLIBRARIES += plugin-dlog.la
+endif
+endif
+endif
+
###################################
# murphy daemon