44e4490102a7273a66d44c3e1aafca06a48b1e3a
[lttng-tools.git] / tests / regression / tools / live / Makefile.am
1 AM_CPPFLAGS += -I$(top_srcdir)/tests/utils/ -I$(srcdir)
2
3 if LTTNG_TOOLS_BUILD_WITH_LIBDL
4 LIBS += -ldl
5 endif
6 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
7 LIBS += -lc
8 endif
9
10 LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
11
12 LIBCOMMON=$(top_builddir)/src/common/libcommon.la
13 LIBSESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
14 LIBHASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
15 LIBRELAYD=$(top_builddir)/src/common/relayd/librelayd.la
16 LIBHEALTH=$(top_builddir)/src/common/health/libhealth.la
17
18 LIVE=$(top_builddir)/src/bin/lttng-sessiond/session.$(OBJEXT) \
19 $(top_builddir)/src/bin/lttng-sessiond/consumer.$(OBJEXT) \
20 $(top_builddir)/src/bin/lttng-sessiond/utils.$(OBJEXT) \
21 $(top_builddir)/src/bin/lttng-sessiond/snapshot.$(OBJEXT)
22
23 noinst_PROGRAMS = live_test
24 EXTRA_DIST = test_kernel test_lttng_kernel
25
26 if HAVE_LIBLTTNG_UST_CTL
27 EXTRA_DIST += test_ust test_ust_tracefile_count test_lttng_ust
28 endif
29
30 live_test_SOURCES = live_test.c
31 live_test_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM) \
32 $(LIBHASHTABLE) $(LIBHEALTH) -lrt
33 live_test_LDADD += $(LIVE) \
34 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la
35
36 all-local:
37 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
38 for script in $(EXTRA_DIST); do \
39 cp -f $(srcdir)/$$script $(builddir); \
40 done; \
41 fi
42
43 clean-local:
44 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
45 for script in $(EXTRA_DIST); do \
46 rm -f $(builddir)/$$script; \
47 done; \
48 fi
This page took 0.044358 seconds and 4 git commands to generate.