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 = \
32 actions/rotate-session.c \
33 actions/start-session.c \
34 actions/stop-session.c \
36 buffer-view.h buffer-view.c \
41 daemonize.c daemonize.h \
43 dynamic-array.c dynamic-array.h \
44 dynamic-buffer.c dynamic-buffer.h \
50 fs-handle.c fs-handle.h fs-handle-internal.h \
53 mi-lttng.c mi-lttng.h \
57 readwrite.c readwrite.h \
59 session-consumed-size.c \
60 session-descriptor.c \
62 spawn-viewer.c spawn-viewer.h \
64 trace-chunk.c trace-chunk.h \
65 trace-chunk-registry.h \
76 libcommon_la_SOURCES += \
77 lttng-elf.c lttng-elf.h
80 libcommon_la_LIBADD = \
81 $(top_builddir)/src/common/config/libconfig.la \
82 $(top_builddir)/src/common/compat/libcompat.la \
83 $(top_builddir)/src/common/hashtable/libhashtable.la \
84 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
94 if BUILD_LIB_HASHTABLE
98 if BUILD_LIB_KERNEL_CTL
102 if BUILD_LIB_SESSIOND_COMM
103 SUBDIRS += sessiond-comm
110 if BUILD_LIB_FD_TRACKER
111 SUBDIRS += fd-tracker
114 if BUILD_LIB_KERNEL_CONSUMER
115 SUBDIRS += kernel-consumer
118 if BUILD_LIB_UST_CONSUMER
119 SUBDIRS += ust-consumer
122 if BUILD_LIB_TESTPOINT
134 if BUILD_LIB_CONSUMER
152 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
153 for script in $(EXTRA_DIST); do \
154 cp -f $(srcdir)/$$script $(builddir); \
159 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
160 for script in $(EXTRA_DIST); do \
161 rm -f $(builddir)/$$script; \