1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
16 # Make sure to always distribute all folders
17 # since SUBDIRS is decided at configure time.
39 noinst_LTLIBRARIES = libcommon.la
40 EXTRA_DIST = mi-lttng-4.1.xsd
42 libcommon_la_SOURCES = \
47 actions/rotate-session.cpp \
48 actions/snapshot-session.cpp \
49 actions/start-session.cpp \
50 actions/stop-session.cpp \
51 actions/rate-policy.cpp \
52 buffer-view.h buffer-view.cpp \
54 conditions/buffer-usage.cpp \
55 conditions/condition.cpp \
56 conditions/event-rule-matches.cpp \
57 conditions/session-consumed-size.cpp \
58 conditions/session-rotation.cpp \
59 context.cpp context.h \
60 credentials.cpp credentials.h \
61 daemonize.cpp daemonize.h \
64 dynamic-array.cpp dynamic-array.h \
65 dynamic-buffer.cpp dynamic-buffer.h \
71 event-expr/event-expr.cpp \
72 event-field-value.cpp \
73 event-rule/event-rule.cpp \
74 event-rule/kernel-kprobe.cpp \
75 event-rule/kernel-syscall.cpp \
76 event-rule/kernel-uprobe.cpp \
77 event-rule/kernel-tracepoint.cpp \
78 event-rule/user-tracepoint.cpp \
79 event-rule/log4j-logging.cpp \
80 event-rule/jul-logging.cpp \
81 event-rule/python-logging.cpp \
83 fd-handle.cpp fd-handle.h \
84 fs-handle.cpp fs-handle.h fs-handle-internal.h \
87 index-allocator.cpp index-allocator.h \
90 mi-lttng.cpp mi-lttng.h \
93 payload.cpp payload.h \
94 payload-view.cpp payload-view.h \
96 readwrite.cpp readwrite.h \
99 session-descriptor.cpp \
100 snapshot.cpp snapshot.h \
101 spawn-viewer.cpp spawn-viewer.h \
103 trace-chunk.cpp trace-chunk.h \
104 trace-chunk-registry.h \
108 userspace-probe.cpp \
111 thread.cpp thread.h \
112 tracker.cpp tracker.h \
116 libcommon_la_SOURCES += \
117 lttng-elf.cpp lttng-elf.h
120 libcommon_la_LIBADD = \
121 $(top_builddir)/src/common/bytecode/libbytecode.la \
122 $(top_builddir)/src/common/config/libconfig.la \
123 $(top_builddir)/src/common/ini-config/libini-config.la \
124 $(top_builddir)/src/common/compat/libcompat.la \
125 $(top_builddir)/src/common/hashtable/libhashtable.la \
126 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
127 $(top_builddir)/src/common/filter/libfilter.la \
128 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
134 if BUILD_LIB_KERNEL_CTL
135 SUBDIRS += kernel-ctl
138 if BUILD_LIB_SESSIOND_COMM
139 SUBDIRS += sessiond-comm
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
163 if BUILD_LIB_CONSUMER
180 noinst_PROGRAMS = filter-grammar-test
181 filter_grammar_test_SOURCES = filter-grammar-test.cpp
182 filter_grammar_test_LDADD = \
186 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
187 for script in $(EXTRA_DIST); do \
188 cp -f $(srcdir)/$$script $(builddir); \
193 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
194 for script in $(EXTRA_DIST); do \
195 rm -f $(builddir)/$$script; \