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 = \
40 actions/rotate-session.c \
41 actions/snapshot-session.c \
42 actions/start-session.c \
43 actions/stop-session.c \
44 buffer-view.h buffer-view.c \
46 conditions/buffer-usage.c \
47 conditions/condition.c \
48 conditions/on-event.c \
49 conditions/session-consumed-size.c \
50 conditions/session-rotation.c \
52 credentials.c credentials.h \
53 daemonize.c daemonize.h \
56 dynamic-array.c dynamic-array.h \
57 dynamic-buffer.c dynamic-buffer.h \
62 event-expr-to-bytecode.c event-expr-to-bytecode.h \
64 event-rule/event-rule.c \
65 event-rule/kernel-probe.c \
66 event-rule/syscall.c \
67 event-rule/userspace-probe.c \
68 event-rule/tracepoint.c \
70 fd-handle.c fd-handle.h \
71 fs-handle.c fs-handle.h fs-handle-internal.h \
74 index-allocator.c index-allocator.h \
77 mi-lttng.c mi-lttng.h \
81 payload-view.c payload-view.h \
83 readwrite.c readwrite.h \
86 session-descriptor.c \
87 snapshot.c snapshot.h \
88 spawn-viewer.c spawn-viewer.h \
90 trace-chunk.c trace-chunk.h \
91 trace-chunk-registry.h \
103 libcommon_la_SOURCES += \
104 lttng-elf.c lttng-elf.h
107 libcommon_la_LIBADD = \
108 $(top_builddir)/src/common/bytecode/libbytecode.la \
109 $(top_builddir)/src/common/config/libconfig.la \
110 $(top_builddir)/src/common/compat/libcompat.la \
111 $(top_builddir)/src/common/hashtable/libhashtable.la \
112 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
113 $(top_builddir)/src/common/filter/libfilter.la \
114 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
124 if BUILD_LIB_HASHTABLE
128 if BUILD_LIB_KERNEL_CTL
129 SUBDIRS += kernel-ctl
132 if BUILD_LIB_SESSIOND_COMM
133 SUBDIRS += sessiond-comm
140 if BUILD_LIB_FD_TRACKER
141 SUBDIRS += fd-tracker
144 if BUILD_LIB_KERNEL_CONSUMER
145 SUBDIRS += kernel-consumer
148 if BUILD_LIB_UST_CONSUMER
149 SUBDIRS += ust-consumer
152 if BUILD_LIB_TESTPOINT
164 if BUILD_LIB_CONSUMER
182 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
183 for script in $(EXTRA_DIST); do \
184 cp -f $(srcdir)/$$script $(builddir); \
189 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
190 for script in $(EXTRA_DIST); do \
191 rm -f $(builddir)/$$script; \