1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
5 SUBDIRS = string-utils filter
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 \
42 credentials.c credentials.h \
43 daemonize.c daemonize.h \
45 dynamic-array.c dynamic-array.h \
46 dynamic-buffer.c dynamic-buffer.h \
52 fd-handle.c fd-handle.h \
53 fs-handle.c fs-handle.h fs-handle-internal.h \
56 mi-lttng.c mi-lttng.h \
60 payload-view.c payload-view.h \
62 readwrite.c readwrite.h \
64 session-consumed-size.c \
65 session-descriptor.c \
67 snapshot.c snapshot.h \
68 spawn-viewer.c spawn-viewer.h \
70 trace-chunk.c trace-chunk.h \
71 trace-chunk-registry.h \
83 libcommon_la_SOURCES += \
84 lttng-elf.c lttng-elf.h
87 libcommon_la_LIBADD = \
88 $(top_builddir)/src/common/config/libconfig.la \
89 $(top_builddir)/src/common/compat/libcompat.la \
90 $(top_builddir)/src/common/hashtable/libhashtable.la \
91 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
92 $(top_builddir)/src/common/filter/libfilter.la
102 if BUILD_LIB_HASHTABLE
106 if BUILD_LIB_KERNEL_CTL
107 SUBDIRS += kernel-ctl
110 if BUILD_LIB_SESSIOND_COMM
111 SUBDIRS += sessiond-comm
118 if BUILD_LIB_FD_TRACKER
119 SUBDIRS += fd-tracker
122 if BUILD_LIB_KERNEL_CONSUMER
123 SUBDIRS += kernel-consumer
126 if BUILD_LIB_UST_CONSUMER
127 SUBDIRS += ust-consumer
130 if BUILD_LIB_TESTPOINT
142 if BUILD_LIB_CONSUMER
160 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
161 for script in $(EXTRA_DIST); do \
162 cp -f $(srcdir)/$$script $(builddir); \
167 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
168 for script in $(EXTRA_DIST); do \
169 rm -f $(builddir)/$$script; \