Commit | Line | Data |
---|---|---|
9d16b343 MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
729c1fec | 3 | AM_CPPFLAGS += -I$(top_srcdir)/tests/utils |
434f8068 JR |
4 | |
5 | LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la | |
6 | LIB_LTTNG_CTL = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la | |
7 | ||
38eb8a68 | 8 | noinst_PROGRAMS = base_client notification rotation default_pipe_size_getter |
434f8068 JR |
9 | |
10 | if NO_SHARED | |
11 | ||
38eb8a68 | 12 | CLEANFILES = libpause_consumer.so libpause_consumer.so.debug libpause_sessiond.so libpause_sessiond.so.debug |
4dd7917e JR |
13 | EXTRA_DIST = \ |
14 | base_client.c \ | |
97535efa SM |
15 | consumer_testpoints.cpp \ |
16 | sessiond_testpoints.cpp \ | |
729c1fec | 17 | notification.cpp \ |
4dd7917e | 18 | test_notification_kernel_buffer_usage \ |
26e2f47b | 19 | test_notification_kernel_capture \ |
4dd7917e JR |
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 \ | |
38eb8a68 | 25 | test_notification_notifier_discarded_count \ |
4dd7917e | 26 | test_notification_ust_buffer_usage \ |
26e2f47b | 27 | test_notification_ust_capture \ |
4dd7917e JR |
28 | test_notification_ust_error \ |
29 | test_notification_ust_event_rule_condition_exclusion \ | |
30 | util_event_generator.sh | |
434f8068 JR |
31 | else |
32 | ||
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) | |
37 | ||
97535efa | 38 | libpause_consumer_la_SOURCES = consumer_testpoints.cpp |
f667fbd7 | 39 | libpause_consumer_la_LIBADD = \ |
c0a66c84 | 40 | $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \ |
6a5596ac | 41 | $(top_builddir)/src/common/libcommon-gpl.la \ |
f667fbd7 MJ |
42 | $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ |
43 | $(DL_LIBS) | |
434f8068 | 44 | libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS) |
38eb8a68 | 45 | |
97535efa | 46 | libpause_sessiond_la_SOURCES = sessiond_testpoints.cpp |
38eb8a68 | 47 | libpause_sessiond_la_LIBADD = \ |
6a5596ac | 48 | $(top_builddir)/src/common/libcommon-gpl.la \ |
38eb8a68 FD |
49 | $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ |
50 | $(DL_LIBS) | |
51 | libpause_sessiond_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS) | |
52 | noinst_LTLIBRARIES = libpause_sessiond.la libpause_consumer.la | |
434f8068 JR |
53 | |
54 | base_client_SOURCES = base_client.c | |
55 | base_client_LDADD = $(LIB_LTTNG_CTL) | |
56 | ||
729c1fec | 57 | notification_SOURCES = notification.cpp |
a5c2d2a7 | 58 | # Tests the deprecated lttng_register_trigger() interface |
729c1fec | 59 | notification_CXXFLAGS = -Wno-deprecated-declarations $(AM_CXXFLAGS) |
434f8068 JR |
60 | notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm |
61 | ||
88a5c0a9 JG |
62 | rotation_SOURCES = rotation.c |
63 | rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm | |
64 | ||
a6bc4ca9 | 65 | default_pipe_size_getter_SOURCES = default_pipe_size_getter.cpp |
6a5596ac | 66 | default_pipe_size_getter_LDADD = $(top_builddir)/src/common/libcommon-gpl.la |
38eb8a68 | 67 | |
4dd7917e JR |
68 | noinst_SCRIPTS = \ |
69 | test_notification_kernel_buffer_usage \ | |
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 \ | |
38eb8a68 | 75 | test_notification_notifier_discarded_count \ |
4dd7917e JR |
76 | test_notification_ust_buffer_usage \ |
77 | test_notification_ust_error \ | |
78 | test_notification_ust_event_rule_condition_exclusion \ | |
79 | test_rotation \ | |
80 | util_event_generator.sh | |
81 | ||
82 | EXTRA_DIST = \ | |
83 | test_notification_kernel_buffer_usage \ | |
26e2f47b | 84 | test_notification_kernel_capture \ |
4dd7917e JR |
85 | test_notification_kernel_error \ |
86 | test_notification_kernel_instrumentation \ | |
87 | test_notification_kernel_syscall \ | |
88 | test_notification_kernel_userspace_probe \ | |
89 | test_notification_multi_app \ | |
38eb8a68 | 90 | test_notification_notifier_discarded_count \ |
4dd7917e | 91 | test_notification_ust_buffer_usage \ |
26e2f47b | 92 | test_notification_ust_capture \ |
4dd7917e JR |
93 | test_notification_ust_error \ |
94 | test_notification_ust_event_rule_condition_exclusion \ | |
95 | test_rotation \ | |
96 | util_event_generator.sh | |
434f8068 JR |
97 | |
98 | all-local: | |
99 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
100 | for script in $(EXTRA_DIST); do \ | |
101 | cp -f $(srcdir)/$$script $(builddir); \ | |
102 | done; \ | |
103 | fi | |
104 | ||
105 | clean-local: | |
106 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
107 | for script in $(EXTRA_DIST); do \ | |
108 | rm -f $(builddir)/$$script; \ | |
109 | done; \ | |
110 | fi | |
111 | endif |