1 AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -I$(top_srcdir)/tests/utils/ -I$(srcdir)
5 LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
6 LIB_LTTNG_CTL = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la
8 noinst_PROGRAMS = base_client notification rotation
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
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)
22 libpause_consumer_la_SOURCES = consumer_testpoints.c
23 libpause_consumer_la_LIBADD = \
24 $(top_builddir)/src/common/libcommon.la \
25 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
27 libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
28 noinst_LTLIBRARIES = libpause_consumer.la
30 base_client_SOURCES = base_client.c
31 base_client_LDADD = $(LIB_LTTNG_CTL)
33 notification_SOURCES = notification.c
34 notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
36 rotation_SOURCES = rotation.c
37 rotation_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
39 noinst_SCRIPTS = test_notification_ust test_notification_ust test_notification_multi_app test_rotation
40 EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app test_rotation
44 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
45 for script in $(EXTRA_DIST); do \
46 cp -f $(srcdir)/$$script $(builddir); \
51 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
52 for script in $(EXTRA_DIST); do \
53 rm -f $(builddir)/$$script; \