Commit | Line | Data |
---|---|---|
ab5be9fa MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
343af227 MJ |
3 | AM_CPPFLAGS +=-DINSTALL_BIN_PATH=\""$(lttnglibexecdir)"\" \ |
4 | -DINSTALL_LIB_PATH=\""$(libdir)"\" | |
3f5fa9ed | 5 | |
4fc83d94 PP |
6 | if EMBED_HELP |
7 | AM_CPPFLAGS += -I$(top_builddir)/doc/man | |
8 | endif | |
9 | ||
3efe5ec9 | 10 | noinst_LTLIBRARIES = liblttng-sessiond-common.la |
fac6795d | 11 | |
c9e313bc SM |
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 \ | |
18 | ust-registry.hpp \ | |
19 | condition-internal.cpp condition-internal.hpp \ | |
20 | context.cpp context.hpp \ | |
21 | channel.cpp channel.hpp \ | |
22 | event.cpp event.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 \ | |
28 | consumer.hpp \ | |
29 | health-sessiond.hpp \ | |
30 | cmd.cpp cmd.hpp \ | |
31 | buffer-registry.cpp buffer-registry.hpp \ | |
32 | testpoint.hpp \ | |
33 | snapshot.cpp snapshot.hpp \ | |
34 | agent.cpp agent.hpp \ | |
35 | save.hpp save.cpp \ | |
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 \ | |
44 | timer.cpp timer.hpp \ | |
7966af57 SM |
45 | globals.cpp \ |
46 | thread-utils.cpp \ | |
47 | process-utils.cpp \ | |
c9e313bc | 48 | thread.cpp thread.hpp \ |
7966af57 | 49 | health.cpp \ |
c9e313bc SM |
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 \ | |
56 | clear.cpp clear.hpp \ | |
57 | tracker.cpp tracker.hpp \ | |
58 | event-notifier-error-accounting.cpp event-notifier-error-accounting.hpp \ | |
59 | action-executor.cpp action-executor.hpp\ | |
7966af57 | 60 | trigger-error-query.cpp |
fac6795d | 61 | |
74d0b642 | 62 | if HAVE_LIBLTTNG_UST_CTL |
7966af57 | 63 | liblttng_sessiond_common_la_SOURCES += trace-ust.cpp ust-registry.cpp ust-app.cpp \ |
c9e313bc SM |
64 | ust-consumer.cpp ust-consumer.hpp notify-apps.cpp \ |
65 | ust-metadata.cpp ust-clock.hpp agent-thread.cpp agent-thread.hpp \ | |
66 | ust-field-utils.hpp ust-field-utils.cpp \ | |
aeeb48c6 JG |
67 | ust-sigbus.cpp \ |
68 | ust-registry-session.cpp \ | |
69 | ust-registry-session-uid.cpp \ | |
70 | ust-registry-session-pid.cpp | |
71 | ||
3bd1e081 MD |
72 | endif |
73 | ||
7d8234d9 | 74 | # link on liblttngctl for check if sessiond is already alive. |
3efe5ec9 | 75 | liblttng_sessiond_common_la_LIBADD = $(URCU_LIBS) $(KMOD_LIBS) \ |
10a8a223 | 76 | $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ |
4ae04234 MJ |
77 | $(top_builddir)/src/common/libsessiond-comm.la \ |
78 | $(top_builddir)/src/common/libkernel-ctl.la \ | |
6a5596ac | 79 | $(top_builddir)/src/common/libcommon-gpl.la \ |
4ae04234 MJ |
80 | $(top_builddir)/src/common/libcompat.la \ |
81 | $(top_builddir)/src/common/librelayd.la \ | |
82 | $(top_builddir)/src/common/libtestpoint.la \ | |
83 | $(top_builddir)/src/common/libhealth.la \ | |
84 | $(top_builddir)/src/common/libconfig.la \ | |
85 | $(top_builddir)/src/common/libstring-utils.la | |
26296c48 | 86 | |
f158a754 | 87 | |
74d0b642 | 88 | if HAVE_LIBLTTNG_UST_CTL |
3efe5ec9 | 89 | liblttng_sessiond_common_la_LIBADD += $(UST_CTL_LIBS) |
f158a754 | 90 | endif |
3efe5ec9 | 91 | |
92 | bin_PROGRAMS = lttng-sessiond | |
93 | ||
c9e313bc | 94 | lttng_sessiond_SOURCES = lttng-sessiond.hpp main.cpp |
3efe5ec9 | 95 | |
96 | lttng_sessiond_LDFLAGS = -rdynamic | |
97 | ||
98 | lttng_sessiond_LDADD = liblttng-sessiond-common.la |