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 \ |
0c51e8f3 | 38 | actions/group.c \ |
c3e68e71 | 39 | actions/incr-value.c \ |
03bb2358 | 40 | actions/notify.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 \ |
28b6dfc8 SM |
45 | buffer-view.h buffer-view.c \ |
46 | common.h \ | |
ae20d1bd JR |
47 | conditions/buffer-usage.c \ |
48 | conditions/condition.c \ | |
c3e68e71 | 49 | conditions/on-event.c \ |
ae20d1bd JR |
50 | conditions/session-consumed-size.c \ |
51 | conditions/session-rotation.c \ | |
28b6dfc8 | 52 | context.c context.h \ |
894e6e1c | 53 | credentials.c credentials.h \ |
28b6dfc8 SM |
54 | daemonize.c daemonize.h \ |
55 | defaults.c \ | |
c0374092 | 56 | domain.c \ |
28b6dfc8 SM |
57 | dynamic-array.c dynamic-array.h \ |
58 | dynamic-buffer.c dynamic-buffer.h \ | |
59 | endpoint.c \ | |
60 | error.c error.h \ | |
61 | evaluation.c \ | |
62 | event.c \ | |
748b5f7b | 63 | event-expr-to-bytecode.c event-expr-to-bytecode.h \ |
d28fcdec | 64 | event-field-value.c \ |
7a3dcaf6 | 65 | event-rule/event-rule.c \ |
c3e68e71 JR |
66 | event-rule/kernel-function.c \ |
67 | event-rule/kernel-probe.c \ | |
e6a39346 | 68 | event-rule/syscall.c \ |
c3e68e71 | 69 | event-rule/userspace-probe.c \ |
6d420eff | 70 | event-rule/tracepoint.c \ |
28b6dfc8 | 71 | filter.c filter.h \ |
dd1bac00 | 72 | fd-handle.c fd-handle.h \ |
75e36e37 | 73 | fs-handle.c fs-handle.h fs-handle-internal.h \ |
28b6dfc8 | 74 | futex.c futex.h \ |
c3e68e71 | 75 | kernel-function.c \ |
808cb744 | 76 | kernel-probe.c \ |
c3e68e71 | 77 | index-allocator.c index-allocator.h \ |
28b6dfc8 | 78 | location.c \ |
c3e68e71 JR |
79 | log-level-rule.c \ |
80 | map.c \ | |
81 | map-query.c \ | |
82 | map-key/map-key.c \ | |
28b6dfc8 SM |
83 | mi-lttng.c mi-lttng.h \ |
84 | notification.c \ | |
28b6dfc8 | 85 | optional.h \ |
9e620ea7 JG |
86 | payload.c payload.h \ |
87 | payload-view.c payload-view.h \ | |
28b6dfc8 SM |
88 | pipe.c pipe.h \ |
89 | readwrite.c readwrite.h \ | |
90 | runas.c runas.h \ | |
c3e68e71 | 91 | shm.c shm.h \ |
28b6dfc8 | 92 | session-descriptor.c \ |
b30fa191 | 93 | snapshot.c snapshot.h \ |
dd392e94 | 94 | spawn-viewer.c spawn-viewer.h \ |
28b6dfc8 SM |
95 | time.c \ |
96 | trace-chunk.c trace-chunk.h \ | |
97 | trace-chunk-registry.h \ | |
98 | trigger.c \ | |
99 | unix.c unix.h \ | |
100 | uri.c uri.h \ | |
101 | userspace-probe.c \ | |
102 | utils.c utils.h \ | |
103 | uuid.c uuid.h \ | |
cb8d0d24 | 104 | thread.c thread.h \ |
159b042f | 105 | tracker.c tracker.h \ |
75e36e37 | 106 | waiter.c waiter.h |
b3f35e02 | 107 | |
b1b34226 | 108 | if HAVE_ELF_H |
28b6dfc8 SM |
109 | libcommon_la_SOURCES += \ |
110 | lttng-elf.c lttng-elf.h | |
b1b34226 MJ |
111 | endif |
112 | ||
b3f35e02 | 113 | libcommon_la_LIBADD = \ |
0ae3cfc6 | 114 | $(top_builddir)/src/common/bytecode/libbytecode.la \ |
28b6dfc8 SM |
115 | $(top_builddir)/src/common/config/libconfig.la \ |
116 | $(top_builddir)/src/common/compat/libcompat.la \ | |
8bb66c3c | 117 | $(top_builddir)/src/common/hashtable/libhashtable.la \ |
e4d2f27a | 118 | $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \ |
116a02e3 JG |
119 | $(top_builddir)/src/common/filter/libfilter.la \ |
120 | $(top_builddir)/src/vendor/msgpack/libmsgpack.la | |
b3f35e02 | 121 | |
87fb9fc0 JR |
122 | if BUILD_LIB_COMPAT |
123 | SUBDIRS += compat | |
124 | endif | |
125 | ||
126 | if BUILD_LIB_HEALTH | |
127 | SUBDIRS += health | |
128 | endif | |
129 | ||
130 | if BUILD_LIB_HASHTABLE | |
131 | SUBDIRS += hashtable | |
132 | endif | |
133 | ||
134 | if BUILD_LIB_KERNEL_CTL | |
135 | SUBDIRS += kernel-ctl | |
136 | endif | |
137 | ||
138 | if BUILD_LIB_SESSIOND_COMM | |
139 | SUBDIRS += sessiond-comm | |
140 | endif | |
141 | ||
142 | if BUILD_LIB_RELAYD | |
aa360a35 JG |
143 | SUBDIRS += relayd |
144 | endif | |
145 | ||
146 | if BUILD_LIB_FD_TRACKER | |
147 | SUBDIRS += fd-tracker | |
87fb9fc0 JR |
148 | endif |
149 | ||
150 | if BUILD_LIB_KERNEL_CONSUMER | |
151 | SUBDIRS += kernel-consumer | |
152 | endif | |
153 | ||
154 | if BUILD_LIB_UST_CONSUMER | |
155 | SUBDIRS += ust-consumer | |
156 | endif | |
157 | ||
158 | if BUILD_LIB_TESTPOINT | |
159 | SUBDIRS += testpoint | |
160 | endif | |
161 | ||
162 | if BUILD_LIB_INDEX | |
163 | SUBDIRS += index | |
164 | endif | |
165 | ||
166 | if BUILD_LIB_CONFIG | |
167 | SUBDIRS += config | |
168 | endif | |
169 | ||
170 | if BUILD_LIB_CONSUMER | |
171 | SUBDIRS += consumer | |
172 | endif | |
10a8a223 | 173 | |
28b6dfc8 SM |
174 | noinst_HEADERS = \ |
175 | align.h \ | |
176 | bug.h \ | |
177 | defaults.h \ | |
178 | error.h \ | |
179 | futex.h \ | |
180 | lttng-kernel.h \ | |
181 | lttng-kernel-old.h \ | |
182 | macros.h \ | |
183 | time.h \ | |
184 | uri.h \ | |
185 | utils.h | |
1c39da61 | 186 | |
c49fc5e4 JR |
187 | all-local: |
188 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
189 | for script in $(EXTRA_DIST); do \ | |
190 | cp -f $(srcdir)/$$script $(builddir); \ | |
191 | done; \ | |
192 | fi | |
193 | ||
194 | clean-local: | |
195 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
196 | for script in $(EXTRA_DIST); do \ | |
197 | rm -f $(builddir)/$$script; \ | |
198 | done; \ | |
199 | fi |