c22d5ee390ab1592583dfe1a93987300a21d81af
[lttng-tools.git] / tests / regression / tools / health / Makefile.am
1 AM_CFLAGS = -I. -O2 -g -I$(top_srcdir)/include
2 AM_LDFLAGS =
3
4 if LTTNG_TOOLS_BUILD_WITH_LIBDL
5 AM_LDFLAGS += -ldl
6 endif
7 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
8 AM_LDFLAGS += -lc
9 endif
10
11 if NO_SHARED
12 # Do not build this test if shared libraries support was
13 # explicitly disabled.
14 else
15 # In order to test the health check feature, the libhealth* libs
16 # must be built as .so to be able to LD_PRELOAD them.
17 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
18 -rpath $(abs_builddir)
19
20 # Health thread exit ld_preloaded test lib
21 libhealthexit_la_SOURCES=health_exit.c
22 libhealthexit_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
23
24 # Health thread stall ld_preloaded test lib
25 libhealthstall_la_SOURCES=health_stall.c
26 libhealthstall_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
27
28 # Health thread fail ld_preloaded test lib
29 libhealthtpfail_la_SOURCES=health_fail.c
30 libhealthtpfail_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
31
32 noinst_PROGRAMS = health_check
33 noinst_LTLIBRARIES = libhealthexit.la 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 endif
39
40 dist_noinst_SCRIPTS = test_thread_exit test_thread_stall test_tp_fail
41 EXTRA_DIST = test_thread_exit test_thread_stall test_tp_fail
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
This page took 0.030339 seconds and 4 git commands to generate.