Tests: notification: Makefile.am formatting
[lttng-tools.git] / tests / regression / tools / notification / Makefile.am
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_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
27 else
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.
31 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
32 -rpath $(abs_builddir)
33
34 libpause_consumer_la_SOURCES = consumer_testpoints.c
35 libpause_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)
40 libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
41 noinst_LTLIBRARIES = libpause_consumer.la
42
43 base_client_SOURCES = base_client.c
44 base_client_LDADD = $(LIB_LTTNG_CTL)
45
46 notification_SOURCES = notification.c
47 notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
48
49 rotation_SOURCES = rotation.c
50 rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
51
52 noinst_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
65 EXTRA_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
78 all-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
85 clean-local:
86 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
87 for script in $(EXTRA_DIST); do \
88 rm -f $(builddir)/$$script; \
89 done; \
90 fi
91 endif
This page took 0.042095 seconds and 4 git commands to generate.