1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
11 # Make sure to always distribute all folders
12 # since SUBDIRS is decided at configure time.
33 noinst_LTLIBRARIES = libcommon.la
34 EXTRA_DIST = mi-lttng-4.0.xsd
36 libcommon_la_SOURCES = \
40 actions/rotate-session.c \
41 actions/snapshot-session.c \
42 actions/start-session.c \
43 actions/stop-session.c \
44 buffer-view.h buffer-view.c \
46 conditions/buffer-usage.c \
47 conditions/condition.c \
48 conditions/event-rule.c \
49 conditions/session-consumed-size.c \
50 conditions/session-rotation.c \
52 credentials.c credentials.h \
53 daemonize.c daemonize.h \
56 dynamic-array.c dynamic-array.h \
57 dynamic-buffer.c dynamic-buffer.h \
62 event-expr-to-bytecode.c event-expr-to-bytecode.h \
63 event-rule/event-rule.c \
65 event-rule/syscall.c \
67 event-rule/tracepoint.c \
69 fd-handle.c fd-handle.h \
70 fs-handle.c fs-handle.h fs-handle-internal.h \
74 mi-lttng.c mi-lttng.h \
78 payload-view.c payload-view.h \
80 readwrite.c readwrite.h \
82 session-descriptor.c \
83 snapshot.c snapshot.h \
84 spawn-viewer.c spawn-viewer.h \
86 trace-chunk.c trace-chunk.h \
87 trace-chunk-registry.h \
99 libcommon_la_SOURCES += \
100 lttng-elf.c lttng-elf.h
103 libcommon_la_LIBADD = \
104 $(top_builddir)/src/common/bytecode/libbytecode.la \
105 $(top_builddir)/src/common/config/libconfig.la \
106 $(top_builddir)/src/common/compat/libcompat.la \
107 $(top_builddir)/src/common/hashtable/libhashtable.la \
108 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
109 $(top_builddir)/src/common/filter/libfilter.la \
110 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
120 if BUILD_LIB_HASHTABLE
124 if BUILD_LIB_KERNEL_CTL
125 SUBDIRS += kernel-ctl
128 if BUILD_LIB_SESSIOND_COMM
129 SUBDIRS += sessiond-comm
136 if BUILD_LIB_FD_TRACKER
137 SUBDIRS += fd-tracker
140 if BUILD_LIB_KERNEL_CONSUMER
141 SUBDIRS += kernel-consumer
144 if BUILD_LIB_UST_CONSUMER
145 SUBDIRS += ust-consumer
148 if BUILD_LIB_TESTPOINT
160 if BUILD_LIB_CONSUMER
178 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
179 for script in $(EXTRA_DIST); do \
180 cp -f $(srcdir)/$$script $(builddir); \
185 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
186 for script in $(EXTRA_DIST); do \
187 rm -f $(builddir)/$$script; \