1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
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 \
38 buffer-view.h buffer-view.c \
43 daemonize.c daemonize.h \
45 dynamic-array.c dynamic-array.h \
46 dynamic-buffer.c dynamic-buffer.h \
52 fd-handle.c fd-handle.h \
53 fs-handle.c fs-handle.h fs-handle-internal.h \
56 mi-lttng.c mi-lttng.h \
60 payload-view.c payload-view.h \
62 readwrite.c readwrite.h \
64 session-consumed-size.c \
65 session-descriptor.c \
67 snapshot.c snapshot.h \
68 spawn-viewer.c spawn-viewer.h \
70 trace-chunk.c trace-chunk.h \
71 trace-chunk-registry.h \
82 libcommon_la_SOURCES += \
83 lttng-elf.c lttng-elf.h
86 libcommon_la_LIBADD = \
87 $(top_builddir)/src/common/config/libconfig.la \
88 $(top_builddir)/src/common/compat/libcompat.la \
89 $(top_builddir)/src/common/hashtable/libhashtable.la \
90 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
100 if BUILD_LIB_HASHTABLE
104 if BUILD_LIB_KERNEL_CTL
105 SUBDIRS += kernel-ctl
108 if BUILD_LIB_SESSIOND_COMM
109 SUBDIRS += sessiond-comm
116 if BUILD_LIB_FD_TRACKER
117 SUBDIRS += fd-tracker
120 if BUILD_LIB_KERNEL_CONSUMER
121 SUBDIRS += kernel-consumer
124 if BUILD_LIB_UST_CONSUMER
125 SUBDIRS += ust-consumer
128 if BUILD_LIB_TESTPOINT
140 if BUILD_LIB_CONSUMER
158 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
159 for script in $(EXTRA_DIST); do \
160 cp -f $(srcdir)/$$script $(builddir); \
165 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
166 for script in $(EXTRA_DIST); do \
167 rm -f $(builddir)/$$script; \