event-rule: userspace probe: force location on create
[lttng-tools.git] / tests / regression / tools / health / Makefile.am
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 AM_CPPFLAGS += -I. -I$(top_srcdir)/include
4
5 COPYSCRIPTS = test_thread_stall test_tp_fail \
6 test_health.sh test_thread_ok
7 dist_noinst_SCRIPTS = $(COPYSCRIPTS)
8
9 if NO_SHARED
10 # Do not build this test if shared libraries support was
11 # explicitly disabled.
12
13 EXTRA_DIST = health_stall.c health_fail.c \
14 health_check.c $(COPYSCRIPTS)
15
16 else
17 # In order to test the health check feature, the libhealth* libs
18 # must be built as .so to be able to LD_PRELOAD them.
19 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
20 -rpath $(abs_builddir)
21
22 # Health thread stall ld_preloaded test lib
23 libhealthstall_la_SOURCES=health_stall.c
24 libhealthstall_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
25 libhealthstall_la_LIBADD = $(DL_LIBS)
26
27 # Health thread fail ld_preloaded test lib
28 libhealthtpfail_la_SOURCES=health_fail.c
29 libhealthtpfail_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
30 libhealthtpfail_la_LIBADD = $(DL_LIBS)
31
32 noinst_PROGRAMS = health_check
33 noinst_LTLIBRARIES = libhealthstall.la libhealthtpfail.la
34
35 health_check_SOURCES = health_check.c $(UTILS)
36 health_check_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
37 $(top_builddir)/src/common/libcommon.la \
38 $(DL_LIBS)
39
40 EXTRA_DIST = $(COPYSCRIPTS)
41
42 endif
43
44 all-local:
45 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
46 for script in $(COPYSCRIPTS); do \
47 cp -f $(srcdir)/$$script $(builddir); \
48 done; \
49 fi
50
51 clean-local:
52 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
53 for script in $(COPYSCRIPTS); do \
54 rm -f $(builddir)/$$script; \
55 done; \
56 fi
This page took 0.031331 seconds and 4 git commands to generate.