Commit | Line | Data |
---|---|---|
ab5be9fa MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
26821431 MD |
3 | AUTOMAKE_OPTIONS = subdir-objects |
4 | ||
e2fb96d8 SM |
5 | SUBDIRS = \ |
6 | string-utils \ | |
0ae3cfc6 | 7 | bytecode \ |
e2fb96d8 SM |
8 | filter \ |
9 | argpar | |
87fb9fc0 JR |
10 | |
11 | # Make sure to always distribute all folders | |
12 | # since SUBDIRS is decided at configure time. | |
28b6dfc8 SM |
13 | DIST_SUBDIRS = \ |
14 | compat \ | |
15 | health \ | |
16 | hashtable \ | |
17 | kernel-ctl \ | |
18 | sessiond-comm \ | |
19 | relayd \ | |
20 | kernel-consumer \ | |
21 | ust-consumer \ | |
22 | testpoint \ | |
23 | index \ | |
24 | config \ | |
25 | consumer \ | |
26 | string-utils \ | |
e4d2f27a | 27 | fd-tracker \ |
0ae3cfc6 | 28 | bytecode \ |
e2fb96d8 SM |
29 | filter \ |
30 | argpar | |
31 | ||
b3f35e02 FD |
32 | # Common library |
33 | noinst_LTLIBRARIES = libcommon.la | |
01fac814 | 34 | EXTRA_DIST = mi-lttng-4.0.xsd |
b3f35e02 | 35 | |
28b6dfc8 | 36 | libcommon_la_SOURCES = \ |
03bb2358 | 37 | actions/action.c \ |
ad63a966 | 38 | actions/list.c \ |
03bb2358 | 39 | actions/notify.c \ |
482b3452 | 40 | actions/path.c \ |
bfb2ec6a | 41 | actions/rotate-session.c \ |
757c48a2 | 42 | actions/snapshot-session.c \ |
58397d0d | 43 | actions/start-session.c \ |
931bdbaa | 44 | actions/stop-session.c \ |
7f4d5b07 | 45 | actions/rate-policy.c \ |
28b6dfc8 SM |
46 | buffer-view.h buffer-view.c \ |
47 | common.h \ | |
ae20d1bd JR |
48 | conditions/buffer-usage.c \ |
49 | conditions/condition.c \ | |
670a26e4 | 50 | conditions/event-rule-matches.c \ |
ae20d1bd JR |
51 | conditions/session-consumed-size.c \ |
52 | conditions/session-rotation.c \ | |
28b6dfc8 | 53 | context.c context.h \ |
894e6e1c | 54 | credentials.c credentials.h \ |
28b6dfc8 SM |
55 | daemonize.c daemonize.h \ |
56 | defaults.c \ | |
c0374092 | 57 | domain.c \ |
28b6dfc8 SM |
58 | dynamic-array.c dynamic-array.h \ |
59 | dynamic-buffer.c dynamic-buffer.h \ | |
60 | endpoint.c \ | |
61 | error.c error.h \ | |
b99a0cb3 | 62 | error-query.c \ |
28b6dfc8 SM |
63 | evaluation.c \ |
64 | event.c \ | |
748b5f7b | 65 | event-expr-to-bytecode.c event-expr-to-bytecode.h \ |
d28fcdec | 66 | event-field-value.c \ |
7a3dcaf6 | 67 | event-rule/event-rule.c \ |
d84633c4 | 68 | event-rule/kernel-kprobe.c \ |
213efb0c | 69 | event-rule/kernel-syscall.c \ |
e60e9a9a | 70 | event-rule/kernel-uprobe.c \ |
b25b2570 | 71 | event-rule/kernel-tracepoint.c \ |
cc66eccf | 72 | event-rule/user-tracepoint.c \ |
08662c9b | 73 | event-rule/log4j-logging.c \ |
d440991b | 74 | event-rule/jul-logging.c \ |
f30f4bf4 | 75 | event-rule/python-logging.c \ |
28b6dfc8 | 76 | filter.c filter.h \ |
dd1bac00 | 77 | fd-handle.c fd-handle.h \ |
75e36e37 | 78 | fs-handle.c fs-handle.h fs-handle-internal.h \ |
28b6dfc8 | 79 | futex.c futex.h \ |
808cb744 | 80 | kernel-probe.c \ |
246611b0 | 81 | index-allocator.c index-allocator.h \ |
28b6dfc8 | 82 | location.c \ |
85b05318 | 83 | log-level-rule.c \ |
28b6dfc8 SM |
84 | mi-lttng.c mi-lttng.h \ |
85 | notification.c \ | |
28b6dfc8 | 86 | optional.h \ |
9e620ea7 JG |
87 | payload.c payload.h \ |
88 | payload-view.c payload-view.h \ | |
28b6dfc8 SM |
89 | pipe.c pipe.h \ |
90 | readwrite.c readwrite.h \ | |
91 | runas.c runas.h \ | |
b7fc068d | 92 | shm.c shm.h \ |
28b6dfc8 | 93 | session-descriptor.c \ |
b30fa191 | 94 | snapshot.c snapshot.h \ |
dd392e94 | 95 | spawn-viewer.c spawn-viewer.h \ |
28b6dfc8 SM |
96 | time.c \ |
97 | trace-chunk.c trace-chunk.h \ | |
98 | trace-chunk-registry.h \ | |
99 | trigger.c \ | |
100 | unix.c unix.h \ | |
101 | uri.c uri.h \ | |
102 | userspace-probe.c \ | |
103 | utils.c utils.h \ | |
104 | uuid.c uuid.h \ | |
cb8d0d24 | 105 | thread.c thread.h \ |
159b042f | 106 | tracker.c tracker.h \ |
75e36e37 | 107 | waiter.c waiter.h |
b3f35e02 | 108 | |
b1b34226 | 109 | if HAVE_ELF_H |
28b6dfc8 SM |
110 | libcommon_la_SOURCES += \ |
111 | lttng-elf.c lttng-elf.h | |
b1b34226 MJ |
112 | endif |
113 | ||
b3f35e02 | 114 | libcommon_la_LIBADD = \ |
0ae3cfc6 | 115 | $(top_builddir)/src/common/bytecode/libbytecode.la \ |
28b6dfc8 SM |
116 | $(top_builddir)/src/common/config/libconfig.la \ |
117 | $(top_builddir)/src/common/compat/libcompat.la \ | |
8bb66c3c | 118 | $(top_builddir)/src/common/hashtable/libhashtable.la \ |
e4d2f27a | 119 | $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \ |
116a02e3 JG |
120 | $(top_builddir)/src/common/filter/libfilter.la \ |
121 | $(top_builddir)/src/vendor/msgpack/libmsgpack.la | |
b3f35e02 | 122 | |
87fb9fc0 JR |
123 | if BUILD_LIB_COMPAT |
124 | SUBDIRS += compat | |
125 | endif | |
126 | ||
127 | if BUILD_LIB_HEALTH | |
128 | SUBDIRS += health | |
129 | endif | |
130 | ||
131 | if BUILD_LIB_HASHTABLE | |
132 | SUBDIRS += hashtable | |
133 | endif | |
134 | ||
135 | if BUILD_LIB_KERNEL_CTL | |
136 | SUBDIRS += kernel-ctl | |
137 | endif | |
138 | ||
139 | if BUILD_LIB_SESSIOND_COMM | |
140 | SUBDIRS += sessiond-comm | |
141 | endif | |
142 | ||
143 | if BUILD_LIB_RELAYD | |
aa360a35 JG |
144 | SUBDIRS += relayd |
145 | endif | |
146 | ||
147 | if BUILD_LIB_FD_TRACKER | |
148 | SUBDIRS += fd-tracker | |
87fb9fc0 JR |
149 | endif |
150 | ||
151 | if BUILD_LIB_KERNEL_CONSUMER | |
152 | SUBDIRS += kernel-consumer | |
153 | endif | |
154 | ||
155 | if BUILD_LIB_UST_CONSUMER | |
156 | SUBDIRS += ust-consumer | |
157 | endif | |
158 | ||
159 | if BUILD_LIB_TESTPOINT | |
160 | SUBDIRS += testpoint | |
161 | endif | |
162 | ||
163 | if BUILD_LIB_INDEX | |
164 | SUBDIRS += index | |
165 | endif | |
166 | ||
167 | if BUILD_LIB_CONFIG | |
168 | SUBDIRS += config | |
169 | endif | |
170 | ||
171 | if BUILD_LIB_CONSUMER | |
172 | SUBDIRS += consumer | |
173 | endif | |
10a8a223 | 174 | |
28b6dfc8 SM |
175 | noinst_HEADERS = \ |
176 | align.h \ | |
177 | bug.h \ | |
178 | defaults.h \ | |
179 | error.h \ | |
180 | futex.h \ | |
181 | lttng-kernel.h \ | |
182 | lttng-kernel-old.h \ | |
183 | macros.h \ | |
184 | time.h \ | |
185 | uri.h \ | |
186 | utils.h | |
1c39da61 | 187 | |
f78de773 JG |
188 | noinst_PROGRAMS = filter-grammar-test |
189 | filter_grammar_test_SOURCES = filter-grammar-test.c | |
190 | filter_grammar_test_LDADD = \ | |
191 | libcommon.la | |
f78de773 | 192 | |
c49fc5e4 JR |
193 | all-local: |
194 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
195 | for script in $(EXTRA_DIST); do \ | |
196 | cp -f $(srcdir)/$$script $(builddir); \ | |
197 | done; \ | |
198 | fi | |
199 | ||
200 | clean-local: | |
201 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
202 | for script in $(EXTRA_DIST); do \ | |
203 | rm -f $(builddir)/$$script; \ | |
204 | done; \ | |
205 | fi |