| 1 | AM_CPPFLAGS +=-DINSTALL_BIN_PATH=\""$(lttnglibexecdir)"\" \ |
| 2 | -DINSTALL_LIB_PATH=\""$(libdir)"\" |
| 3 | |
| 4 | if EMBED_HELP |
| 5 | AM_CPPFLAGS += -I$(top_builddir)/doc/man |
| 6 | endif |
| 7 | |
| 8 | bin_PROGRAMS = lttng-sessiond |
| 9 | |
| 10 | lttng_sessiond_SOURCES = utils.c utils.h \ |
| 11 | trace-kernel.c trace-kernel.h \ |
| 12 | kernel.c kernel.h \ |
| 13 | ust-app.h trace-ust.h notify-apps.h \ |
| 14 | lttng-ust-ctl.h lttng-ust-abi.h lttng-ust-error.h \ |
| 15 | ust-ctl-internal.h ust-abi-internal.h ust-error-internal.h \ |
| 16 | ust-registry.h \ |
| 17 | context.c context.h \ |
| 18 | channel.c channel.h \ |
| 19 | event.c event.h \ |
| 20 | shm.c shm.h \ |
| 21 | consumer.c consumer.h \ |
| 22 | session.c session.h \ |
| 23 | modprobe.c modprobe.h kern-modules.h \ |
| 24 | fd-limit.c fd-limit.h \ |
| 25 | kernel-consumer.c kernel-consumer.h \ |
| 26 | consumer.h \ |
| 27 | health-sessiond.h \ |
| 28 | cmd.c cmd.h \ |
| 29 | buffer-registry.c buffer-registry.h \ |
| 30 | testpoint.h ht-cleanup.c ht-cleanup.h \ |
| 31 | snapshot.c snapshot.h \ |
| 32 | agent.c agent.h \ |
| 33 | save.h save.c \ |
| 34 | lttng-syscall.h lttng-syscall.c \ |
| 35 | notification-thread.h notification-thread.c \ |
| 36 | notification-thread-internal.h \ |
| 37 | notification-thread-commands.h notification-thread-commands.c \ |
| 38 | notification-thread-events.h notification-thread-events.c \ |
| 39 | sessiond-config.h sessiond-config.c \ |
| 40 | rotate.h rotate.c \ |
| 41 | rotation-thread.h rotation-thread.c \ |
| 42 | timer.c timer.h \ |
| 43 | globals.c \ |
| 44 | thread-utils.c \ |
| 45 | process-utils.c \ |
| 46 | thread.c thread.h \ |
| 47 | health.c \ |
| 48 | client.c client.h \ |
| 49 | dispatch.c dispatch.h \ |
| 50 | register.c register.h \ |
| 51 | manage-apps.c manage-apps.h \ |
| 52 | manage-kernel.c manage-kernel.h \ |
| 53 | manage-consumer.c manage-consumer.h \ |
| 54 | clear.c clear.h \ |
| 55 | tracker.c tracker.h |
| 56 | |
| 57 | if HAVE_LIBLTTNG_UST_CTL |
| 58 | lttng_sessiond_SOURCES += trace-ust.c ust-registry.c ust-app.c \ |
| 59 | ust-consumer.c ust-consumer.h notify-apps.c \ |
| 60 | ust-metadata.c ust-clock.h agent-thread.c agent-thread.h \ |
| 61 | ust-field-utils.h ust-field-utils.c |
| 62 | endif |
| 63 | |
| 64 | # Add main.c at the end for compile order |
| 65 | lttng_sessiond_SOURCES += lttng-sessiond.h main.c |
| 66 | |
| 67 | # link on liblttngctl for check if sessiond is already alive. |
| 68 | lttng_sessiond_LDADD = -lurcu-common -lurcu $(KMOD_LIBS) \ |
| 69 | $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ |
| 70 | $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \ |
| 71 | $(top_builddir)/src/common/kernel-ctl/libkernel-ctl.la \ |
| 72 | $(top_builddir)/src/common/hashtable/libhashtable.la \ |
| 73 | $(top_builddir)/src/common/libcommon.la \ |
| 74 | $(top_builddir)/src/common/compat/libcompat.la \ |
| 75 | $(top_builddir)/src/common/relayd/librelayd.la \ |
| 76 | $(top_builddir)/src/common/testpoint/libtestpoint.la \ |
| 77 | $(top_builddir)/src/common/health/libhealth.la \ |
| 78 | $(top_builddir)/src/common/config/libconfig.la \ |
| 79 | $(top_builddir)/src/common/string-utils/libstring-utils.la |
| 80 | |
| 81 | |
| 82 | if HAVE_LIBLTTNG_UST_CTL |
| 83 | lttng_sessiond_LDADD += $(UST_CTL_LIBS) |
| 84 | endif |