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 \
57 conditions/buffer-usage.c \
58 conditions/condition.c \
59 conditions/event-rule-matches.c \
60 conditions/session-consumed-size.c \
61 conditions/session-rotation.c \
62 credentials.c credentials.h \
65 dynamic-array.c dynamic-array.h \
66 dynamic-buffer.c dynamic-buffer.h \
71 event-expr/event-expr.c \
73 event-rule/event-rule.c \
74 event-rule/kernel-kprobe.c \
75 event-rule/kernel-syscall.c \
76 event-rule/kernel-uprobe.c \
77 event-rule/kernel-tracepoint.c \
78 event-rule/user-tracepoint.c \
79 event-rule/log4j-logging.c \
80 event-rule/jul-logging.c \
81 event-rule/python-logging.c \
82 fd-handle.c fd-handle.h \
86 mi-lttng.c mi-lttng.h \
89 payload-view.c payload-view.h \
90 readwrite.c readwrite.h \
92 session-descriptor.c \
93 snapshot.c snapshot.h \
94 spawn-viewer.c spawn-viewer.h \
105 libcommon_lgpl_la_SOURCES += \
106 lttng-elf.c lttng-elf.h
109 libcommon_lgpl_la_LIBADD = \
110 $(top_builddir)/src/common/bytecode/libbytecode.la \
111 $(top_builddir)/src/common/compat/libcompat.la \
112 $(top_builddir)/src/common/config/libconfig.la \
113 $(top_builddir)/src/common/filter/libfilter.la \
114 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la \
115 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
117 # The libpath static archive contains GPLv2 compatible code. It is
118 # meant to be used by GPL executables.
120 libpath_la_SOURCES = \
123 # The libcommon-gpl static archive contains GPLv2 compatible code. It is
124 # meant to be used by GPL executables.
126 libcommon_gpl_la_SOURCES = \
128 context.c context.h \
129 daemonize.c daemonize.h \
132 fs-handle.c fs-handle.h fs-handle-internal.h \
134 index-allocator.c index-allocator.h \
138 trace-chunk.c trace-chunk.h \
139 trace-chunk-registry.h \
143 libcommon_gpl_la_LIBADD = \
146 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
147 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
153 if BUILD_LIB_KERNEL_CTL
154 SUBDIRS += kernel-ctl
157 if BUILD_LIB_SESSIOND_COMM
158 SUBDIRS += sessiond-comm
166 if BUILD_LIB_KERNEL_CONSUMER
167 SUBDIRS += kernel-consumer
170 if BUILD_LIB_UST_CONSUMER
171 SUBDIRS += ust-consumer
174 if BUILD_LIB_TESTPOINT
182 if BUILD_LIB_CONSUMER
199 noinst_PROGRAMS = filter-grammar-test
200 filter_grammar_test_SOURCES = filter-grammar-test.c
201 filter_grammar_test_LDADD = libcommon-gpl.la
204 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
205 for script in $(EXTRA_DIST); do \
206 cp -f $(srcdir)/$$script $(builddir); \
211 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
212 for script in $(EXTRA_DIST); do \
213 rm -f $(builddir)/$$script; \