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 \ |
03bb2358 | 39 | actions/notify.c \ |
bfb2ec6a | 40 | actions/rotate-session.c \ |
757c48a2 | 41 | actions/snapshot-session.c \ |
58397d0d | 42 | actions/start-session.c \ |
931bdbaa | 43 | actions/stop-session.c \ |
347f2c91 | 44 | actions/firing-policy.c \ |
28b6dfc8 SM |
45 | buffer-view.h buffer-view.c \ |
46 | common.h \ | |
ae20d1bd JR |
47 | conditions/buffer-usage.c \ |
48 | conditions/condition.c \ | |
e393070a | 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 \ |
a3c51653 | 66 | event-rule/kernel-probe.c \ |
e6a39346 | 67 | event-rule/syscall.c \ |
e957bf98 | 68 | event-rule/userspace-probe.c \ |
6d420eff | 69 | event-rule/tracepoint.c \ |
28b6dfc8 | 70 | filter.c filter.h \ |
dd1bac00 | 71 | fd-handle.c fd-handle.h \ |
75e36e37 | 72 | fs-handle.c fs-handle.h fs-handle-internal.h \ |
28b6dfc8 | 73 | futex.c futex.h \ |
808cb744 | 74 | kernel-probe.c \ |
246611b0 | 75 | index-allocator.c index-allocator.h \ |
28b6dfc8 | 76 | location.c \ |
85b05318 | 77 | log-level-rule.c \ |
28b6dfc8 SM |
78 | mi-lttng.c mi-lttng.h \ |
79 | notification.c \ | |
28b6dfc8 | 80 | optional.h \ |
9e620ea7 JG |
81 | payload.c payload.h \ |
82 | payload-view.c payload-view.h \ | |
28b6dfc8 SM |
83 | pipe.c pipe.h \ |
84 | readwrite.c readwrite.h \ | |
85 | runas.c runas.h \ | |
b7fc068d | 86 | shm.c shm.h \ |
28b6dfc8 | 87 | session-descriptor.c \ |
b30fa191 | 88 | snapshot.c snapshot.h \ |
dd392e94 | 89 | spawn-viewer.c spawn-viewer.h \ |
28b6dfc8 SM |
90 | time.c \ |
91 | trace-chunk.c trace-chunk.h \ | |
92 | trace-chunk-registry.h \ | |
93 | trigger.c \ | |
94 | unix.c unix.h \ | |
95 | uri.c uri.h \ | |
96 | userspace-probe.c \ | |
97 | utils.c utils.h \ | |
98 | uuid.c uuid.h \ | |
cb8d0d24 | 99 | thread.c thread.h \ |
159b042f | 100 | tracker.c tracker.h \ |
75e36e37 | 101 | waiter.c waiter.h |
b3f35e02 | 102 | |
b1b34226 | 103 | if HAVE_ELF_H |
28b6dfc8 SM |
104 | libcommon_la_SOURCES += \ |
105 | lttng-elf.c lttng-elf.h | |
b1b34226 MJ |
106 | endif |
107 | ||
b3f35e02 | 108 | libcommon_la_LIBADD = \ |
0ae3cfc6 | 109 | $(top_builddir)/src/common/bytecode/libbytecode.la \ |
28b6dfc8 SM |
110 | $(top_builddir)/src/common/config/libconfig.la \ |
111 | $(top_builddir)/src/common/compat/libcompat.la \ | |
8bb66c3c | 112 | $(top_builddir)/src/common/hashtable/libhashtable.la \ |
e4d2f27a | 113 | $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \ |
116a02e3 JG |
114 | $(top_builddir)/src/common/filter/libfilter.la \ |
115 | $(top_builddir)/src/vendor/msgpack/libmsgpack.la | |
b3f35e02 | 116 | |
87fb9fc0 JR |
117 | if BUILD_LIB_COMPAT |
118 | SUBDIRS += compat | |
119 | endif | |
120 | ||
121 | if BUILD_LIB_HEALTH | |
122 | SUBDIRS += health | |
123 | endif | |
124 | ||
125 | if BUILD_LIB_HASHTABLE | |
126 | SUBDIRS += hashtable | |
127 | endif | |
128 | ||
129 | if BUILD_LIB_KERNEL_CTL | |
130 | SUBDIRS += kernel-ctl | |
131 | endif | |
132 | ||
133 | if BUILD_LIB_SESSIOND_COMM | |
134 | SUBDIRS += sessiond-comm | |
135 | endif | |
136 | ||
137 | if BUILD_LIB_RELAYD | |
aa360a35 JG |
138 | SUBDIRS += relayd |
139 | endif | |
140 | ||
141 | if BUILD_LIB_FD_TRACKER | |
142 | SUBDIRS += fd-tracker | |
87fb9fc0 JR |
143 | endif |
144 | ||
145 | if BUILD_LIB_KERNEL_CONSUMER | |
146 | SUBDIRS += kernel-consumer | |
147 | endif | |
148 | ||
149 | if BUILD_LIB_UST_CONSUMER | |
150 | SUBDIRS += ust-consumer | |
151 | endif | |
152 | ||
153 | if BUILD_LIB_TESTPOINT | |
154 | SUBDIRS += testpoint | |
155 | endif | |
156 | ||
157 | if BUILD_LIB_INDEX | |
158 | SUBDIRS += index | |
159 | endif | |
160 | ||
161 | if BUILD_LIB_CONFIG | |
162 | SUBDIRS += config | |
163 | endif | |
164 | ||
165 | if BUILD_LIB_CONSUMER | |
166 | SUBDIRS += consumer | |
167 | endif | |
10a8a223 | 168 | |
28b6dfc8 SM |
169 | noinst_HEADERS = \ |
170 | align.h \ | |
171 | bug.h \ | |
172 | defaults.h \ | |
173 | error.h \ | |
174 | futex.h \ | |
175 | lttng-kernel.h \ | |
176 | lttng-kernel-old.h \ | |
177 | macros.h \ | |
178 | time.h \ | |
179 | uri.h \ | |
180 | utils.h | |
1c39da61 | 181 | |
c49fc5e4 JR |
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 |