2 AM_CPPFLAGS = -I$(top_srcdir)/benchmark \
3 -DINSTALL_BIN_PATH=\""$(lttnglibexecdir)"\" \
4 -DINSTALL_LIB_PATH=\""$(libdir)"\"
6 AM_CFLAGS = -fno-strict-aliasing
8 bin_PROGRAMS = lttng-sessiond
10 lttng_sessiond_SOURCES = utils.c utils.h \
11 trace-kernel.c trace-kernel.h \
13 ust-ctl.h ust-app.h trace-ust.h \
20 modprobe.c modprobe.h kern-modules.h \
21 lttng-ust-ctl.h lttng-ust-abi.h \
24 if HAVE_LIBLTTNG_UST_CTL
25 lttng_sessiond_SOURCES += trace-ust.c ust-app.c ust-consumer.c ust-consumer.h
28 # Add main.c at the end for compile order
29 lttng_sessiond_SOURCES += lttng-sessiond.h main.c
31 # link on liblttngctl for check if sessiond is already alive.
32 lttng_sessiond_LDADD = -lrt -lurcu-common -lurcu \
33 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
34 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
35 $(top_builddir)/src/common/kernel-ctl/libkernel-ctl.la \
36 $(top_builddir)/src/common/hashtable/libhashtable.la \
37 $(top_builddir)/src/common/libcommon.la \
38 $(top_builddir)/src/common/compat/libcompat.la \
39 $(top_builddir)/benchmark/liblttng-benchmark.la
41 if HAVE_LIBLTTNG_UST_CTL
42 lttng_sessiond_LDADD += -llttng-ust-ctl