1 SUBDIRS = streaming filtering health
3 AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests -g -Wall
4 AM_LDFLAGS = -lurcu -lurcu-cds
8 noinst_PROGRAMS = test_sessions test_kernel_data_trace
11 SESSIONS=$(top_srcdir)/src/bin/lttng-sessiond/session.c \
12 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
13 $(top_srcdir)/src/common/uri.c \
14 $(top_srcdir)/src/common/utils.c \
15 $(top_srcdir)/src/common/error.c
16 KERN_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-kernel.c \
17 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
18 $(top_srcdir)/src/common/uri.c \
19 $(top_srcdir)/src/common/utils.c
20 COMMON=$(top_builddir)/src/common/libcommon.la
21 HASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
22 SESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
24 # Tracing sessions unit tests
25 test_sessions_SOURCES = test_sessions.c $(UTILS) $(SESSIONS)
26 test_sessions_LDADD = $(COMMON) $(HASHTABLE) $(SESSIOND_COMM)
28 # Kernel trace data unit tests
29 test_kernel_data_trace_SOURCES = test_kernel_data_trace.c $(UTILS) $(KERN_DATA_TRACE)
30 test_kernel_data_trace_LDADD = $(SESSIOND_COMM) $(HASHTABLE)
32 if HAVE_LIBLTTNG_UST_CTL
33 noinst_PROGRAMS += test_ust_data_trace
34 UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.c \
35 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
36 $(top_srcdir)/src/common/uri.c \
37 $(top_srcdir)/src/common/utils.c
38 # UST trace data unit tests
39 test_ust_data_trace_SOURCES = test_ust_data_trace.c $(UTILS) $(UST_DATA_TRACE)
40 test_ust_data_trace_LDADD = $(COMMON) $(HASHTABLE) $(SESSIOND_COMM)