1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
16 # Make sure to always distribute all folders
17 # since SUBDIRS is decided at configure time.
39 noinst_LTLIBRARIES = libcommon-gpl.la
40 EXTRA_DIST = mi-lttng-4.1.xsd
42 libcommon_gpl_la_SOURCES = \
47 actions/rotate-session.c \
48 actions/snapshot-session.c \
49 actions/start-session.c \
50 actions/stop-session.c \
51 actions/rate-policy.c \
52 buffer-view.h buffer-view.c \
54 conditions/buffer-usage.c \
55 conditions/condition.c \
56 conditions/event-rule-matches.c \
57 conditions/session-consumed-size.c \
58 conditions/session-rotation.c \
60 credentials.c credentials.h \
61 daemonize.c daemonize.h \
64 dynamic-array.c dynamic-array.h \
65 dynamic-buffer.c dynamic-buffer.h \
71 event-expr/event-expr.c \
73 event-rule/event-rule.c \
74 event-rule/kernel-kprobe.c \
75 event-rule/kernel-syscall.c \
76 event-rule/kernel-uprobe.c \
77 event-rule/kernel-tracepoint.c \
78 event-rule/user-tracepoint.c \
79 event-rule/log4j-logging.c \
80 event-rule/jul-logging.c \
81 event-rule/python-logging.c \
83 fd-handle.c fd-handle.h \
84 fs-handle.c fs-handle.h fs-handle-internal.h \
87 index-allocator.c index-allocator.h \
90 mi-lttng.c mi-lttng.h \
94 payload-view.c payload-view.h \
96 readwrite.c readwrite.h \
99 session-descriptor.c \
100 snapshot.c snapshot.h \
101 spawn-viewer.c spawn-viewer.h \
103 trace-chunk.c trace-chunk.h \
104 trace-chunk-registry.h \
112 tracker.c tracker.h \
116 libcommon_gpl_la_SOURCES += \
117 lttng-elf.c lttng-elf.h
120 libcommon_gpl_la_LIBADD = \
121 $(top_builddir)/src/common/bytecode/libbytecode.la \
122 $(top_builddir)/src/common/config/libconfig.la \
123 $(top_builddir)/src/common/compat/libcompat.la \
124 $(top_builddir)/src/common/hashtable/libhashtable.la \
125 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
126 $(top_builddir)/src/common/filter/libfilter.la \
127 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
133 if BUILD_LIB_KERNEL_CTL
134 SUBDIRS += kernel-ctl
137 if BUILD_LIB_SESSIOND_COMM
138 SUBDIRS += sessiond-comm
146 if BUILD_LIB_KERNEL_CONSUMER
147 SUBDIRS += kernel-consumer
150 if BUILD_LIB_UST_CONSUMER
151 SUBDIRS += ust-consumer
154 if BUILD_LIB_TESTPOINT
162 if BUILD_LIB_CONSUMER
179 noinst_PROGRAMS = filter-grammar-test
180 filter_grammar_test_SOURCES = filter-grammar-test.c
181 filter_grammar_test_LDADD = \
185 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
186 for script in $(EXTRA_DIST); do \
187 cp -f $(srcdir)/$$script $(builddir); \
192 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
193 for script in $(EXTRA_DIST); do \
194 rm -f $(builddir)/$$script; \