liblttng-ctl: use lttng_payload for serialize/create_from_buffer
[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 = test_notification_ust test_notification_kernel test_notification_multi_app base_client.c notification.c consumer_testpoints.c
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
23 libpause_consumer_la_LIBADD = \
24 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
25 $(top_builddir)/src/common/libcommon.la \
26 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
27 $(DL_LIBS)
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
37 rotation_SOURCES = rotation.c
38 rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
39
40 noinst_SCRIPTS = test_notification_ust test_notification_kernel test_notification_multi_app test_rotation
41 EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app test_rotation
42
43
44 all-local:
45 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
46 for script in $(EXTRA_DIST); do \
47 cp -f $(srcdir)/$$script $(builddir); \
48 done; \
49 fi
50
51 clean-local:
52 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
53 for script in $(EXTRA_DIST); do \
54 rm -f $(builddir)/$$script; \
55 done; \
56 fi
57 endif
This page took 0.032748 seconds and 6 git commands to generate.