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 \
51 event-rule/event-rule.c \
54 fd-handle.c fd-handle.h \
55 fs-handle.c fs-handle.h fs-handle-internal.h \
59 mi-lttng.c mi-lttng.h \
63 payload-view.c payload-view.h \
65 readwrite.c readwrite.h \
67 session-consumed-size.c \
68 session-descriptor.c \
70 snapshot.c snapshot.h \
71 spawn-viewer.c spawn-viewer.h \
73 trace-chunk.c trace-chunk.h \
74 trace-chunk-registry.h \
86 libcommon_la_SOURCES += \
87 lttng-elf.c lttng-elf.h
90 libcommon_la_LIBADD = \
91 $(top_builddir)/src/common/config/libconfig.la \
92 $(top_builddir)/src/common/compat/libcompat.la \
93 $(top_builddir)/src/common/hashtable/libhashtable.la \
94 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
95 $(top_builddir)/src/common/filter/libfilter.la
105 if BUILD_LIB_HASHTABLE
109 if BUILD_LIB_KERNEL_CTL
110 SUBDIRS += kernel-ctl
113 if BUILD_LIB_SESSIOND_COMM
114 SUBDIRS += sessiond-comm
121 if BUILD_LIB_FD_TRACKER
122 SUBDIRS += fd-tracker
125 if BUILD_LIB_KERNEL_CONSUMER
126 SUBDIRS += kernel-consumer
129 if BUILD_LIB_UST_CONSUMER
130 SUBDIRS += ust-consumer
133 if BUILD_LIB_TESTPOINT
145 if BUILD_LIB_CONSUMER
163 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
164 for script in $(EXTRA_DIST); do \
165 cp -f $(srcdir)/$$script $(builddir); \
170 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
171 for script in $(EXTRA_DIST); do \
172 rm -f $(builddir)/$$script; \