SoW-2019-0002: Dynamic Snapshot
[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
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 trigger
9
10 if NO_SHARED
11
12 CLEANFILES = libpause_consumer.so libpause_consumer.so.debug
13 EXTRA_DIST = test_trigger_ust test_trigger_kernel base_client.c trigger.c consumer_testpoints.c
14
15 else
16
17 # In order to use testpoint, 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 = \
24 $(top_builddir)/src/common/libcommon.la \
25 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
26 $(DL_LIBS)
27 libpause_consumer_la_LDFLAGS = $(FORCE_SHARED_LIB_OPTIONS)
28 noinst_LTLIBRARIES = libpause_consumer.la
29
30 base_client_SOURCES = base_client.c
31 base_client_LDADD = $(LIB_LTTNG_CTL)
32
33 trigger_SOURCES = trigger.c
34 trigger_LDADD = $(LIB_LTTNG_CTL) $(LIBTAP) -lm
35
36 noinst_SCRIPTS = test_trigger_ust test_trigger_kernel
37 EXTRA_DIST = test_trigger_ust test_trigger_kernel \
38 test_add_trigger_cli \
39 test_list_triggers_cli \
40 test_remove_trigger_cli
41
42 all-local:
43 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
44 for script in $(EXTRA_DIST); do \
45 cp -f $(srcdir)/$$script $(builddir); \
46 done; \
47 fi
48
49 clean-local:
50 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
51 for script in $(EXTRA_DIST); do \
52 rm -f $(builddir)/$$script; \
53 done; \
54 fi
55 endif
This page took 0.045115 seconds and 5 git commands to generate.