+
+
+# libini-config
+noinst_LTLIBRARIES += libini-config.la
+libini_config_la_SOURCES = \
+ ini-config/ini.cpp \
+ ini-config/ini.hpp \
+ ini-config/ini-config.cpp \
+ ini-config/ini-config.hpp
+
+
+if BUILD_LIB_INDEX
+noinst_LTLIBRARIES += libindex.la
+
+libindex_la_SOURCES = \
+ index/ctf-index.hpp \
+ index/index.cpp \
+ index/index.hpp
+endif
+
+
+if BUILD_LIB_KERNEL_CTL
+noinst_LTLIBRARIES += libkernel-ctl.la
+
+libkernel_ctl_la_SOURCES = \
+ kernel-ctl/kernel-ctl.cpp \
+ kernel-ctl/kernel-ctl.hpp \
+ kernel-ctl/kernel-ioctl.hpp
+endif
+
+if BUILD_LIB_SESSIOND_COMM
+noinst_LTLIBRARIES += libsessiond-comm.la
+
+libsessiond_comm_la_SOURCES = \
+ sessiond-comm/agent.hpp \
+ sessiond-comm/inet.cpp \
+ sessiond-comm/inet.hpp \
+ sessiond-comm/inet6.cpp \
+ sessiond-comm/inet6.hpp \
+ sessiond-comm/relayd.hpp \
+ sessiond-comm/sessiond-comm.cpp \
+ sessiond-comm/sessiond-comm.hpp
+endif
+
+if BUILD_LIB_RELAYD
+noinst_LTLIBRARIES += librelayd.la
+
+librelayd_la_SOURCES = \
+ relayd/relayd.cpp \
+ relayd/relayd.hpp
+
+librelayd_la_LIBADD = libsessiond-comm.la
+endif
+
+
+if BUILD_LIB_KERNEL_CONSUMER
+noinst_LTLIBRARIES += libkernel-consumer.la
+
+libkernel_consumer_la_SOURCES = \
+ kernel-consumer/kernel-consumer.cpp \
+ kernel-consumer/kernel-consumer.hpp
+
+libkernel_consumer_la_LIBADD = \
+ libkernel-ctl.la
+endif
+
+if BUILD_LIB_UST_CONSUMER
+if HAVE_LIBLTTNG_UST_CTL
+noinst_LTLIBRARIES += libust-consumer.la
+
+libust_consumer_la_SOURCES = \
+ ust-consumer/ust-consumer.cpp \
+ ust-consumer/ust-consumer.hpp
+
+libust_consumer_la_LIBADD = \
+ $(UST_CTL_LIBS)
+endif
+endif
+
+if BUILD_LIB_TESTPOINT
+noinst_LTLIBRARIES += libtestpoint.la
+
+libtestpoint_la_SOURCES = \
+ testpoint/testpoint.cpp \
+ testpoint/testpoint.hpp
+
+libtestpoint_la_LIBADD = $(DL_LIBS)
+endif
+
+
+# libstring-utils
+noinst_LTLIBRARIES += libstring-utils.la
+libstring_utils_la_SOURCES = \
+ string-utils/c-string-view.hpp \
+ string-utils/format.hpp \
+ string-utils/string-utils.cpp \
+ string-utils/string-utils.hpp
+
+
+noinst_PROGRAMS = filter-grammar-test
+filter_grammar_test_SOURCES = filter-grammar-test.cpp
+filter_grammar_test_LDADD = libcommon-gpl.la
+
+EXTRA_DIST = \
+ mi-lttng-4.1.xsd \
+ session.xsd
+
+xmldir = $(datadir)/xml/lttng
+dist_xml_DATA = session.xsd
+
+# Copy EXTRA_DIST files to the build directory
+all-local:
+ @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+ for script in $(EXTRA_DIST); do \
+ cp -f $(srcdir)/$$script $(builddir); \
+ done; \
+ fi
+
+clean-local:
+ @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+ for script in $(EXTRA_DIST); do \
+ rm -f $(builddir)/$$script; \
+ done; \
+ fi