docs: Add supported versions and fix-backport policy
[lttng-tools.git] / src / common / Makefile.am
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 AUTOMAKE_OPTIONS = subdir-objects
4
5 SUBDIRS = \
6 argpar \
7 bytecode \
8 compat \
9 config \
10 fd-tracker \
11 string-utils \
12 filter \
13 hashtable
14
15 # Make sure to always distribute all folders
16 # since SUBDIRS is decided at configure time.
17 DIST_SUBDIRS = \
18 compat \
19 health \
20 hashtable \
21 kernel-ctl \
22 sessiond-comm \
23 relayd \
24 kernel-consumer \
25 ust-consumer \
26 testpoint \
27 index \
28 config \
29 consumer \
30 string-utils \
31 fd-tracker \
32 bytecode \
33 filter \
34 argpar
35
36 # Common library
37 noinst_LTLIBRARIES = libcommon.la
38 EXTRA_DIST = mi-lttng-4.1.xsd
39
40 libcommon_la_SOURCES = \
41 actions/action.c \
42 actions/list.c \
43 actions/notify.c \
44 actions/path.c \
45 actions/rotate-session.c \
46 actions/snapshot-session.c \
47 actions/start-session.c \
48 actions/stop-session.c \
49 actions/rate-policy.c \
50 buffer-view.h buffer-view.c \
51 common.h \
52 conditions/buffer-usage.c \
53 conditions/condition.c \
54 conditions/event-rule-matches.c \
55 conditions/session-consumed-size.c \
56 conditions/session-rotation.c \
57 context.c context.h \
58 credentials.c credentials.h \
59 daemonize.c daemonize.h \
60 defaults.c \
61 domain.c \
62 dynamic-array.c dynamic-array.h \
63 dynamic-buffer.c dynamic-buffer.h \
64 endpoint.c \
65 error.c error.h \
66 error-query.c \
67 evaluation.c \
68 event.c \
69 event-expr/event-expr.c \
70 event-field-value.c \
71 event-rule/event-rule.c \
72 event-rule/kernel-kprobe.c \
73 event-rule/kernel-syscall.c \
74 event-rule/kernel-uprobe.c \
75 event-rule/kernel-tracepoint.c \
76 event-rule/user-tracepoint.c \
77 event-rule/log4j-logging.c \
78 event-rule/jul-logging.c \
79 event-rule/python-logging.c \
80 filter.c filter.h \
81 fd-handle.c fd-handle.h \
82 fs-handle.c fs-handle.h fs-handle-internal.h \
83 futex.c futex.h \
84 kernel-probe.c \
85 index-allocator.c index-allocator.h \
86 location.c \
87 log-level-rule.c \
88 mi-lttng.c mi-lttng.h \
89 notification.c \
90 optional.h \
91 payload.c payload.h \
92 payload-view.c payload-view.h \
93 pipe.c pipe.h \
94 readwrite.c readwrite.h \
95 runas.c runas.h \
96 shm.c shm.h \
97 session-descriptor.c \
98 snapshot.c snapshot.h \
99 spawn-viewer.c spawn-viewer.h \
100 time.c \
101 trace-chunk.c trace-chunk.h \
102 trace-chunk-registry.h \
103 trigger.c \
104 unix.c unix.h \
105 uri.c uri.h \
106 userspace-probe.c \
107 utils.c utils.h \
108 uuid.c uuid.h \
109 thread.c thread.h \
110 tracker.c tracker.h \
111 waiter.c waiter.h
112
113 if HAVE_ELF_H
114 libcommon_la_SOURCES += \
115 lttng-elf.c lttng-elf.h
116 endif
117
118 libcommon_la_LIBADD = \
119 $(top_builddir)/src/common/bytecode/libbytecode.la \
120 $(top_builddir)/src/common/config/libconfig.la \
121 $(top_builddir)/src/common/compat/libcompat.la \
122 $(top_builddir)/src/common/hashtable/libhashtable.la \
123 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
124 $(top_builddir)/src/common/filter/libfilter.la \
125 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
126
127 if BUILD_LIB_HEALTH
128 SUBDIRS += health
129 endif
130
131 if BUILD_LIB_KERNEL_CTL
132 SUBDIRS += kernel-ctl
133 endif
134
135 if BUILD_LIB_SESSIOND_COMM
136 SUBDIRS += sessiond-comm
137 endif
138
139 if BUILD_LIB_RELAYD
140 SUBDIRS += relayd
141 endif
142
143
144 if BUILD_LIB_KERNEL_CONSUMER
145 SUBDIRS += kernel-consumer
146 endif
147
148 if BUILD_LIB_UST_CONSUMER
149 SUBDIRS += ust-consumer
150 endif
151
152 if BUILD_LIB_TESTPOINT
153 SUBDIRS += testpoint
154 endif
155
156 if BUILD_LIB_INDEX
157 SUBDIRS += index
158 endif
159
160 if BUILD_LIB_CONSUMER
161 SUBDIRS += consumer
162 endif
163
164 noinst_HEADERS = \
165 align.h \
166 bug.h \
167 defaults.h \
168 error.h \
169 futex.h \
170 lttng-kernel.h \
171 lttng-kernel-old.h \
172 macros.h \
173 time.h \
174 uri.h \
175 utils.h
176
177 noinst_PROGRAMS = filter-grammar-test
178 filter_grammar_test_SOURCES = filter-grammar-test.c
179 filter_grammar_test_LDADD = \
180 libcommon.la
181
182 all-local:
183 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
184 for script in $(EXTRA_DIST); do \
185 cp -f $(srcdir)/$$script $(builddir); \
186 done; \
187 fi
188
189 clean-local:
190 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
191 for script in $(EXTRA_DIST); do \
192 rm -f $(builddir)/$$script; \
193 done; \
194 fi
This page took 0.032216 seconds and 4 git commands to generate.