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 \
46 dynamic-array.c dynamic-array.h \
47 dynamic-buffer.c dynamic-buffer.h \
52 event-rule/event-rule.c \
54 event-rule/syscall.c \
56 event-rule/tracepoint.c \
58 fd-handle.c fd-handle.h \
59 fs-handle.c fs-handle.h fs-handle-internal.h \
63 mi-lttng.c mi-lttng.h \
67 payload-view.c payload-view.h \
69 readwrite.c readwrite.h \
71 session-consumed-size.c \
72 session-descriptor.c \
74 snapshot.c snapshot.h \
75 spawn-viewer.c spawn-viewer.h \
77 trace-chunk.c trace-chunk.h \
78 trace-chunk-registry.h \
90 libcommon_la_SOURCES += \
91 lttng-elf.c lttng-elf.h
94 libcommon_la_LIBADD = \
95 $(top_builddir)/src/common/config/libconfig.la \
96 $(top_builddir)/src/common/compat/libcompat.la \
97 $(top_builddir)/src/common/hashtable/libhashtable.la \
98 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
99 $(top_builddir)/src/common/filter/libfilter.la
109 if BUILD_LIB_HASHTABLE
113 if BUILD_LIB_KERNEL_CTL
114 SUBDIRS += kernel-ctl
117 if BUILD_LIB_SESSIOND_COMM
118 SUBDIRS += sessiond-comm
125 if BUILD_LIB_FD_TRACKER
126 SUBDIRS += fd-tracker
129 if BUILD_LIB_KERNEL_CONSUMER
130 SUBDIRS += kernel-consumer
133 if BUILD_LIB_UST_CONSUMER
134 SUBDIRS += ust-consumer
137 if BUILD_LIB_TESTPOINT
149 if BUILD_LIB_CONSUMER
167 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
168 for script in $(EXTRA_DIST); do \
169 cp -f $(srcdir)/$$script $(builddir); \
174 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
175 for script in $(EXTRA_DIST); do \
176 rm -f $(builddir)/$$script; \