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-kprobe.c \
69 event-rule/kernel-syscall.c \
70 event-rule/kernel-uprobe.c \
71 event-rule/kernel-tracepoint.c \
72 event-rule/user-tracepoint.c \
73 event-rule/log4j-logging.c \
74 event-rule/jul-logging.c \
75 event-rule/python-logging.c \
77 fd-handle.c fd-handle.h \
78 fs-handle.c fs-handle.h fs-handle-internal.h \
81 index-allocator.c index-allocator.h \
84 mi-lttng.c mi-lttng.h \
88 payload-view.c payload-view.h \
90 readwrite.c readwrite.h \
93 session-descriptor.c \
94 snapshot.c snapshot.h \
95 spawn-viewer.c spawn-viewer.h \
97 trace-chunk.c trace-chunk.h \
98 trace-chunk-registry.h \
106 tracker.c tracker.h \
110 libcommon_la_SOURCES += \
111 lttng-elf.c lttng-elf.h
114 libcommon_la_LIBADD = \
115 $(top_builddir)/src/common/bytecode/libbytecode.la \
116 $(top_builddir)/src/common/config/libconfig.la \
117 $(top_builddir)/src/common/compat/libcompat.la \
118 $(top_builddir)/src/common/hashtable/libhashtable.la \
119 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
120 $(top_builddir)/src/common/filter/libfilter.la \
121 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
131 if BUILD_LIB_HASHTABLE
135 if BUILD_LIB_KERNEL_CTL
136 SUBDIRS += kernel-ctl
139 if BUILD_LIB_SESSIOND_COMM
140 SUBDIRS += sessiond-comm
147 if BUILD_LIB_FD_TRACKER
148 SUBDIRS += fd-tracker
151 if BUILD_LIB_KERNEL_CONSUMER
152 SUBDIRS += kernel-consumer
155 if BUILD_LIB_UST_CONSUMER
156 SUBDIRS += ust-consumer
159 if BUILD_LIB_TESTPOINT
171 if BUILD_LIB_CONSUMER
188 noinst_PROGRAMS = filter-grammar-test
189 filter_grammar_test_SOURCES = filter-grammar-test.c
190 filter_grammar_test_LDADD = \
194 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
195 for script in $(EXTRA_DIST); do \
196 cp -f $(srcdir)/$$script $(builddir); \
201 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
202 for script in $(EXTRA_DIST); do \
203 rm -f $(builddir)/$$script; \