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.1.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 \
71 event-rule/event-rule.c \
72 event-rule/kernel-kprobe.c \
73 event-rule/kernel-syscall.c \
74 event-rule/kernel-uprobe.c \
75 event-rule/kernel-tracepoint.c \
76 event-rule/user-tracepoint.c \
77 event-rule/log4j-logging.c \
78 event-rule/jul-logging.c \
79 event-rule/python-logging.c \
81 fd-handle.c fd-handle.h \
82 fs-handle.c fs-handle.h fs-handle-internal.h \
85 index-allocator.c index-allocator.h \
88 mi-lttng.c mi-lttng.h \
92 payload-view.c payload-view.h \
94 readwrite.c readwrite.h \
97 session-descriptor.c \
98 snapshot.c snapshot.h \
99 spawn-viewer.c spawn-viewer.h \
101 trace-chunk.c trace-chunk.h \
102 trace-chunk-registry.h \
110 tracker.c tracker.h \
114 libcommon_la_SOURCES += \
115 lttng-elf.c lttng-elf.h
118 libcommon_la_LIBADD = \
119 $(top_builddir)/src/common/bytecode/libbytecode.la \
120 $(top_builddir)/src/common/config/libconfig.la \
121 $(top_builddir)/src/common/compat/libcompat.la \
122 $(top_builddir)/src/common/hashtable/libhashtable.la \
123 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
124 $(top_builddir)/src/common/filter/libfilter.la \
125 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
131 if BUILD_LIB_KERNEL_CTL
132 SUBDIRS += kernel-ctl
135 if BUILD_LIB_SESSIOND_COMM
136 SUBDIRS += sessiond-comm
144 if BUILD_LIB_KERNEL_CONSUMER
145 SUBDIRS += kernel-consumer
148 if BUILD_LIB_UST_CONSUMER
149 SUBDIRS += ust-consumer
152 if BUILD_LIB_TESTPOINT
160 if BUILD_LIB_CONSUMER
177 noinst_PROGRAMS = filter-grammar-test
178 filter_grammar_test_SOURCES = filter-grammar-test.c
179 filter_grammar_test_LDADD = \
183 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
184 for script in $(EXTRA_DIST); do \
185 cp -f $(srcdir)/$$script $(builddir); \
190 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
191 for script in $(EXTRA_DIST); do \
192 rm -f $(builddir)/$$script; \