1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
16 # Make sure to always distribute all folders
17 # since SUBDIRS is decided at configure time.
39 noinst_LTLIBRARIES = libpath.la libcommon-lgpl.la libcommon-gpl.la
40 EXTRA_DIST = mi-lttng-4.1.xsd
42 # The libcommon-lgpl static archive contains only LGPLv2.1 code. It is
43 # meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also
44 # contains libcommon-lgpl.la.
46 libcommon_lgpl_la_SOURCES = \
51 actions/rotate-session.c \
52 actions/snapshot-session.c \
53 actions/start-session.c \
54 actions/stop-session.c \
55 actions/rate-policy.c \
56 buffer-view.h buffer-view.c \
58 conditions/buffer-usage.c \
59 conditions/condition.c \
60 conditions/event-rule-matches.c \
61 conditions/session-consumed-size.c \
62 conditions/session-rotation.c \
63 credentials.c credentials.h \
66 dynamic-array.c dynamic-array.h \
67 dynamic-buffer.c dynamic-buffer.h \
73 event-expr/event-expr.c \
75 event-rule/event-rule.c \
76 event-rule/kernel-kprobe.c \
77 event-rule/kernel-syscall.c \
78 event-rule/kernel-uprobe.c \
79 event-rule/kernel-tracepoint.c \
80 event-rule/user-tracepoint.c \
81 event-rule/log4j-logging.c \
82 event-rule/jul-logging.c \
83 event-rule/python-logging.c \
84 fd-handle.c fd-handle.h \
87 lockfile.c lockfile.h \
89 mi-lttng.c mi-lttng.h \
92 payload-view.c payload-view.h \
94 readwrite.c readwrite.h \
96 session-descriptor.c \
97 snapshot.c snapshot.h \
98 spawn-viewer.c spawn-viewer.h \
101 tracker.c tracker.h \
109 libcommon_lgpl_la_SOURCES += \
110 lttng-elf.c lttng-elf.h
113 libcommon_lgpl_la_LIBADD = \
114 $(top_builddir)/src/common/bytecode/libbytecode.la \
115 $(top_builddir)/src/common/compat/libcompat.la \
116 $(top_builddir)/src/common/config/libconfig.la \
117 $(top_builddir)/src/common/filter/libfilter.la \
118 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la \
119 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
121 # The libpath static archive contains GPLv2 compatible code. It is
122 # meant to be used by GPL executables.
124 libpath_la_SOURCES = \
127 # The libcommon-gpl static archive contains GPLv2 compatible code. It is
128 # meant to be used by GPL executables.
130 libcommon_gpl_la_SOURCES = \
132 context.c context.h \
133 daemonize.c daemonize.h \
135 fs-handle.c fs-handle.h fs-handle-internal.h \
137 index-allocator.c index-allocator.h \
141 trace-chunk.c trace-chunk.h \
142 trace-chunk-registry.h \
146 libcommon_gpl_la_LIBADD = \
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.c
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; \