1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
17 # Make sure to always distribute all folders
18 # since SUBDIRS is decided at configure time.
41 noinst_LTLIBRARIES = libcommon.la
42 EXTRA_DIST = mi-lttng-4.1.xsd
44 libcommon_la_SOURCES = \
49 actions/rotate-session.cpp \
50 actions/snapshot-session.cpp \
51 actions/start-session.cpp \
52 actions/stop-session.cpp \
53 actions/rate-policy.cpp \
54 buffer-view.h buffer-view.cpp \
56 conditions/buffer-usage.cpp \
57 conditions/condition.cpp \
58 conditions/event-rule-matches.cpp \
59 conditions/session-consumed-size.cpp \
60 conditions/session-rotation.cpp \
61 context.cpp context.h \
62 credentials.cpp credentials.h \
63 daemonize.cpp daemonize.h \
66 dynamic-array.cpp dynamic-array.h \
67 dynamic-buffer.cpp dynamic-buffer.h \
73 event-expr/event-expr.cpp \
74 event-field-value.cpp \
75 event-rule/event-rule.cpp \
76 event-rule/kernel-kprobe.cpp \
77 event-rule/kernel-syscall.cpp \
78 event-rule/kernel-uprobe.cpp \
79 event-rule/kernel-tracepoint.cpp \
80 event-rule/user-tracepoint.cpp \
81 event-rule/log4j-logging.cpp \
82 event-rule/jul-logging.cpp \
83 event-rule/python-logging.cpp \
85 fd-handle.cpp fd-handle.h \
86 fs-handle.cpp fs-handle.h fs-handle-internal.h \
89 index-allocator.cpp index-allocator.h \
92 mi-lttng.cpp mi-lttng.h \
95 payload.cpp payload.h \
96 payload-view.cpp payload-view.h \
98 readwrite.cpp readwrite.h \
101 session-descriptor.cpp \
102 snapshot.cpp snapshot.h \
103 spawn-viewer.cpp spawn-viewer.h \
105 trace-chunk.cpp trace-chunk.h \
106 trace-chunk-registry.h \
110 userspace-probe.cpp \
113 thread.cpp thread.h \
114 tracker.cpp tracker.h \
118 libcommon_la_SOURCES += \
119 lttng-elf.cpp lttng-elf.h
122 libcommon_la_LIBADD = \
123 $(top_builddir)/src/common/bytecode/libbytecode.la \
124 $(top_builddir)/src/common/config/libconfig.la \
125 $(top_builddir)/src/common/ini-config/libini-config.la \
126 $(top_builddir)/src/common/compat/libcompat.la \
127 $(top_builddir)/src/common/hashtable/libhashtable.la \
128 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
129 $(top_builddir)/src/common/filter/libfilter.la \
130 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
136 if BUILD_LIB_KERNEL_CTL
137 SUBDIRS += kernel-ctl
140 if BUILD_LIB_SESSIOND_COMM
141 SUBDIRS += sessiond-comm
149 if BUILD_LIB_KERNEL_CONSUMER
150 SUBDIRS += kernel-consumer
153 if BUILD_LIB_UST_CONSUMER
154 SUBDIRS += ust-consumer
157 if BUILD_LIB_TESTPOINT
165 if BUILD_LIB_CONSUMER
182 noinst_PROGRAMS = filter-grammar-test
183 filter_grammar_test_SOURCES = filter-grammar-test.cpp
184 filter_grammar_test_LDADD = \
188 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
189 for script in $(EXTRA_DIST); do \
190 cp -f $(srcdir)/$$script $(builddir); \
195 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
196 for script in $(EXTRA_DIST); do \
197 rm -f $(builddir)/$$script; \