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.cpp \
46 actions/snapshot-session.cpp \
47 actions/start-session.cpp \
48 actions/stop-session.cpp \
49 actions/rate-policy.cpp \
50 buffer-view.h buffer-view.cpp \
52 conditions/buffer-usage.cpp \
53 conditions/condition.cpp \
54 conditions/event-rule-matches.cpp \
55 conditions/session-consumed-size.cpp \
56 conditions/session-rotation.cpp \
57 context.cpp context.h \
58 credentials.cpp credentials.h \
59 daemonize.cpp daemonize.h \
62 dynamic-array.cpp dynamic-array.h \
63 dynamic-buffer.cpp dynamic-buffer.h \
69 event-expr/event-expr.cpp \
70 event-field-value.cpp \
71 event-rule/event-rule.cpp \
72 event-rule/kernel-kprobe.cpp \
73 event-rule/kernel-syscall.cpp \
74 event-rule/kernel-uprobe.cpp \
75 event-rule/kernel-tracepoint.cpp \
76 event-rule/user-tracepoint.cpp \
77 event-rule/log4j-logging.cpp \
78 event-rule/jul-logging.cpp \
79 event-rule/python-logging.cpp \
81 fd-handle.cpp fd-handle.h \
82 fs-handle.cpp fs-handle.h fs-handle-internal.h \
85 index-allocator.cpp index-allocator.h \
88 mi-lttng.cpp mi-lttng.h \
91 payload.cpp payload.h \
92 payload-view.cpp payload-view.h \
94 readwrite.cpp readwrite.h \
97 session-descriptor.cpp \
98 snapshot.cpp snapshot.h \
99 spawn-viewer.cpp spawn-viewer.h \
101 trace-chunk.cpp trace-chunk.h \
102 trace-chunk-registry.h \
106 userspace-probe.cpp \
109 thread.cpp thread.h \
110 tracker.cpp tracker.h \
114 libcommon_la_SOURCES += \
115 lttng-elf.cpp 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.cpp
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; \