1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
10 # Make sure to always distribute all folders
11 # since SUBDIRS is decided at configure time.
29 noinst_LTLIBRARIES = libcommon.la
30 EXTRA_DIST = mi-lttng-4.0.xsd
32 libcommon_la_SOURCES = \
36 actions/rotate-session.c \
37 actions/snapshot-session.c \
38 actions/start-session.c \
39 actions/stop-session.c \
40 buffer-view.h buffer-view.c \
42 conditions/buffer-usage.c \
43 conditions/condition.c \
44 conditions/event-rule.c \
45 conditions/session-consumed-size.c \
46 conditions/session-rotation.c \
48 credentials.c credentials.h \
49 daemonize.c daemonize.h \
52 dynamic-array.c dynamic-array.h \
53 dynamic-buffer.c dynamic-buffer.h \
60 event-rule-kretprobe.c \
61 event-rule-syscall.c \
63 event-rule-tracepoint.c \
67 mi-lttng.c mi-lttng.h \
71 readwrite.c readwrite.h \
73 session-descriptor.c \
74 snapshot.c snapshot.h \
76 trace-chunk.c trace-chunk.h \
77 trace-chunk-registry.h \
86 fs-handle.h fs-handle-internal.h fs-handle.c
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; \