-AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include
+AM_CPPFLAGS += -I$(top_srcdir)/plugins
-SUBDIRS = .
+SUBDIRS = pretty .
+# dmesg
-lib_LTLIBRARIES = libbabeltrace-plugin-ctf-text.la
+plugindir = "$(PLUGINSDIR)"
+plugin_LTLIBRARIES = babeltrace-plugin-text.la
-# Plug-in system library
-libbabeltrace_plugin_ctf_text_la_SOURCES = \
- text.c
+babeltrace_plugin_text_la_SOURCES = plugin.c
+babeltrace_plugin_text_la_LDFLAGS = \
+ $(LT_NO_UNDEFINED) \
+ -avoid-version -module
-# Request that the linker keeps all static library objects.
-libbabeltrace_plugin_ctf_text_la_LDFLAGS = \
- -version-info $(BABELTRACE_LIBRARY_VERSION)
+babeltrace_plugin_text_la_LIBADD = \
+ pretty/libbabeltrace-plugin-text-pretty-cc.la
-libbabeltrace_plugin_ctf_text_la_LIBADD = \
+# dmesg/libbabeltrace-plugin-text-dmesg-cc.la
+
+if !ENABLE_BUILT_IN_PLUGINS
+babeltrace_plugin_text_la_LIBADD += \
$(top_builddir)/lib/libbabeltrace.la \
- $(top_builddir)/formats/ctf/libbabeltrace-ctf.la
+ $(top_builddir)/common/libbabeltrace-common.la \
+ $(top_builddir)/logging/libbabeltrace-logging.la \
+ $(top_builddir)/compat/libcompat.la
+endif