1 # SPDX-License-Identifier: GPL-2.0-only
3 AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -I$(top_srcdir)/tests/utils/ -I$(srcdir)
7 LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
8 LIB_LTTNG_CTL = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la
10 noinst_PROGRAMS = base_client notification rotation
14 CLEANFILES = libpause_consumer.so libpause_consumer.so.debug
15 EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app base_client.c notification.c consumer_testpoints.c
19 # In order to test the health check feature, the helper library
20 # must be built as .so to be able to LD_PRELOAD it.
21 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
22 -rpath $(abs_builddir)
24 libpause_consumer_la_SOURCES = consumer_testpoints.c
25 libpause_consumer_la_LIBADD = \
26 $(top_builddir)/src/common/libcommon.la \
27 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
29 libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
30 noinst_LTLIBRARIES = libpause_consumer.la
32 base_client_SOURCES = base_client.c
33 base_client_LDADD = $(LIB_LTTNG_CTL)
35 notification_SOURCES = notification.c
36 notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
38 rotation_SOURCES = rotation.c
39 rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
41 noinst_SCRIPTS = test_notification_ust test_notification_kernel test_notification_multi_app test_rotation
42 EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app test_rotation
46 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
47 for script in $(EXTRA_DIST); do \
48 cp -f $(srcdir)/$$script $(builddir); \
53 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
54 for script in $(EXTRA_DIST); do \
55 rm -f $(builddir)/$$script; \