Fix possible NULL UST session on start trace
[lttng-tools.git] / lttng-sessiond / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/include \
2 -DINSTALL_BIN_PATH=\""$(bindir)"\"
3
4 AM_CFLAGS = -fno-strict-aliasing
5
6 bin_PROGRAMS = lttng-sessiond
7
8 if COMPAT_EPOLL
9 COMPAT=compat/compat-epoll.c
10 else
11 COMPAT=compat/compat-poll.c
12 endif
13
14 lttng_sessiond_SOURCES = utils.c utils.h \
15 hashtable.c hashtable.h \
16 compat/poll.h $(COMPAT) \
17 trace-kernel.c trace-kernel.h \
18 kernel-ctl.c kernel-ctl.h \
19 ust-ctl.h ust-app.h trace-ust.h \
20 context.c context.h \
21 channel.c channel.h \
22 event.c event.h \
23 futex.c futex.h \
24 shm.c shm.h \
25 session.c session.h \
26 ../hashtable/rculfhash.c \
27 ../hashtable/rculfhash.h \
28 ../hashtable/hash.c ../hashtable/hash.h
29
30 if HAVE_LIBLTTNG_UST_CTL
31 lttng_sessiond_SOURCES += trace-ust.c ust-app.c ust-consumer.c ust-consumer.h
32 endif
33
34 # Add main.c at the end for compile order
35 lttng_sessiond_SOURCES += lttng-sessiond.h main.c
36
37 # link on liblttngctl for check if sessiond is already alive.
38 lttng_sessiond_LDADD = -lrt -lurcu-common -lurcu \
39 $(top_builddir)/liblttng-sessiond-comm/liblttng-sessiond-comm.la \
40 $(top_builddir)/libkernelctl/libkernelctl.la \
41 $(top_builddir)/liblttngctl/liblttngctl.la
42
43 if HAVE_LIBLTTNG_UST_CTL
44 lttng_sessiond_LDADD += -llttng-ust-comm -llttng-ust-ctl
45 endif
This page took 0.030029 seconds and 4 git commands to generate.