1 # SPDX-License-Identifier: GPL-2.0-only
3 AM_CPPFLAGS +=-DINSTALL_BIN_PATH=\""$(lttnglibexecdir)"\" \
4 -DINSTALL_LIB_PATH=\""$(libdir)"\"
7 AM_CPPFLAGS += -I$(top_builddir)/doc/man
10 bin_PROGRAMS = lttng-sessiond
12 lttng_sessiond_SOURCES = utils.c utils.h \
13 trace-kernel.c trace-kernel.h \
15 ust-app.h trace-ust.h notify-apps.h \
16 lttng-ust-ctl.h lttng-ust-abi.h lttng-ust-error.h \
17 ust-ctl-internal.h ust-abi-internal.h ust-error-internal.h \
19 condition-internal.c condition-internal.h \
24 consumer.c consumer.h \
26 modprobe.c modprobe.h kern-modules.h \
27 fd-limit.c fd-limit.h \
28 kernel-consumer.c kernel-consumer.h \
32 buffer-registry.c buffer-registry.h \
33 testpoint.h ht-cleanup.c ht-cleanup.h \
34 snapshot.c snapshot.h \
37 lttng-syscall.h lttng-syscall.c \
38 notification-thread.h notification-thread.c \
39 notification-thread-internal.h \
40 notification-thread-commands.h notification-thread-commands.c \
41 notification-thread-events.h notification-thread-events.c \
42 sessiond-config.h sessiond-config.c \
44 rotation-thread.h rotation-thread.c \
52 dispatch.c dispatch.h \
53 register.c register.h \
54 manage-apps.c manage-apps.h \
55 manage-kernel.c manage-kernel.h \
56 manage-consumer.c manage-consumer.h \
59 action-executor.c action-executor.h
61 if HAVE_LIBLTTNG_UST_CTL
62 lttng_sessiond_SOURCES += trace-ust.c ust-registry.c ust-app.c \
63 ust-consumer.c ust-consumer.h notify-apps.c \
64 ust-metadata.c ust-clock.h agent-thread.c agent-thread.h \
65 ust-field-utils.h ust-field-utils.c
68 # Add main.c at the end for compile order
69 lttng_sessiond_SOURCES += lttng-sessiond.h main.c
71 # link on liblttngctl for check if sessiond is already alive.
72 lttng_sessiond_LDADD = -lurcu-common $(URCU_LIBS) $(KMOD_LIBS) \
73 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
74 $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
75 $(top_builddir)/src/common/kernel-ctl/libkernel-ctl.la \
76 $(top_builddir)/src/common/hashtable/libhashtable.la \
77 $(top_builddir)/src/common/libcommon.la \
78 $(top_builddir)/src/common/compat/libcompat.la \
79 $(top_builddir)/src/common/relayd/librelayd.la \
80 $(top_builddir)/src/common/testpoint/libtestpoint.la \
81 $(top_builddir)/src/common/health/libhealth.la \
82 $(top_builddir)/src/common/config/libconfig.la \
83 $(top_builddir)/src/common/string-utils/libstring-utils.la
86 if HAVE_LIBLTTNG_UST_CTL
87 lttng_sessiond_LDADD += $(UST_CTL_LIBS)