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 = \
33 actions/rotate-session.c \
34 actions/snapshot-session.c \
35 actions/start-session.c \
36 actions/stop-session.c \
38 buffer-view.h buffer-view.c \
43 daemonize.c daemonize.h \
45 dynamic-array.c dynamic-array.h \
46 dynamic-buffer.c dynamic-buffer.h \
52 fs-handle.c fs-handle.h fs-handle-internal.h \
55 mi-lttng.c mi-lttng.h \
59 readwrite.c readwrite.h \
61 session-consumed-size.c \
62 session-descriptor.c \
64 snapshot.c snapshot.h \
65 spawn-viewer.c spawn-viewer.h \
67 trace-chunk.c trace-chunk.h \
68 trace-chunk-registry.h \
79 libcommon_la_SOURCES += \
80 lttng-elf.c lttng-elf.h
83 libcommon_la_LIBADD = \
84 $(top_builddir)/src/common/config/libconfig.la \
85 $(top_builddir)/src/common/compat/libcompat.la \
86 $(top_builddir)/src/common/hashtable/libhashtable.la \
87 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
97 if BUILD_LIB_HASHTABLE
101 if BUILD_LIB_KERNEL_CTL
102 SUBDIRS += kernel-ctl
105 if BUILD_LIB_SESSIOND_COMM
106 SUBDIRS += sessiond-comm
113 if BUILD_LIB_FD_TRACKER
114 SUBDIRS += fd-tracker
117 if BUILD_LIB_KERNEL_CONSUMER
118 SUBDIRS += kernel-consumer
121 if BUILD_LIB_UST_CONSUMER
122 SUBDIRS += ust-consumer
125 if BUILD_LIB_TESTPOINT
137 if BUILD_LIB_CONSUMER
155 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
156 for script in $(EXTRA_DIST); do \
157 cp -f $(srcdir)/$$script $(builddir); \
162 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
163 for script in $(EXTRA_DIST); do \
164 rm -f $(builddir)/$$script; \