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