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 \ | |
c9e313bc SM |
42 | rotation-thread.hpp rotation-thread.cpp \ |
43 | timer.cpp timer.hpp \ | |
7966af57 SM |
44 | globals.cpp \ |
45 | thread-utils.cpp \ | |
46 | process-utils.cpp \ | |
c9e313bc | 47 | thread.cpp thread.hpp \ |
7966af57 | 48 | health.cpp \ |
c9e313bc SM |
49 | client.cpp client.hpp \ |
50 | dispatch.cpp dispatch.hpp \ | |
51 | register.cpp register.hpp \ | |
52 | manage-apps.cpp manage-apps.hpp \ | |
53 | manage-kernel.cpp manage-kernel.hpp \ | |
54 | manage-consumer.cpp manage-consumer.hpp \ | |
55 | clear.cpp clear.hpp \ | |
56 | tracker.cpp tracker.hpp \ | |
57 | event-notifier-error-accounting.cpp event-notifier-error-accounting.hpp \ | |
58 | action-executor.cpp action-executor.hpp\ | |
0220be14 | 59 | trigger-error-query.cpp \ |
d9a970b7 | 60 | ctl-utils.hpp \ |
0220be14 JG |
61 | field.hpp field.cpp \ |
62 | clock-class.hpp clock-class.cpp \ | |
63 | event-class.hpp event-class.cpp \ | |
64 | stream-class.hpp stream-class.cpp \ | |
a0a4f314 JG |
65 | trace-class.hpp trace-class.cpp \ |
66 | consumer-destination-type.hpp \ | |
67 | consumer-output.hpp \ | |
68 | snapshot-output.hpp | |
fac6795d | 69 | |
74d0b642 | 70 | if HAVE_LIBLTTNG_UST_CTL |
7966af57 | 71 | liblttng_sessiond_common_la_SOURCES += trace-ust.cpp ust-registry.cpp ust-app.cpp \ |
c9e313bc | 72 | ust-consumer.cpp ust-consumer.hpp notify-apps.cpp \ |
d7bfb9b0 | 73 | ust-clock-class.hpp ust-clock-class.cpp \ |
b3647fb8 | 74 | agent-thread.cpp agent-thread.hpp \ |
16d64977 | 75 | ust-field-convert.cpp ust-field-quirks.hpp \ |
aeeb48c6 | 76 | ust-sigbus.cpp \ |
b0f2e8db | 77 | ust-registry-session.cpp ust-registry-session.hpp \ |
d7bfb9b0 JG |
78 | ust-registry-event.cpp ust-registry-event.hpp \ |
79 | ust-registry-channel.cpp ust-registry-channel.hpp \ | |
b0f2e8db JG |
80 | ust-registry-session-uid.cpp ust-registry-session-uid.hpp \ |
81 | ust-registry-session-pid.cpp ust-registry-session-pid.hpp \ | |
da9dd521 JG |
82 | tsdl-trace-class-visitor.cpp tsdl-trace-class-visitor.hpp \ |
83 | ctf2-trace-class-visitor.cpp ctf2-trace-class-visitor.hpp | |
3bd1e081 MD |
84 | endif |
85 | ||
7d8234d9 | 86 | # link on liblttngctl for check if sessiond is already alive. |
3efe5ec9 | 87 | liblttng_sessiond_common_la_LIBADD = $(URCU_LIBS) $(KMOD_LIBS) \ |
10a8a223 | 88 | $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ |
4ae04234 MJ |
89 | $(top_builddir)/src/common/libsessiond-comm.la \ |
90 | $(top_builddir)/src/common/libkernel-ctl.la \ | |
6a5596ac | 91 | $(top_builddir)/src/common/libcommon-gpl.la \ |
4ae04234 MJ |
92 | $(top_builddir)/src/common/libcompat.la \ |
93 | $(top_builddir)/src/common/librelayd.la \ | |
94 | $(top_builddir)/src/common/libtestpoint.la \ | |
95 | $(top_builddir)/src/common/libhealth.la \ | |
96 | $(top_builddir)/src/common/libconfig.la \ | |
97 | $(top_builddir)/src/common/libstring-utils.la | |
26296c48 | 98 | |
f158a754 | 99 | |
74d0b642 | 100 | if HAVE_LIBLTTNG_UST_CTL |
3efe5ec9 | 101 | liblttng_sessiond_common_la_LIBADD += $(UST_CTL_LIBS) |
f158a754 | 102 | endif |
3efe5ec9 | 103 | |
104 | bin_PROGRAMS = lttng-sessiond | |
105 | ||
c9e313bc | 106 | lttng_sessiond_SOURCES = lttng-sessiond.hpp main.cpp |
3efe5ec9 | 107 | |
108 | lttng_sessiond_LDFLAGS = -rdynamic | |
109 | ||
110 | lttng_sessiond_LDADD = liblttng-sessiond-common.la |