SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / tests / regression / tools / trigger / 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 SUBDIRS=utils start-stop
5
6 LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
7 LIB_LTTNG_CTL = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la
8
9 noinst_PROGRAMS = base_client trigger
10
11 if NO_SHARED
12
13 CLEANFILES = libpause_consumer.so libpause_consumer.so.debug
14 EXTRA_DIST = test_trigger_ust test_trigger_kernel base_client.c trigger.c consumer_testpoints.c
15
16 else
17
18 # In order to use testpoint, the helper library
19 # must be built as .so to be able to LD_PRELOAD it.
20 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
21 -rpath $(abs_builddir)
22
23 libpause_consumer_la_SOURCES = consumer_testpoints.c
24 libpause_consumer_la_LIBADD = \
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 trigger_SOURCES = trigger.c
35 trigger_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
36
37 noinst_SCRIPTS = test_trigger_ust test_trigger_kernel
38 EXTRA_DIST = test_trigger_ust test_trigger_kernel \
39 test_add_trigger_cli \
40 test_list_triggers_cli \
41 test_remove_trigger_cli
42
43 all-local:
44 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
45 for script in $(EXTRA_DIST); do \
46 cp -f $(srcdir)/$$script $(builddir); \
47 done; \
48 fi
49
50 clean-local:
51 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
52 for script in $(EXTRA_DIST); do \
53 rm -f $(builddir)/$$script; \
54 done; \
55 fi
56 endif
This page took 0.047586 seconds and 5 git commands to generate.