Fix tests when lttng-ust is disabled
[lttng-tools.git] / tests / tools / Makefile.am
1 AM_CFLAGS = -g -Wall -I../
2 AM_LDFLAGS = -lurcu -lurcu-cds
3
4 EXTRA_DIST = runall.sh
5
6 noinst_PROGRAMS = test_sessions test_kernel_data_trace
7
8 UTILS=utils.h
9 SESSIONS=$(top_srcdir)/src/bin/lttng-sessiond/session.c
10 KERN_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-kernel.c
11 COMMON=$(top_builddir)/src/common/libcommon.la
12 HASHTABLE=$(top_builddir)/src/common/hashtable/libhashtable.la
13
14 # Tracing sessions unit tests
15 test_sessions_SOURCES = test_sessions.c $(UTILS) $(SESSIONS)
16 test_sessions_LDADD = $(COMMON) $(HASHTABLE)
17
18 # Kernel trace data unit tests
19 test_kernel_data_trace_SOURCES = test_kernel_data_trace.c $(UTILS) $(KERN_DATA_TRACE)
20
21 if HAVE_LIBLTTNG_UST_CTL
22 noinst_PROGRAMS += test_ust_data_trace
23 UST_DATA_TRACE=$(top_srcdir)/src/bin/lttng-sessiond/trace-ust.c
24 # UST trace data unit tests
25 test_ust_data_trace_SOURCES = test_ust_data_trace.c $(UTILS) $(UST_DATA_TRACE)
26 test_ust_data_trace_LDADD = $(COMMON) $(HASHTABLE)
27 endif
This page took 0.041426 seconds and 4 git commands to generate.