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/event-rule.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-rule/event-rule.c \
64 event-rule/syscall.c \
66 event-rule/tracepoint.c \
68 fd-handle.c fd-handle.h \
69 fs-handle.c fs-handle.h fs-handle-internal.h \
73 mi-lttng.c mi-lttng.h \
77 payload-view.c payload-view.h \
79 readwrite.c readwrite.h \
81 session-descriptor.c \
82 snapshot.c snapshot.h \
83 spawn-viewer.c spawn-viewer.h \
85 trace-chunk.c trace-chunk.h \
86 trace-chunk-registry.h \
98 libcommon_la_SOURCES += \
99 lttng-elf.c lttng-elf.h
102 libcommon_la_LIBADD = \
103 $(top_builddir)/src/common/bytecode/libbytecode.la \
104 $(top_builddir)/src/common/config/libconfig.la \
105 $(top_builddir)/src/common/compat/libcompat.la \
106 $(top_builddir)/src/common/hashtable/libhashtable.la \
107 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
108 $(top_builddir)/src/common/filter/libfilter.la
118 if BUILD_LIB_HASHTABLE
122 if BUILD_LIB_KERNEL_CTL
123 SUBDIRS += kernel-ctl
126 if BUILD_LIB_SESSIOND_COMM
127 SUBDIRS += sessiond-comm
134 if BUILD_LIB_FD_TRACKER
135 SUBDIRS += fd-tracker
138 if BUILD_LIB_KERNEL_CONSUMER
139 SUBDIRS += kernel-consumer
142 if BUILD_LIB_UST_CONSUMER
143 SUBDIRS += ust-consumer
146 if BUILD_LIB_TESTPOINT
158 if BUILD_LIB_CONSUMER
176 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
177 for script in $(EXTRA_DIST); do \
178 cp -f $(srcdir)/$$script $(builddir); \
183 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
184 for script in $(EXTRA_DIST); do \
185 rm -f $(builddir)/$$script; \