Tests: notification: Makefile.am formatting
[lttng-tools.git] / tests / regression / tools / notification / Makefile.am
... / ...
CommitLineData
1# SPDX-License-Identifier: GPL-2.0-only
2
3AM_CFLAGS += -I$(top_srcdir)/tests/utils
4
5LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
6LIB_LTTNG_CTL = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la
7
8noinst_PROGRAMS = base_client notification rotation
9
10if NO_SHARED
11
12CLEANFILES = libpause_consumer.so libpause_consumer.so.debug
13EXTRA_DIST = \
14 base_client.c \
15 consumer_testpoints.c \
16 notification.c \
17 test_notification_kernel_buffer_usage \
18 test_notification_kernel_error \
19 test_notification_kernel_instrumentation \
20 test_notification_kernel_syscall \
21 test_notification_kernel_userspace_probe \
22 test_notification_multi_app \
23 test_notification_ust_buffer_usage \
24 test_notification_ust_error \
25 test_notification_ust_event_rule_condition_exclusion \
26 util_event_generator.sh
27else
28
29# In order to test the health check feature, the helper library
30# must be built as .so to be able to LD_PRELOAD it.
31FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
32 -rpath $(abs_builddir)
33
34libpause_consumer_la_SOURCES = consumer_testpoints.c
35libpause_consumer_la_LIBADD = \
36 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
37 $(top_builddir)/src/common/libcommon.la \
38 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
39 $(DL_LIBS)
40libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
41noinst_LTLIBRARIES = libpause_consumer.la
42
43base_client_SOURCES = base_client.c
44base_client_LDADD = $(LIB_LTTNG_CTL)
45
46notification_SOURCES = notification.c
47notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
48
49rotation_SOURCES = rotation.c
50rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
51
52noinst_SCRIPTS = \
53 test_notification_kernel_buffer_usage \
54 test_notification_kernel_error \
55 test_notification_kernel_instrumentation \
56 test_notification_kernel_syscall \
57 test_notification_kernel_userspace_probe \
58 test_notification_multi_app \
59 test_notification_ust_buffer_usage \
60 test_notification_ust_error \
61 test_notification_ust_event_rule_condition_exclusion \
62 test_rotation \
63 util_event_generator.sh
64
65EXTRA_DIST = \
66 test_notification_kernel_buffer_usage \
67 test_notification_kernel_error \
68 test_notification_kernel_instrumentation \
69 test_notification_kernel_syscall \
70 test_notification_kernel_userspace_probe \
71 test_notification_multi_app \
72 test_notification_ust_buffer_usage \
73 test_notification_ust_error \
74 test_notification_ust_event_rule_condition_exclusion \
75 test_rotation \
76 util_event_generator.sh
77
78all-local:
79 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
80 for script in $(EXTRA_DIST); do \
81 cp -f $(srcdir)/$$script $(builddir); \
82 done; \
83 fi
84
85clean-local:
86 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
87 for script in $(EXTRA_DIST); do \
88 rm -f $(builddir)/$$script; \
89 done; \
90 fi
91endif
This page took 0.022275 seconds and 4 git commands to generate.