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/tracepoint.c \
72 event-rule/kernel-tracepoint.c \
73 event-rule/user-tracepoint.c \
75 fd-handle.c fd-handle.h \
76 fs-handle.c fs-handle.h fs-handle-internal.h \
79 index-allocator.c index-allocator.h \
82 mi-lttng.c mi-lttng.h \
86 payload-view.c payload-view.h \
88 readwrite.c readwrite.h \
91 session-descriptor.c \
92 snapshot.c snapshot.h \
93 spawn-viewer.c spawn-viewer.h \
95 trace-chunk.c trace-chunk.h \
96 trace-chunk-registry.h \
104 tracker.c tracker.h \
108 libcommon_la_SOURCES += \
109 lttng-elf.c lttng-elf.h
112 libcommon_la_LIBADD = \
113 $(top_builddir)/src/common/bytecode/libbytecode.la \
114 $(top_builddir)/src/common/config/libconfig.la \
115 $(top_builddir)/src/common/compat/libcompat.la \
116 $(top_builddir)/src/common/hashtable/libhashtable.la \
117 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
118 $(top_builddir)/src/common/filter/libfilter.la \
119 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
129 if BUILD_LIB_HASHTABLE
133 if BUILD_LIB_KERNEL_CTL
134 SUBDIRS += kernel-ctl
137 if BUILD_LIB_SESSIOND_COMM
138 SUBDIRS += sessiond-comm
145 if BUILD_LIB_FD_TRACKER
146 SUBDIRS += fd-tracker
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
169 if BUILD_LIB_CONSUMER
186 noinst_PROGRAMS = filter-grammar-test
187 filter_grammar_test_SOURCES = filter-grammar-test.c
188 filter_grammar_test_LDADD = \
192 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
193 for script in $(EXTRA_DIST); do \
194 cp -f $(srcdir)/$$script $(builddir); \
199 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
200 for script in $(EXTRA_DIST); do \
201 rm -f $(builddir)/$$script; \