1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
11 # Make sure to always distribute all folders
12 # since SUBDIRS is decided at configure time.
33 noinst_LTLIBRARIES = libcommon.la
34 EXTRA_DIST = mi-lttng-4.0.xsd
36 libcommon_la_SOURCES = \
40 actions/rotate-session.c \
41 actions/snapshot-session.c \
42 actions/start-session.c \
43 actions/stop-session.c \
44 actions/rate-policy.c \
45 buffer-view.h buffer-view.c \
47 conditions/buffer-usage.c \
48 conditions/condition.c \
49 conditions/event-rule-matches.c \
50 conditions/session-consumed-size.c \
51 conditions/session-rotation.c \
53 credentials.c credentials.h \
54 daemonize.c daemonize.h \
57 dynamic-array.c dynamic-array.h \
58 dynamic-buffer.c dynamic-buffer.h \
64 event-expr-to-bytecode.c event-expr-to-bytecode.h \
66 event-rule/event-rule.c \
67 event-rule/kernel-probe.c \
68 event-rule/syscall.c \
69 event-rule/userspace-probe.c \
70 event-rule/tracepoint.c \
72 fd-handle.c fd-handle.h \
73 fs-handle.c fs-handle.h fs-handle-internal.h \
76 index-allocator.c index-allocator.h \
79 mi-lttng.c mi-lttng.h \
83 payload-view.c payload-view.h \
85 readwrite.c readwrite.h \
88 session-descriptor.c \
89 snapshot.c snapshot.h \
90 spawn-viewer.c spawn-viewer.h \
92 trace-chunk.c trace-chunk.h \
93 trace-chunk-registry.h \
101 tracker.c tracker.h \
105 libcommon_la_SOURCES += \
106 lttng-elf.c lttng-elf.h
109 libcommon_la_LIBADD = \
110 $(top_builddir)/src/common/bytecode/libbytecode.la \
111 $(top_builddir)/src/common/config/libconfig.la \
112 $(top_builddir)/src/common/compat/libcompat.la \
113 $(top_builddir)/src/common/hashtable/libhashtable.la \
114 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
115 $(top_builddir)/src/common/filter/libfilter.la \
116 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
126 if BUILD_LIB_HASHTABLE
130 if BUILD_LIB_KERNEL_CTL
131 SUBDIRS += kernel-ctl
134 if BUILD_LIB_SESSIOND_COMM
135 SUBDIRS += sessiond-comm
142 if BUILD_LIB_FD_TRACKER
143 SUBDIRS += fd-tracker
146 if BUILD_LIB_KERNEL_CONSUMER
147 SUBDIRS += kernel-consumer
150 if BUILD_LIB_UST_CONSUMER
151 SUBDIRS += ust-consumer
154 if BUILD_LIB_TESTPOINT
166 if BUILD_LIB_CONSUMER
183 noinst_PROGRAMS = filter-grammar-test
184 filter_grammar_test_SOURCES = filter-grammar-test.c
185 filter_grammar_test_LDADD = \
189 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
190 for script in $(EXTRA_DIST); do \
191 cp -f $(srcdir)/$$script $(builddir); \
196 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
197 for script in $(EXTRA_DIST); do \
198 rm -f $(builddir)/$$script; \