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/snapshot-session.c \
34 actions/start-session.c \
35 actions/stop-session.c \
37 buffer-view.h buffer-view.c \
42 daemonize.c daemonize.h \
44 dynamic-array.c dynamic-array.h \
45 dynamic-buffer.c dynamic-buffer.h \
51 fs-handle.c fs-handle.h fs-handle-internal.h \
54 mi-lttng.c mi-lttng.h \
58 readwrite.c readwrite.h \
60 session-consumed-size.c \
61 session-descriptor.c \
63 snapshot.c snapshot.h \
64 spawn-viewer.c spawn-viewer.h \
66 trace-chunk.c trace-chunk.h \
67 trace-chunk-registry.h \
78 libcommon_la_SOURCES += \
79 lttng-elf.c lttng-elf.h
82 libcommon_la_LIBADD = \
83 $(top_builddir)/src/common/config/libconfig.la \
84 $(top_builddir)/src/common/compat/libcompat.la \
85 $(top_builddir)/src/common/hashtable/libhashtable.la \
86 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
96 if BUILD_LIB_HASHTABLE
100 if BUILD_LIB_KERNEL_CTL
101 SUBDIRS += kernel-ctl
104 if BUILD_LIB_SESSIOND_COMM
105 SUBDIRS += sessiond-comm
112 if BUILD_LIB_FD_TRACKER
113 SUBDIRS += fd-tracker
116 if BUILD_LIB_KERNEL_CONSUMER
117 SUBDIRS += kernel-consumer
120 if BUILD_LIB_UST_CONSUMER
121 SUBDIRS += ust-consumer
124 if BUILD_LIB_TESTPOINT
136 if BUILD_LIB_CONSUMER
154 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
155 for script in $(EXTRA_DIST); do \
156 cp -f $(srcdir)/$$script $(builddir); \
161 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
162 for script in $(EXTRA_DIST); do \
163 rm -f $(builddir)/$$script; \