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 \
56 fd-handle.c fd-handle.h \
57 fs-handle.c fs-handle.h fs-handle-internal.h \
61 mi-lttng.c mi-lttng.h \
65 payload-view.c payload-view.h \
67 readwrite.c readwrite.h \
69 session-consumed-size.c \
70 session-descriptor.c \
72 snapshot.c snapshot.h \
73 spawn-viewer.c spawn-viewer.h \
75 trace-chunk.c trace-chunk.h \
76 trace-chunk-registry.h \
88 libcommon_la_SOURCES += \
89 lttng-elf.c lttng-elf.h
92 libcommon_la_LIBADD = \
93 $(top_builddir)/src/common/config/libconfig.la \
94 $(top_builddir)/src/common/compat/libcompat.la \
95 $(top_builddir)/src/common/hashtable/libhashtable.la \
96 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
97 $(top_builddir)/src/common/filter/libfilter.la
107 if BUILD_LIB_HASHTABLE
111 if BUILD_LIB_KERNEL_CTL
112 SUBDIRS += kernel-ctl
115 if BUILD_LIB_SESSIOND_COMM
116 SUBDIRS += sessiond-comm
123 if BUILD_LIB_FD_TRACKER
124 SUBDIRS += fd-tracker
127 if BUILD_LIB_KERNEL_CONSUMER
128 SUBDIRS += kernel-consumer
131 if BUILD_LIB_UST_CONSUMER
132 SUBDIRS += ust-consumer
135 if BUILD_LIB_TESTPOINT
147 if BUILD_LIB_CONSUMER
165 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
166 for script in $(EXTRA_DIST); do \
167 cp -f $(srcdir)/$$script $(builddir); \
172 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
173 for script in $(EXTRA_DIST); do \
174 rm -f $(builddir)/$$script; \