| 1 | AM_CPPFLAGS = -I$(top_srcdir)/include \ |
| 2 | -DINSTALL_BIN_PATH=\""$(bindir)"\" |
| 3 | |
| 4 | AM_CFLAGS = -fno-strict-aliasing |
| 5 | |
| 6 | bin_PROGRAMS = ltt-sessiond |
| 7 | |
| 8 | if COMPAT_EPOLL |
| 9 | COMPAT=compat/compat-epoll.c |
| 10 | else |
| 11 | COMPAT=compat/compat-poll.c |
| 12 | endif |
| 13 | |
| 14 | ltt_sessiond_SOURCES = utils.c utils.h \ |
| 15 | compat/poll.h $(COMPAT) \ |
| 16 | trace-kernel.c trace-kernel.h \ |
| 17 | kernel-ctl.c kernel-ctl.h \ |
| 18 | ust-ctl.h ust-app.h trace-ust.h \ |
| 19 | context.c context.h \ |
| 20 | channel.c channel.h \ |
| 21 | event.c event.h \ |
| 22 | futex.c futex.h \ |
| 23 | shm.c shm.h \ |
| 24 | session.c session.h \ |
| 25 | ltt-sessiond.h main.c \ |
| 26 | ../hashtable/rculfhash.c \ |
| 27 | ../hashtable/rculfhash.h |
| 28 | |
| 29 | if LTTNG_TOOLS_HAVE_UST |
| 30 | ltt_sessiond_SOURCES += \ |
| 31 | trace-ust.c \ |
| 32 | ust-app.c \ |
| 33 | ust-comm.c ust-comm.h \ |
| 34 | ust-ctl.c |
| 35 | endif |
| 36 | |
| 37 | # link on liblttngctl for check if sessiond is already alive. |
| 38 | ltt_sessiond_LDADD = -lrt \ |
| 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 LTTNG_TOOLS_HAVE_UST |
| 44 | ltt_sessiond_LDADD += -llttng-ust-comm |
| 45 | endif |