1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
17 # Make sure to always distribute all folders
18 # since SUBDIRS is decided at configure time.
41 noinst_LTLIBRARIES = libpath.la libcommon-lgpl.la libcommon-gpl.la
42 EXTRA_DIST = mi-lttng-4.1.xsd
44 # The libcommon-lgpl static archive contains only LGPLv2.1 code. It is
45 # meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also
46 # contains libcommon-lgpl.la.
48 libcommon_lgpl_la_SOURCES = \
53 actions/rotate-session.cpp \
54 actions/snapshot-session.cpp \
55 actions/start-session.cpp \
56 actions/stop-session.cpp \
57 actions/rate-policy.cpp \
58 buffer-view.h buffer-view.cpp \
59 conditions/buffer-usage.cpp \
60 conditions/condition.cpp \
61 conditions/event-rule-matches.cpp \
62 conditions/session-consumed-size.cpp \
63 conditions/session-rotation.cpp \
64 credentials.cpp credentials.h \
67 dynamic-array.cpp dynamic-array.h \
68 dynamic-buffer.cpp dynamic-buffer.h \
73 event-expr/event-expr.cpp \
74 event-field-value.cpp \
75 event-rule/event-rule.cpp \
76 event-rule/kernel-kprobe.cpp \
77 event-rule/kernel-syscall.cpp \
78 event-rule/kernel-uprobe.cpp \
79 event-rule/kernel-tracepoint.cpp \
80 event-rule/user-tracepoint.cpp \
81 event-rule/log4j-logging.cpp \
82 event-rule/jul-logging.cpp \
83 event-rule/python-logging.cpp \
84 fd-handle.cpp fd-handle.h \
88 mi-lttng.cpp mi-lttng.h \
90 payload.cpp payload.h \
91 payload-view.cpp payload-view.h \
92 readwrite.cpp readwrite.h \
94 session-descriptor.cpp \
95 snapshot.cpp snapshot.h \
96 spawn-viewer.cpp spawn-viewer.h \
99 tracker.cpp tracker.h \
103 userspace-probe.cpp \
107 libcommon_lgpl_la_SOURCES += \
108 lttng-elf.cpp lttng-elf.h
111 libcommon_lgpl_la_LIBADD = \
112 $(top_builddir)/src/common/bytecode/libbytecode.la \
113 $(top_builddir)/src/common/compat/libcompat.la \
114 $(top_builddir)/src/common/config/libconfig.la \
115 $(top_builddir)/src/common/filter/libfilter.la \
116 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la \
117 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
119 # The libpath static archive contains GPLv2 compatible code. It is
120 # meant to be used by GPL executables.
122 libpath_la_SOURCES = \
125 # The libcommon-gpl static archive contains GPLv2 compatible code. It is
126 # meant to be used by GPL executables.
128 libcommon_gpl_la_SOURCES = \
130 context.cpp context.h \
131 daemonize.cpp daemonize.h \
133 filter.cpp filter.h \
134 fs-handle.cpp fs-handle.h fs-handle-internal.h \
136 index-allocator.cpp index-allocator.h \
140 trace-chunk.cpp trace-chunk.h \
141 trace-chunk-registry.h \
145 libcommon_gpl_la_LIBADD = \
148 $(top_builddir)/src/common/ini-config/libini-config.la \
149 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
150 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
156 if BUILD_LIB_KERNEL_CTL
157 SUBDIRS += kernel-ctl
160 if BUILD_LIB_SESSIOND_COMM
161 SUBDIRS += sessiond-comm
169 if BUILD_LIB_KERNEL_CONSUMER
170 SUBDIRS += kernel-consumer
173 if BUILD_LIB_UST_CONSUMER
174 SUBDIRS += ust-consumer
177 if BUILD_LIB_TESTPOINT
185 if BUILD_LIB_CONSUMER
202 noinst_PROGRAMS = filter-grammar-test
203 filter_grammar_test_SOURCES = filter-grammar-test.cpp
204 filter_grammar_test_LDADD = libcommon-gpl.la
207 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
208 for script in $(EXTRA_DIST); do \
209 cp -f $(srcdir)/$$script $(builddir); \
214 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
215 for script in $(EXTRA_DIST); do \
216 rm -f $(builddir)/$$script; \