1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
10 # Make sure to always distribute all folders
11 # since SUBDIRS is decided at configure time.
31 noinst_LTLIBRARIES = libcommon.la
32 EXTRA_DIST = mi-lttng-4.0.xsd
34 libcommon_la_SOURCES = \
38 actions/rotate-session.c \
39 actions/snapshot-session.c \
40 actions/start-session.c \
41 actions/stop-session.c \
42 buffer-view.h buffer-view.c \
44 conditions/buffer-usage.c \
45 conditions/condition.c \
46 conditions/event-rule.c \
47 conditions/session-consumed-size.c \
48 conditions/session-rotation.c \
50 credentials.c credentials.h \
51 daemonize.c daemonize.h \
54 dynamic-array.c dynamic-array.h \
55 dynamic-buffer.c dynamic-buffer.h \
60 event-rule/event-rule.c \
62 event-rule/syscall.c \
64 event-rule/tracepoint.c \
66 fd-handle.c fd-handle.h \
67 fs-handle.c fs-handle.h fs-handle-internal.h \
71 mi-lttng.c mi-lttng.h \
75 payload-view.c payload-view.h \
77 readwrite.c readwrite.h \
79 session-descriptor.c \
80 snapshot.c snapshot.h \
81 spawn-viewer.c spawn-viewer.h \
83 trace-chunk.c trace-chunk.h \
84 trace-chunk-registry.h \
96 libcommon_la_SOURCES += \
97 lttng-elf.c lttng-elf.h
100 libcommon_la_LIBADD = \
101 $(top_builddir)/src/common/config/libconfig.la \
102 $(top_builddir)/src/common/compat/libcompat.la \
103 $(top_builddir)/src/common/hashtable/libhashtable.la \
104 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
105 $(top_builddir)/src/common/filter/libfilter.la
115 if BUILD_LIB_HASHTABLE
119 if BUILD_LIB_KERNEL_CTL
120 SUBDIRS += kernel-ctl
123 if BUILD_LIB_SESSIOND_COMM
124 SUBDIRS += sessiond-comm
131 if BUILD_LIB_FD_TRACKER
132 SUBDIRS += fd-tracker
135 if BUILD_LIB_KERNEL_CONSUMER
136 SUBDIRS += kernel-consumer
139 if BUILD_LIB_UST_CONSUMER
140 SUBDIRS += ust-consumer
143 if BUILD_LIB_TESTPOINT
155 if BUILD_LIB_CONSUMER
173 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
174 for script in $(EXTRA_DIST); do \
175 cp -f $(srcdir)/$$script $(builddir); \
180 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
181 for script in $(EXTRA_DIST); do \
182 rm -f $(builddir)/$$script; \