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 buffer-view.h buffer-view.c \
37 daemonize.c daemonize.h \
39 dynamic-array.c dynamic-array.h \
40 dynamic-buffer.c dynamic-buffer.h \
48 mi-lttng.c mi-lttng.h \
53 readwrite.c readwrite.h \
55 session-consumed-size.c \
56 session-descriptor.c \
59 trace-chunk.c trace-chunk.h \
60 trace-chunk-registry.h \
69 fs-handle.h fs-handle-internal.h fs-handle.c
72 libcommon_la_SOURCES += \
73 lttng-elf.c lttng-elf.h
76 libcommon_la_LIBADD = \
77 $(top_builddir)/src/common/config/libconfig.la \
78 $(top_builddir)/src/common/compat/libcompat.la \
79 $(top_builddir)/src/common/hashtable/libhashtable.la \
80 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
90 if BUILD_LIB_HASHTABLE
94 if BUILD_LIB_KERNEL_CTL
98 if BUILD_LIB_SESSIOND_COMM
99 SUBDIRS += sessiond-comm
106 if BUILD_LIB_FD_TRACKER
107 SUBDIRS += fd-tracker
110 if BUILD_LIB_KERNEL_CONSUMER
111 SUBDIRS += kernel-consumer
114 if BUILD_LIB_UST_CONSUMER
115 SUBDIRS += ust-consumer
118 if BUILD_LIB_TESTPOINT
130 if BUILD_LIB_CONSUMER
148 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
149 for script in $(EXTRA_DIST); do \
150 cp -f $(srcdir)/$$script $(builddir); \
155 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
156 for script in $(EXTRA_DIST); do \
157 rm -f $(builddir)/$$script; \