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 \
53 event-rule/syscall.c \
55 event-rule/tracepoint.c \
57 fd-handle.c fd-handle.h \
58 fs-handle.c fs-handle.h fs-handle-internal.h \
62 mi-lttng.c mi-lttng.h \
66 payload-view.c payload-view.h \
68 readwrite.c readwrite.h \
70 session-consumed-size.c \
71 session-descriptor.c \
73 snapshot.c snapshot.h \
74 spawn-viewer.c spawn-viewer.h \
76 trace-chunk.c trace-chunk.h \
77 trace-chunk-registry.h \
89 libcommon_la_SOURCES += \
90 lttng-elf.c lttng-elf.h
93 libcommon_la_LIBADD = \
94 $(top_builddir)/src/common/config/libconfig.la \
95 $(top_builddir)/src/common/compat/libcompat.la \
96 $(top_builddir)/src/common/hashtable/libhashtable.la \
97 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
98 $(top_builddir)/src/common/filter/libfilter.la
108 if BUILD_LIB_HASHTABLE
112 if BUILD_LIB_KERNEL_CTL
113 SUBDIRS += kernel-ctl
116 if BUILD_LIB_SESSIOND_COMM
117 SUBDIRS += sessiond-comm
124 if BUILD_LIB_FD_TRACKER
125 SUBDIRS += fd-tracker
128 if BUILD_LIB_KERNEL_CONSUMER
129 SUBDIRS += kernel-consumer
132 if BUILD_LIB_UST_CONSUMER
133 SUBDIRS += ust-consumer
136 if BUILD_LIB_TESTPOINT
148 if BUILD_LIB_CONSUMER
166 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
167 for script in $(EXTRA_DIST); do \
168 cp -f $(srcdir)/$$script $(builddir); \
173 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
174 for script in $(EXTRA_DIST); do \
175 rm -f $(builddir)/$$script; \