Commit | Line | Data |
---|---|---|
9d16b343 MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
343af227 | 3 | AM_CPPFLAGS += -I$(top_srcdir)/tests/utils/ -I$(srcdir) |
1b368955 | 4 | |
1b368955 JD |
5 | LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la |
6 | ||
7 | LIBCOMMON=$(top_builddir)/src/common/libcommon.la | |
8 | LIBSESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la | |
9 | LIBHASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la | |
10 | LIBRELAYD=$(top_builddir)/src/common/relayd/librelayd.la | |
11 | LIBHEALTH=$(top_builddir)/src/common/health/libhealth.la | |
658f12fa | 12 | LIBCOMPAT=$(top_builddir)/src/common/compat/libcompat.la |
1b368955 | 13 | |
a7333da7 | 14 | LIVE= $(top_builddir)/src/bin/lttng-sessiond/consumer.$(OBJEXT) \ |
658f12fa | 15 | $(top_builddir)/src/bin/lttng-sessiond/globals.$(OBJEXT) \ |
827b3af0 MJ |
16 | $(top_builddir)/src/bin/lttng-sessiond/utils.$(OBJEXT) \ |
17 | $(top_builddir)/src/bin/lttng-sessiond/snapshot.$(OBJEXT) | |
1b368955 JD |
18 | |
19 | noinst_PROGRAMS = live_test | |
90da811b | 20 | EXTRA_DIST = test_kernel test_lttng_kernel |
1b368955 JD |
21 | |
22 | if HAVE_LIBLTTNG_UST_CTL | |
90da811b | 23 | EXTRA_DIST += test_ust test_ust_tracefile_count test_lttng_ust |
1b368955 JD |
24 | endif |
25 | ||
26 | live_test_SOURCES = live_test.c | |
27 | live_test_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM) \ | |
658f12fa | 28 | $(LIBHASHTABLE) $(LIBHEALTH) $(DL_LIBS) $(LIBCOMPAT) -lrt |
ffaea1b3 | 29 | live_test_LDADD += $(LIVE) \ |
b1c46f87 | 30 | $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la |
1b368955 JD |
31 | |
32 | all-local: | |
33 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
34 | for script in $(EXTRA_DIST); do \ | |
35 | cp -f $(srcdir)/$$script $(builddir); \ | |
36 | done; \ | |
37 | fi | |
38 | ||
39 | clean-local: | |
40 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
41 | for script in $(EXTRA_DIST); do \ | |
42 | rm -f $(builddir)/$$script; \ | |
43 | done; \ | |
44 | fi |