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 buffer-view.h buffer-view.c \
38 daemonize.c daemonize.h \
40 dynamic-array.c dynamic-array.h \
41 dynamic-buffer.c dynamic-buffer.h \
47 fs-handle.c fs-handle.h fs-handle-internal.h \
50 mi-lttng.c mi-lttng.h \
54 readwrite.c readwrite.h \
56 session-consumed-size.c \
57 session-descriptor.c \
59 spawn-viewer.c spawn-viewer.h \
61 trace-chunk.c trace-chunk.h \
62 trace-chunk-registry.h \
73 libcommon_la_SOURCES += \
74 lttng-elf.c lttng-elf.h
77 libcommon_la_LIBADD = \
78 $(top_builddir)/src/common/config/libconfig.la \
79 $(top_builddir)/src/common/compat/libcompat.la \
80 $(top_builddir)/src/common/hashtable/libhashtable.la \
81 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
91 if BUILD_LIB_HASHTABLE
95 if BUILD_LIB_KERNEL_CTL
99 if BUILD_LIB_SESSIOND_COMM
100 SUBDIRS += sessiond-comm
107 if BUILD_LIB_FD_TRACKER
108 SUBDIRS += fd-tracker
111 if BUILD_LIB_KERNEL_CONSUMER
112 SUBDIRS += kernel-consumer
115 if BUILD_LIB_UST_CONSUMER
116 SUBDIRS += ust-consumer
119 if BUILD_LIB_TESTPOINT
131 if BUILD_LIB_CONSUMER
149 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
150 for script in $(EXTRA_DIST); do \
151 cp -f $(srcdir)/$$script $(builddir); \
156 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
157 for script in $(EXTRA_DIST); do \
158 rm -f $(builddir)/$$script; \