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 \
34 buffer-view.h buffer-view.c \
39 daemonize.c daemonize.h \
41 dynamic-array.c dynamic-array.h \
42 dynamic-buffer.c dynamic-buffer.h \
48 fs-handle.c fs-handle.h fs-handle-internal.h \
51 mi-lttng.c mi-lttng.h \
55 readwrite.c readwrite.h \
57 session-consumed-size.c \
58 session-descriptor.c \
60 spawn-viewer.c spawn-viewer.h \
62 trace-chunk.c trace-chunk.h \
63 trace-chunk-registry.h \
74 libcommon_la_SOURCES += \
75 lttng-elf.c lttng-elf.h
78 libcommon_la_LIBADD = \
79 $(top_builddir)/src/common/config/libconfig.la \
80 $(top_builddir)/src/common/compat/libcompat.la \
81 $(top_builddir)/src/common/hashtable/libhashtable.la \
82 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
92 if BUILD_LIB_HASHTABLE
96 if BUILD_LIB_KERNEL_CTL
100 if BUILD_LIB_SESSIOND_COMM
101 SUBDIRS += sessiond-comm
108 if BUILD_LIB_FD_TRACKER
109 SUBDIRS += fd-tracker
112 if BUILD_LIB_KERNEL_CONSUMER
113 SUBDIRS += kernel-consumer
116 if BUILD_LIB_UST_CONSUMER
117 SUBDIRS += ust-consumer
120 if BUILD_LIB_TESTPOINT
132 if BUILD_LIB_CONSUMER
150 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
151 for script in $(EXTRA_DIST); do \
152 cp -f $(srcdir)/$$script $(builddir); \
157 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
158 for script in $(EXTRA_DIST); do \
159 rm -f $(builddir)/$$script; \