1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
15 # Make sure to always distribute all folders
16 # since SUBDIRS is decided at configure time.
37 noinst_LTLIBRARIES = libcommon.la
38 EXTRA_DIST = mi-lttng-4.0.xsd
40 libcommon_la_SOURCES = \
45 actions/rotate-session.c \
46 actions/snapshot-session.c \
47 actions/start-session.c \
48 actions/stop-session.c \
49 actions/rate-policy.c \
50 buffer-view.h buffer-view.c \
52 conditions/buffer-usage.c \
53 conditions/condition.c \
54 conditions/event-rule-matches.c \
55 conditions/session-consumed-size.c \
56 conditions/session-rotation.c \
58 credentials.c credentials.h \
59 daemonize.c daemonize.h \
62 dynamic-array.c dynamic-array.h \
63 dynamic-buffer.c dynamic-buffer.h \
69 event-expr/event-expr.c \
70 event-expr-to-bytecode.c event-expr-to-bytecode.h \
72 event-rule/event-rule.c \
73 event-rule/kernel-kprobe.c \
74 event-rule/kernel-syscall.c \
75 event-rule/kernel-uprobe.c \
76 event-rule/kernel-tracepoint.c \
77 event-rule/user-tracepoint.c \
78 event-rule/log4j-logging.c \
79 event-rule/jul-logging.c \
80 event-rule/python-logging.c \
82 fd-handle.c fd-handle.h \
83 fs-handle.c fs-handle.h fs-handle-internal.h \
86 index-allocator.c index-allocator.h \
89 mi-lttng.c mi-lttng.h \
93 payload-view.c payload-view.h \
95 readwrite.c readwrite.h \
98 session-descriptor.c \
99 snapshot.c snapshot.h \
100 spawn-viewer.c spawn-viewer.h \
102 trace-chunk.c trace-chunk.h \
103 trace-chunk-registry.h \
111 tracker.c tracker.h \
115 libcommon_la_SOURCES += \
116 lttng-elf.c lttng-elf.h
119 libcommon_la_LIBADD = \
120 $(top_builddir)/src/common/bytecode/libbytecode.la \
121 $(top_builddir)/src/common/config/libconfig.la \
122 $(top_builddir)/src/common/compat/libcompat.la \
123 $(top_builddir)/src/common/hashtable/libhashtable.la \
124 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
125 $(top_builddir)/src/common/filter/libfilter.la \
126 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
132 if BUILD_LIB_KERNEL_CTL
133 SUBDIRS += kernel-ctl
136 if BUILD_LIB_SESSIOND_COMM
137 SUBDIRS += sessiond-comm
145 if BUILD_LIB_KERNEL_CONSUMER
146 SUBDIRS += kernel-consumer
149 if BUILD_LIB_UST_CONSUMER
150 SUBDIRS += ust-consumer
153 if BUILD_LIB_TESTPOINT
161 if BUILD_LIB_CONSUMER
178 noinst_PROGRAMS = filter-grammar-test
179 filter_grammar_test_SOURCES = filter-grammar-test.c
180 filter_grammar_test_LDADD = \
184 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
185 for script in $(EXTRA_DIST); do \
186 cp -f $(srcdir)/$$script $(builddir); \
191 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
192 for script in $(EXTRA_DIST); do \
193 rm -f $(builddir)/$$script; \