1 AM_CPPFLAGS = -I$(top_srcdir)/include \
2 -DINSTALL_BIN_PATH=\""$(bindir)"\" \
3 -DINSTALL_LIB_PATH=\""$(libdir)"\"
5 AM_CFLAGS = -fno-strict-aliasing
7 bin_PROGRAMS = lttng-sessiond
10 COMPAT=compat/compat-epoll.c
12 COMPAT=compat/compat-poll.c
15 lttng_sessiond_SOURCES = utils.c utils.h \
16 hashtable.c hashtable.h \
17 compat/poll.h $(COMPAT) \
18 trace-kernel.c trace-kernel.h \
20 ust-ctl.h ust-app.h trace-ust.h \
27 ../hashtable/rculfhash.c \
28 ../hashtable/rculfhash.h \
29 ../hashtable/hash.c ../hashtable/hash.h
31 if HAVE_LIBLTTNG_UST_CTL
32 lttng_sessiond_SOURCES += trace-ust.c ust-app.c ust-consumer.c ust-consumer.h
35 # Add main.c at the end for compile order
36 lttng_sessiond_SOURCES += lttng-sessiond.h main.c
38 # link on liblttngctl for check if sessiond is already alive.
39 lttng_sessiond_LDADD = -lrt -lurcu-common -lurcu \
40 $(top_builddir)/liblttng-sessiond-comm/liblttng-sessiond-comm.la \
41 $(top_builddir)/libkernelctl/libkernelctl.la \
42 $(top_builddir)/liblttngctl/liblttngctl.la
44 if HAVE_LIBLTTNG_UST_CTL
45 lttng_sessiond_LDADD += -llttng-ust-ctl