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 payload-view.c payload-view.h \
61 readwrite.c readwrite.h \
63 session-consumed-size.c \
64 session-descriptor.c \
66 snapshot.c snapshot.h \
67 spawn-viewer.c spawn-viewer.h \
69 trace-chunk.c trace-chunk.h \
70 trace-chunk-registry.h \
81 libcommon_la_SOURCES += \
82 lttng-elf.c lttng-elf.h
85 libcommon_la_LIBADD = \
86 $(top_builddir)/src/common/config/libconfig.la \
87 $(top_builddir)/src/common/compat/libcompat.la \
88 $(top_builddir)/src/common/hashtable/libhashtable.la \
89 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
99 if BUILD_LIB_HASHTABLE
103 if BUILD_LIB_KERNEL_CTL
104 SUBDIRS += kernel-ctl
107 if BUILD_LIB_SESSIOND_COMM
108 SUBDIRS += sessiond-comm
115 if BUILD_LIB_FD_TRACKER
116 SUBDIRS += fd-tracker
119 if BUILD_LIB_KERNEL_CONSUMER
120 SUBDIRS += kernel-consumer
123 if BUILD_LIB_UST_CONSUMER
124 SUBDIRS += ust-consumer
127 if BUILD_LIB_TESTPOINT
139 if BUILD_LIB_CONSUMER
157 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
158 for script in $(EXTRA_DIST); do \
159 cp -f $(srcdir)/$$script $(builddir); \
164 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
165 for script in $(EXTRA_DIST); do \
166 rm -f $(builddir)/$$script; \