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/start-session.c \
34 actions/stop-session.c \
36 buffer-view.h buffer-view.c \
41 daemonize.c daemonize.h \
43 dynamic-array.c dynamic-array.h \
44 dynamic-buffer.c dynamic-buffer.h \
50 fs-handle.c fs-handle.h fs-handle-internal.h \
53 mi-lttng.c mi-lttng.h \
57 readwrite.c readwrite.h \
59 session-consumed-size.c \
60 session-descriptor.c \
62 snapshot.c snapshot.h \
63 spawn-viewer.c spawn-viewer.h \
65 trace-chunk.c trace-chunk.h \
66 trace-chunk-registry.h \
77 libcommon_la_SOURCES += \
78 lttng-elf.c lttng-elf.h
81 libcommon_la_LIBADD = \
82 $(top_builddir)/src/common/config/libconfig.la \
83 $(top_builddir)/src/common/compat/libcompat.la \
84 $(top_builddir)/src/common/hashtable/libhashtable.la \
85 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
95 if BUILD_LIB_HASHTABLE
99 if BUILD_LIB_KERNEL_CTL
100 SUBDIRS += kernel-ctl
103 if BUILD_LIB_SESSIOND_COMM
104 SUBDIRS += sessiond-comm
111 if BUILD_LIB_FD_TRACKER
112 SUBDIRS += fd-tracker
115 if BUILD_LIB_KERNEL_CONSUMER
116 SUBDIRS += kernel-consumer
119 if BUILD_LIB_UST_CONSUMER
120 SUBDIRS += ust-consumer
123 if BUILD_LIB_TESTPOINT
135 if BUILD_LIB_CONSUMER
153 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
154 for script in $(EXTRA_DIST); do \
155 cp -f $(srcdir)/$$script $(builddir); \
160 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
161 for script in $(EXTRA_DIST); do \
162 rm -f $(builddir)/$$script; \