| 1 | AM_CPPFLAGS = -I$(top_srcdir)/include \ |
| 2 | -DINSTALL_BIN_PATH=\""$(bindir)"\" \ |
| 3 | -DINSTALL_LIB_PATH=\""$(libdir)"\" |
| 4 | |
| 5 | AM_CFLAGS = -fno-strict-aliasing |
| 6 | |
| 7 | bin_PROGRAMS = lttng-sessiond |
| 8 | |
| 9 | if COMPAT_EPOLL |
| 10 | COMPAT=compat/compat-epoll.c |
| 11 | else |
| 12 | COMPAT=compat/compat-poll.c |
| 13 | endif |
| 14 | |
| 15 | lttng_sessiond_SOURCES = utils.c utils.h \ |
| 16 | compat/poll.h $(COMPAT) \ |
| 17 | trace-kernel.c trace-kernel.h \ |
| 18 | kernel.c kernel.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 | lttng-ust-ctl.h lttng-ust-abi.h |
| 27 | |
| 28 | if HAVE_LIBLTTNG_UST_CTL |
| 29 | lttng_sessiond_SOURCES += trace-ust.c ust-app.c ust-consumer.c ust-consumer.h |
| 30 | endif |
| 31 | |
| 32 | # Add main.c at the end for compile order |
| 33 | lttng_sessiond_SOURCES += lttng-sessiond.h main.c |
| 34 | |
| 35 | # link on liblttngctl for check if sessiond is already alive. |
| 36 | lttng_sessiond_LDADD = -lrt -lurcu-common -lurcu \ |
| 37 | $(top_builddir)/liblttng-sessiond-comm/liblttng-sessiond-comm.la \ |
| 38 | $(top_builddir)/libkernelctl/libkernelctl.la \ |
| 39 | $(top_builddir)/liblttngctl/liblttngctl.la \ |
| 40 | $(top_builddir)/common/libcommon.la \ |
| 41 | $(top_builddir)/liblttng-ht/liblttng-ht.la |
| 42 | |
| 43 | if HAVE_LIBLTTNG_UST_CTL |
| 44 | lttng_sessiond_LDADD += -llttng-ust-ctl |
| 45 | endif |