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 noinst_LTLIBRARIES = liblttng-sessiond-common.la
12 liblttng_sessiond_common_la_SOURCES = utils.cpp utils.hpp \
13 trace-kernel.cpp trace-kernel.hpp \
14 kernel.cpp kernel.hpp \
15 ust-app.hpp ust-sigbus.hpp trace-ust.hpp notify-apps.hpp \
16 lttng-ust-ctl.hpp lttng-ust-abi.hpp lttng-ust-error.hpp \
17 ust-ctl-internal.hpp ust-abi-internal.hpp ust-error-internal.hpp \
19 condition-internal.cpp condition-internal.hpp \
20 context.cpp context.hpp \
21 channel.cpp channel.hpp \
23 consumer.cpp consumer.hpp \
24 session.cpp session.hpp \
25 modprobe.cpp modprobe.hpp kern-modules.hpp \
26 fd-limit.cpp fd-limit.hpp \
27 kernel-consumer.cpp kernel-consumer.hpp \
31 buffer-registry.cpp buffer-registry.hpp \
33 snapshot.cpp snapshot.hpp \
36 lttng-syscall.hpp lttng-syscall.cpp \
37 notification-thread.hpp notification-thread.cpp \
38 notification-thread-internal.hpp \
39 notification-thread-commands.hpp notification-thread-commands.cpp \
40 notification-thread-events.hpp notification-thread-events.cpp \
41 sessiond-config.hpp sessiond-config.cpp \
42 rotate.hpp rotate.cpp \
43 rotation-thread.hpp rotation-thread.cpp \
48 thread.cpp thread.hpp \
50 client.cpp client.hpp \
51 dispatch.cpp dispatch.hpp \
52 register.cpp register.hpp \
53 manage-apps.cpp manage-apps.hpp \
54 manage-kernel.cpp manage-kernel.hpp \
55 manage-consumer.cpp manage-consumer.hpp \
57 tracker.cpp tracker.hpp \
58 event-notifier-error-accounting.cpp event-notifier-error-accounting.hpp \
59 action-executor.cpp action-executor.hpp\
60 trigger-error-query.cpp \
62 clock-class.hpp clock-class.cpp \
63 event-class.hpp event-class.cpp \
64 stream-class.hpp stream-class.cpp \
65 trace-class.hpp trace-class.cpp
67 if HAVE_LIBLTTNG_UST_CTL
68 liblttng_sessiond_common_la_SOURCES += trace-ust.cpp ust-registry.cpp ust-app.cpp \
69 ust-consumer.cpp ust-consumer.hpp notify-apps.cpp \
70 ust-clock-class.hpp ust-clock-class.cpp \
71 agent-thread.cpp agent-thread.hpp \
72 ust-field-convert.cpp ust-field-convert.hpp \
74 ust-registry-session.cpp ust-registry-session.hpp \
75 ust-registry-event.cpp ust-registry-event.hpp \
76 ust-registry-channel.cpp ust-registry-channel.hpp \
77 ust-registry-session-uid.cpp ust-registry-session-uid.hpp \
78 ust-registry-session-pid.cpp ust-registry-session-pid.hpp \
79 tsdl-trace-class-visitor.cpp tsdl-trace-class-visitor.hpp \
80 ctf2-trace-class-visitor.cpp ctf2-trace-class-visitor.hpp
83 # link on liblttngctl for check if sessiond is already alive.
84 liblttng_sessiond_common_la_LIBADD = $(URCU_LIBS) $(KMOD_LIBS) \
85 $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
86 $(top_builddir)/src/common/libsessiond-comm.la \
87 $(top_builddir)/src/common/libkernel-ctl.la \
88 $(top_builddir)/src/common/libcommon-gpl.la \
89 $(top_builddir)/src/common/libcompat.la \
90 $(top_builddir)/src/common/librelayd.la \
91 $(top_builddir)/src/common/libtestpoint.la \
92 $(top_builddir)/src/common/libhealth.la \
93 $(top_builddir)/src/common/libconfig.la \
94 $(top_builddir)/src/common/libstring-utils.la
97 if HAVE_LIBLTTNG_UST_CTL
98 liblttng_sessiond_common_la_LIBADD += $(UST_CTL_LIBS)
101 bin_PROGRAMS = lttng-sessiond
103 lttng_sessiond_SOURCES = lttng-sessiond.hpp main.cpp
105 lttng_sessiond_LDFLAGS = -rdynamic
107 lttng_sessiond_LDADD = liblttng-sessiond-common.la