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 = \
41 actions/rotate-session.c \
42 actions/snapshot-session.c \
43 actions/start-session.c \
44 actions/stop-session.c \
45 actions/rate-policy.c \
46 buffer-view.h buffer-view.c \
48 conditions/buffer-usage.c \
49 conditions/condition.c \
50 conditions/event-rule-matches.c \
51 conditions/session-consumed-size.c \
52 conditions/session-rotation.c \
54 credentials.c credentials.h \
55 daemonize.c daemonize.h \
58 dynamic-array.c dynamic-array.h \
59 dynamic-buffer.c dynamic-buffer.h \
65 event-expr-to-bytecode.c event-expr-to-bytecode.h \
67 event-rule/event-rule.c \
68 event-rule/kernel-probe.c \
69 event-rule/kernel-syscall.c \
70 event-rule/kernel-uprobe.c \
71 event-rule/tracepoint.c \
73 fd-handle.c fd-handle.h \
74 fs-handle.c fs-handle.h fs-handle-internal.h \
77 index-allocator.c index-allocator.h \
80 mi-lttng.c mi-lttng.h \
84 payload-view.c payload-view.h \
86 readwrite.c readwrite.h \
89 session-descriptor.c \
90 snapshot.c snapshot.h \
91 spawn-viewer.c spawn-viewer.h \
93 trace-chunk.c trace-chunk.h \
94 trace-chunk-registry.h \
102 tracker.c tracker.h \
106 libcommon_la_SOURCES += \
107 lttng-elf.c lttng-elf.h
110 libcommon_la_LIBADD = \
111 $(top_builddir)/src/common/bytecode/libbytecode.la \
112 $(top_builddir)/src/common/config/libconfig.la \
113 $(top_builddir)/src/common/compat/libcompat.la \
114 $(top_builddir)/src/common/hashtable/libhashtable.la \
115 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
116 $(top_builddir)/src/common/filter/libfilter.la \
117 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
127 if BUILD_LIB_HASHTABLE
131 if BUILD_LIB_KERNEL_CTL
132 SUBDIRS += kernel-ctl
135 if BUILD_LIB_SESSIOND_COMM
136 SUBDIRS += sessiond-comm
143 if BUILD_LIB_FD_TRACKER
144 SUBDIRS += fd-tracker
147 if BUILD_LIB_KERNEL_CONSUMER
148 SUBDIRS += kernel-consumer
151 if BUILD_LIB_UST_CONSUMER
152 SUBDIRS += ust-consumer
155 if BUILD_LIB_TESTPOINT
167 if BUILD_LIB_CONSUMER
184 noinst_PROGRAMS = filter-grammar-test
185 filter_grammar_test_SOURCES = filter-grammar-test.c
186 filter_grammar_test_LDADD = \
190 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
191 for script in $(EXTRA_DIST); do \
192 cp -f $(srcdir)/$$script $(builddir); \
197 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
198 for script in $(EXTRA_DIST); do \
199 rm -f $(builddir)/$$script; \