1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
5 SUBDIRS = string-utils filter
7 # Make sure to always distribute all folders
8 # since SUBDIRS is decided at configure time.
26 noinst_LTLIBRARIES = libcommon.la
27 EXTRA_DIST = mi-lttng-4.0.xsd
29 libcommon_la_SOURCES = \
33 actions/rotate-session.c \
34 actions/snapshot-session.c \
35 actions/start-session.c \
36 actions/stop-session.c \
37 buffer-view.h buffer-view.c \
39 conditions/buffer-usage.c \
40 conditions/condition.c \
41 conditions/event-rule.c \
42 conditions/session-consumed-size.c \
43 conditions/session-rotation.c \
45 credentials.c credentials.h \
46 daemonize.c daemonize.h \
49 dynamic-array.c dynamic-array.h \
50 dynamic-buffer.c dynamic-buffer.h \
55 event-rule/event-rule.c \
57 event-rule/syscall.c \
59 event-rule/tracepoint.c \
61 fd-handle.c fd-handle.h \
62 fs-handle.c fs-handle.h fs-handle-internal.h \
66 mi-lttng.c mi-lttng.h \
70 payload-view.c payload-view.h \
72 readwrite.c readwrite.h \
74 session-descriptor.c \
75 snapshot.c snapshot.h \
76 spawn-viewer.c spawn-viewer.h \
78 trace-chunk.c trace-chunk.h \
79 trace-chunk-registry.h \
91 libcommon_la_SOURCES += \
92 lttng-elf.c lttng-elf.h
95 libcommon_la_LIBADD = \
96 $(top_builddir)/src/common/config/libconfig.la \
97 $(top_builddir)/src/common/compat/libcompat.la \
98 $(top_builddir)/src/common/hashtable/libhashtable.la \
99 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
100 $(top_builddir)/src/common/filter/libfilter.la
110 if BUILD_LIB_HASHTABLE
114 if BUILD_LIB_KERNEL_CTL
115 SUBDIRS += kernel-ctl
118 if BUILD_LIB_SESSIOND_COMM
119 SUBDIRS += sessiond-comm
126 if BUILD_LIB_FD_TRACKER
127 SUBDIRS += fd-tracker
130 if BUILD_LIB_KERNEL_CONSUMER
131 SUBDIRS += kernel-consumer
134 if BUILD_LIB_UST_CONSUMER
135 SUBDIRS += ust-consumer
138 if BUILD_LIB_TESTPOINT
150 if BUILD_LIB_CONSUMER
168 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
169 for script in $(EXTRA_DIST); do \
170 cp -f $(srcdir)/$$script $(builddir); \
175 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
176 for script in $(EXTRA_DIST); do \
177 rm -f $(builddir)/$$script; \