| 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | AM_CFLAGS += -I$(top_srcdir)/tests/utils |
| 4 | |
| 5 | LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la |
| 6 | LIB_LTTNG_CTL = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la |
| 7 | |
| 8 | noinst_PROGRAMS = base_client notification rotation |
| 9 | |
| 10 | if NO_SHARED |
| 11 | |
| 12 | CLEANFILES = libpause_consumer.so libpause_consumer.so.debug |
| 13 | EXTRA_DIST = \ |
| 14 | base_client.c \ |
| 15 | consumer_testpoints.c \ |
| 16 | notification.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 |
| 29 | else |
| 30 | |
| 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) |
| 35 | |
| 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 \ |
| 41 | $(DL_LIBS) |
| 42 | libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS) |
| 43 | noinst_LTLIBRARIES = libpause_consumer.la |
| 44 | |
| 45 | base_client_SOURCES = base_client.c |
| 46 | base_client_LDADD = $(LIB_LTTNG_CTL) |
| 47 | |
| 48 | notification_SOURCES = notification.c |
| 49 | notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm |
| 50 | |
| 51 | rotation_SOURCES = rotation.c |
| 52 | rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm |
| 53 | |
| 54 | noinst_SCRIPTS = \ |
| 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 \ |
| 64 | test_rotation \ |
| 65 | util_event_generator.sh |
| 66 | |
| 67 | EXTRA_DIST = \ |
| 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 \ |
| 79 | test_rotation \ |
| 80 | util_event_generator.sh |
| 81 | |
| 82 | all-local: |
| 83 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 84 | for script in $(EXTRA_DIST); do \ |
| 85 | cp -f $(srcdir)/$$script $(builddir); \ |
| 86 | done; \ |
| 87 | fi |
| 88 | |
| 89 | clean-local: |
| 90 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 91 | for script in $(EXTRA_DIST); do \ |
| 92 | rm -f $(builddir)/$$script; \ |
| 93 | done; \ |
| 94 | fi |
| 95 | endif |