Commit | Line | Data |
---|---|---|
9d16b343 MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
2868dcc9 | 3 | AM_CFLAGS += -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 | ||
88a5c0a9 | 8 | noinst_PROGRAMS = base_client notification rotation |
434f8068 JR |
9 | |
10 | if NO_SHARED | |
11 | ||
12 | CLEANFILES = libpause_consumer.so libpause_consumer.so.debug | |
45294d8a | 13 | EXTRA_DIST = test_notification_ust_error test_notification_ust_buffer_usage test_notification_ust_event_rule_condition_exclusion test_notification_kernel_error test_notification_kernel_buffer_usage test_notification_kernel_instrumentation test_notification_kernel_syscall test_notification_kernel_userspace_probe test_notification_multi_app base_client.c notification.c consumer_testpoints.c util_event_generator.sh |
434f8068 JR |
14 | |
15 | else | |
16 | ||
17 | # In order to test the health check feature, the helper library | |
18 | # must be built as .so to be able to LD_PRELOAD it. | |
19 | FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \ | |
20 | -rpath $(abs_builddir) | |
21 | ||
22 | libpause_consumer_la_SOURCES = consumer_testpoints.c | |
f667fbd7 | 23 | libpause_consumer_la_LIBADD = \ |
c0a66c84 | 24 | $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \ |
f667fbd7 MJ |
25 | $(top_builddir)/src/common/libcommon.la \ |
26 | $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ | |
27 | $(DL_LIBS) | |
434f8068 JR |
28 | libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS) |
29 | noinst_LTLIBRARIES = libpause_consumer.la | |
30 | ||
31 | base_client_SOURCES = base_client.c | |
32 | base_client_LDADD = $(LIB_LTTNG_CTL) | |
33 | ||
34 | notification_SOURCES = notification.c | |
35 | notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm | |
36 | ||
88a5c0a9 JG |
37 | rotation_SOURCES = rotation.c |
38 | rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm | |
39 | ||
45294d8a FD |
40 | noinst_SCRIPTS = test_notification_ust_error test_notification_ust_buffer_usage test_notification_ust_event_rule_condition_exclusion test_notification_kernel_error test_notification_kernel_buffer_usage test_notification_kernel_instrumentation test_notification_kernel_syscall test_notification_kernel_userspace_probe test_notification_multi_app test_rotation util_event_generator.sh |
41 | EXTRA_DIST = test_notification_ust_error test_notification_ust_buffer_usage test_notification_ust_event_rule_condition_exclusion test_notification_kernel_error test_notification_kernel_buffer_usage test_notification_kernel_instrumentation test_notification_kernel_syscall test_notification_kernel_userspace_probe test_notification_multi_app test_rotation util_event_generator.sh | |
434f8068 JR |
42 | |
43 | all-local: | |
44 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
45 | for script in $(EXTRA_DIST); do \ | |
46 | cp -f $(srcdir)/$$script $(builddir); \ | |
47 | done; \ | |
48 | fi | |
49 | ||
50 | clean-local: | |
51 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
52 | for script in $(EXTRA_DIST); do \ | |
53 | rm -f $(builddir)/$$script; \ | |
54 | done; \ | |
55 | fi | |
56 | endif |