Fix: Subdirectory handling for lttng and sessiond
[lttng-tools.git] / tests / tools / Makefile.am
CommitLineData
de9a8b41 1SUBDIRS = streaming
f4e40ab6 2
355f483d
DG
3AM_CFLAGS = -g -Wall -I../
4AM_LDFLAGS = -lurcu -lurcu-cds
5
6EXTRA_DIST = runall.sh
7
8acbe07d 8noinst_PROGRAMS = test_sessions test_kernel_data_trace
355f483d 9
4a18dcaf 10UTILS=../utils.h
07424f16
DG
11SESSIONS=$(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
00e2e675
DG
15KERN_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-kernel.c \
16 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
a4b92340
DG
17 $(top_srcdir)/src/common/uri.c \
18 $(top_srcdir)/src/common/utils.c
355f483d
DG
19COMMON=$(top_builddir)/src/common/libcommon.la
20HASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
00e2e675 21SESSIOND_COMM=$(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la
355f483d
DG
22
23# Tracing sessions unit tests
24test_sessions_SOURCES = test_sessions.c $(UTILS) $(SESSIONS)
07424f16 25test_sessions_LDADD = $(COMMON) $(HASHTABLE) $(SESSIOND_COMM)
355f483d
DG
26
27# Kernel trace data unit tests
28test_kernel_data_trace_SOURCES = test_kernel_data_trace.c $(UTILS) $(KERN_DATA_TRACE)
173af62f 29test_kernel_data_trace_LDADD = $(SESSIOND_COMM) $(HASHTABLE)
355f483d 30
8acbe07d
DG
31if HAVE_LIBLTTNG_UST_CTL
32noinst_PROGRAMS += test_ust_data_trace
00e2e675
DG
33UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.c \
34 $(top_srcdir)/src/bin/lttng-sessiond/consumer.c \
a4b92340
DG
35 $(top_srcdir)/src/common/uri.c \
36 $(top_srcdir)/src/common/utils.c
355f483d
DG
37# UST trace data unit tests
38test_ust_data_trace_SOURCES = test_ust_data_trace.c $(UTILS) $(UST_DATA_TRACE)
00e2e675 39test_ust_data_trace_LDADD = $(COMMON) $(HASHTABLE) $(SESSIOND_COMM)
8acbe07d 40endif
This page took 0.024802 seconds and 4 git commands to generate.