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 \
88 mi-lttng.c mi-lttng.h \
91 payload-view.c payload-view.h \
93 readwrite.c readwrite.h \
95 session-descriptor.c \
96 snapshot.c snapshot.h \
97 spawn-viewer.c spawn-viewer.h \
100 tracker.c tracker.h \
108 libcommon_lgpl_la_SOURCES += \
109 lttng-elf.c lttng-elf.h
112 libcommon_lgpl_la_LIBADD = \
113 $(top_builddir)/src/common/bytecode/libbytecode.la \
114 $(top_builddir)/src/common/compat/libcompat.la \
115 $(top_builddir)/src/common/config/libconfig.la \
116 $(top_builddir)/src/common/filter/libfilter.la \
117 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la \
118 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
120 # The libpath static archive contains GPLv2 compatible code. It is
121 # meant to be used by GPL executables.
123 libpath_la_SOURCES = \
126 # The libcommon-gpl static archive contains GPLv2 compatible code. It is
127 # meant to be used by GPL executables.
129 libcommon_gpl_la_SOURCES = \
131 context.c context.h \
132 daemonize.c daemonize.h \
134 fs-handle.c fs-handle.h fs-handle-internal.h \
136 index-allocator.c index-allocator.h \
140 trace-chunk.c trace-chunk.h \
141 trace-chunk-registry.h \
145 libcommon_gpl_la_LIBADD = \
148 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
149 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
155 if BUILD_LIB_KERNEL_CTL
156 SUBDIRS += kernel-ctl
159 if BUILD_LIB_SESSIOND_COMM
160 SUBDIRS += sessiond-comm
168 if BUILD_LIB_KERNEL_CONSUMER
169 SUBDIRS += kernel-consumer
172 if BUILD_LIB_UST_CONSUMER
173 SUBDIRS += ust-consumer
176 if BUILD_LIB_TESTPOINT
184 if BUILD_LIB_CONSUMER
201 noinst_PROGRAMS = filter-grammar-test
202 filter_grammar_test_SOURCES = filter-grammar-test.c
203 filter_grammar_test_LDADD = libcommon-gpl.la
206 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
207 for script in $(EXTRA_DIST); do \
208 cp -f $(srcdir)/$$script $(builddir); \
213 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
214 for script in $(EXTRA_DIST); do \
215 rm -f $(builddir)/$$script; \