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 = \
39 actions/incr-value.c \
41 actions/rotate-session.c \
42 actions/snapshot-session.c \
43 actions/start-session.c \
44 actions/stop-session.c \
45 buffer-view.h buffer-view.c \
47 conditions/buffer-usage.c \
48 conditions/condition.c \
49 conditions/on-event.c \
50 conditions/session-consumed-size.c \
51 conditions/session-rotation.c \
53 credentials.c credentials.h \
54 daemonize.c daemonize.h \
57 dynamic-array.c dynamic-array.h \
58 dynamic-buffer.c dynamic-buffer.h \
63 event-expr-to-bytecode.c event-expr-to-bytecode.h \
65 event-rule/event-rule.c \
66 event-rule/kernel-function.c \
67 event-rule/kernel-probe.c \
68 event-rule/syscall.c \
69 event-rule/userspace-probe.c \
70 event-rule/tracepoint.c \
72 fd-handle.c fd-handle.h \
73 fs-handle.c fs-handle.h fs-handle-internal.h \
77 index-allocator.c index-allocator.h \
83 mi-lttng.c mi-lttng.h \
87 payload-view.c payload-view.h \
89 readwrite.c readwrite.h \
92 session-descriptor.c \
93 snapshot.c snapshot.h \
94 spawn-viewer.c spawn-viewer.h \
96 trace-chunk.c trace-chunk.h \
97 trace-chunk-registry.h \
105 tracker.c tracker.h \
109 libcommon_la_SOURCES += \
110 lttng-elf.c lttng-elf.h
113 libcommon_la_LIBADD = \
114 $(top_builddir)/src/common/bytecode/libbytecode.la \
115 $(top_builddir)/src/common/config/libconfig.la \
116 $(top_builddir)/src/common/compat/libcompat.la \
117 $(top_builddir)/src/common/hashtable/libhashtable.la \
118 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
119 $(top_builddir)/src/common/filter/libfilter.la \
120 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
130 if BUILD_LIB_HASHTABLE
134 if BUILD_LIB_KERNEL_CTL
135 SUBDIRS += kernel-ctl
138 if BUILD_LIB_SESSIOND_COMM
139 SUBDIRS += sessiond-comm
146 if BUILD_LIB_FD_TRACKER
147 SUBDIRS += fd-tracker
150 if BUILD_LIB_KERNEL_CONSUMER
151 SUBDIRS += kernel-consumer
154 if BUILD_LIB_UST_CONSUMER
155 SUBDIRS += ust-consumer
158 if BUILD_LIB_TESTPOINT
170 if BUILD_LIB_CONSUMER
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; \