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
12 CLEANFILES = libpause_consumer.so libpause_consumer.so.debug
15 consumer_testpoints.c \
17 test_notification_kernel_buffer_usage \
18 test_notification_kernel_capture \
19 test_notification_kernel_error \
20 test_notification_kernel_instrumentation \
21 test_notification_kernel_syscall \
22 test_notification_kernel_userspace_probe \
23 test_notification_multi_app \
24 test_notification_ust_buffer_usage \
25 test_notification_ust_capture \
26 test_notification_ust_error \
27 test_notification_ust_event_rule_condition_exclusion \
28 util_event_generator.sh
31 # In order to test the health check feature, the helper library
32 # must be built as .so to be able to LD_PRELOAD it.
33 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
34 -rpath $(abs_builddir)
36 libpause_consumer_la_SOURCES = consumer_testpoints.c
37 libpause_consumer_la_LIBADD = \
38 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
39 $(top_builddir)/src/common/libcommon.la \
40 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
42 libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
43 noinst_LTLIBRARIES = libpause_consumer.la
45 base_client_SOURCES = base_client.c
46 base_client_LDADD = $(LIB_LTTNG_CTL)
48 notification_SOURCES = notification.c
49 notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
51 rotation_SOURCES = rotation.c
52 rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
55 test_notification_kernel_buffer_usage \
56 test_notification_kernel_error \
57 test_notification_kernel_instrumentation \
58 test_notification_kernel_syscall \
59 test_notification_kernel_userspace_probe \
60 test_notification_multi_app \
61 test_notification_ust_buffer_usage \
62 test_notification_ust_error \
63 test_notification_ust_event_rule_condition_exclusion \
65 util_event_generator.sh
68 test_notification_kernel_buffer_usage \
69 test_notification_kernel_capture \
70 test_notification_kernel_error \
71 test_notification_kernel_instrumentation \
72 test_notification_kernel_syscall \
73 test_notification_kernel_userspace_probe \
74 test_notification_multi_app \
75 test_notification_ust_buffer_usage \
76 test_notification_ust_capture \
77 test_notification_ust_error \
78 test_notification_ust_event_rule_condition_exclusion \
80 util_event_generator.sh
83 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
84 for script in $(EXTRA_DIST); do \
85 cp -f $(srcdir)/$$script $(builddir); \
90 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
91 for script in $(EXTRA_DIST); do \
92 rm -f $(builddir)/$$script; \