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/start-session.c \
33 actions/stop-session.c \
35 buffer-view.h buffer-view.c \
40 daemonize.c daemonize.h \
42 dynamic-array.c dynamic-array.h \
43 dynamic-buffer.c dynamic-buffer.h \
49 fs-handle.c fs-handle.h fs-handle-internal.h \
52 mi-lttng.c mi-lttng.h \
56 readwrite.c readwrite.h \
58 session-consumed-size.c \
59 session-descriptor.c \
61 spawn-viewer.c spawn-viewer.h \
63 trace-chunk.c trace-chunk.h \
64 trace-chunk-registry.h \
75 libcommon_la_SOURCES += \
76 lttng-elf.c lttng-elf.h
79 libcommon_la_LIBADD = \
80 $(top_builddir)/src/common/config/libconfig.la \
81 $(top_builddir)/src/common/compat/libcompat.la \
82 $(top_builddir)/src/common/hashtable/libhashtable.la \
83 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
93 if BUILD_LIB_HASHTABLE
97 if BUILD_LIB_KERNEL_CTL
101 if BUILD_LIB_SESSIOND_COMM
102 SUBDIRS += sessiond-comm
109 if BUILD_LIB_FD_TRACKER
110 SUBDIRS += fd-tracker
113 if BUILD_LIB_KERNEL_CONSUMER
114 SUBDIRS += kernel-consumer
117 if BUILD_LIB_UST_CONSUMER
118 SUBDIRS += ust-consumer
121 if BUILD_LIB_TESTPOINT
133 if BUILD_LIB_CONSUMER
151 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
152 for script in $(EXTRA_DIST); do \
153 cp -f $(srcdir)/$$script $(builddir); \
158 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
159 for script in $(EXTRA_DIST); do \
160 rm -f $(builddir)/$$script; \