Fix tests: link libpause_consumer on liblttng-ctl
[lttng-tools.git] / tests / regression / tools / notification / Makefile.am
CommitLineData
dc890bff
JR
1AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -I$(top_srcdir)/tests/utils/ -I$(srcdir)
2AM_LDFLAGS =
3
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
9
10if NO_SHARED
11
12CLEANFILES = libpause_consumer.so libpause_consumer.so.debug
60c78fd5 13EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app base_client.c notification.c consumer_testpoints.c
dc890bff
JR
14
15else
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.
19FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
20 -rpath $(abs_builddir)
21
22libpause_consumer_la_SOURCES = consumer_testpoints.c
d7f634f2
MJ
23libpause_consumer_la_LIBADD = \
24 $(top_builddir)/src/common/libcommon.la \
25 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
26 $(DL_LIBS)
dc890bff
JR
27libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
28noinst_LTLIBRARIES = libpause_consumer.la
29
30base_client_SOURCES = base_client.c
31base_client_LDADD = $(LIB_LTTNG_CTL)
32
33notification_SOURCES = notification.c
34notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
35
60c78fd5 36noinst_SCRIPTS = test_notification_ust test_notification_ust test_notification_multi_app
2f463164 37EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app
dc890bff
JR
38
39
40all-local:
41 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
42 for script in $(EXTRA_DIST); do \
43 cp -f $(srcdir)/$$script $(builddir); \
44 done; \
45 fi
46
47clean-local:
48 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
49 for script in $(EXTRA_DIST); do \
50 rm -f $(builddir)/$$script; \
51 done; \
52 fi
53endif
This page took 0.026206 seconds and 4 git commands to generate.