1 # SPDX-License-Identifier: GPL-2.0-only
3 AM_CFLAGS += -I$(top_srcdir)/tests/utils
5 LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
6 LIB_LTTNG_CTL = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la
8 noinst_PROGRAMS = base_client notification rotation default_pipe_size_getter
12 CLEANFILES = libpause_consumer.so libpause_consumer.so.debug libpause_sessiond.so libpause_sessiond.so.debug
15 consumer_testpoints.c \
16 sessiond_testpoints.c \
18 test_notification_kernel_buffer_usage \
19 test_notification_kernel_capture \
20 test_notification_kernel_error \
21 test_notification_kernel_instrumentation \
22 test_notification_kernel_syscall \
23 test_notification_kernel_userspace_probe \
24 test_notification_multi_app \
25 test_notification_notifier_discarded_count \
26 test_notification_ust_buffer_usage \
27 test_notification_ust_capture \
28 test_notification_ust_error \
29 test_notification_ust_event_rule_condition_exclusion \
30 util_event_generator.sh
33 # In order to test the health check feature, the helper library
34 # must be built as .so to be able to LD_PRELOAD it.
35 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
36 -rpath $(abs_builddir)
38 libpause_consumer_la_SOURCES = consumer_testpoints.c
39 libpause_consumer_la_LIBADD = \
40 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
41 $(top_builddir)/src/common/libcommon.la \
42 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
44 libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
46 libpause_sessiond_la_SOURCES = sessiond_testpoints.c
47 libpause_sessiond_la_LIBADD = \
48 $(top_builddir)/src/common/libcommon.la \
49 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
51 libpause_sessiond_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
52 noinst_LTLIBRARIES = libpause_sessiond.la libpause_consumer.la
54 base_client_SOURCES = base_client.c
55 base_client_LDADD = $(LIB_LTTNG_CTL)
57 notification_SOURCES = notification.c
58 notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
60 rotation_SOURCES = rotation.c
61 rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
63 default_pipe_size_getter_SOURCES = default_pipe_size_getter.c
64 default_pipe_size_getter_LDADD = $(top_builddir)/src/common/libcommon.la
67 test_notification_kernel_buffer_usage \
68 test_notification_kernel_error \
69 test_notification_kernel_instrumentation \
70 test_notification_kernel_syscall \
71 test_notification_kernel_userspace_probe \
72 test_notification_multi_app \
73 test_notification_notifier_discarded_count \
74 test_notification_ust_buffer_usage \
75 test_notification_ust_error \
76 test_notification_ust_event_rule_condition_exclusion \
78 util_event_generator.sh
81 test_notification_kernel_buffer_usage \
82 test_notification_kernel_capture \
83 test_notification_kernel_error \
84 test_notification_kernel_instrumentation \
85 test_notification_kernel_syscall \
86 test_notification_kernel_userspace_probe \
87 test_notification_multi_app \
88 test_notification_notifier_discarded_count \
89 test_notification_ust_buffer_usage \
90 test_notification_ust_capture \
91 test_notification_ust_error \
92 test_notification_ust_event_rule_condition_exclusion \
94 util_event_generator.sh
97 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
98 for script in $(EXTRA_DIST); do \
99 cp -f $(srcdir)/$$script $(builddir); \
104 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
105 for script in $(EXTRA_DIST); do \
106 rm -f $(builddir)/$$script; \