41adc69330c8329eee990a5832141ff3067d03da
[lttng-tools.git] / tests / regression / tools / notification / Makefile.am
1 AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -I$(top_srcdir)/tests/utils/ -I$(srcdir)
2 AM_LDFLAGS =
3
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
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 = $(top_builddir)/src/common/libcommon.la $(DL_LIBS)
24 libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
25 noinst_LTLIBRARIES = libpause_consumer.la
26
27 base_client_SOURCES = base_client.c
28 base_client_LDADD = $(LIB_LTTNG_CTL)
29
30 notification_SOURCES = notification.c
31 notification_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
32
33 noinst_SCRIPTS = test_notification_ust test_notification_ust test_notification_multi_app
34 EXTRA_DIST = test_notification_ust test_notification_kernel test_notification_multi_app
35
36
37 all-local:
38 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
39 for script in $(EXTRA_DIST); do \
40 cp -f $(srcdir)/$$script $(builddir); \
41 done; \
42 fi
43
44 clean-local:
45 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
46 for script in $(EXTRA_DIST); do \
47 rm -f $(builddir)/$$script; \
48 done; \
49 fi
50 endif
This page took 0.031266 seconds and 4 git commands to generate.