1 AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils/ -I$(srcdir)
4 if LTTNG_TOOLS_BUILD_WITH_LIBDL
7 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
11 LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
13 LIBCOMMON=$(top_builddir)/src/common/libcommon.la
14 LIBSESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
15 LIBHASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
19 if HAVE_LIBLTTNG_UST_CTL
20 noinst_PROGRAMS = test_uri test_session test_ust_data test_kernel_data
22 noinst_PROGRAMS = test_uri test_session test_kernel_data
26 test_uri_SOURCES = test_uri.c
27 test_uri_LDADD = $(LIBTAP) $(LIBCOMMON)
30 SESSIONS=$(top_srcdir)/src/bin/lttng-sessiond/session.c \
31 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
32 $(top_srcdir)/src/common/uri.c \
33 $(top_srcdir)/src/common/utils.c \
34 $(top_srcdir)/src/common/error.c
36 test_session_SOURCES = test_session.c $(SESSIONS)
37 test_session_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
39 # UST data structures unit test
40 if HAVE_LIBLTTNG_UST_CTL
41 UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.c \
42 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
43 $(top_srcdir)/src/common/uri.c \
44 $(top_srcdir)/src/common/utils.c
46 test_ust_data_SOURCES = test_ust_data.c $(UST_DATA_TRACE)
47 test_ust_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)
50 # Kernel data structures unit test
51 KERN_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-kernel.c \
52 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
53 $(top_srcdir)/src/common/uri.c \
54 $(top_srcdir)/src/common/utils.c
56 test_kernel_data_SOURCES = test_kernel_data.c $(KERN_DATA_TRACE)
57 test_kernel_data_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBSESSIOND_COMM) $(LIBHASHTABLE)