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 = \ |
516cffda | 6 | argpar \ |
0ae3cfc6 | 7 | bytecode \ |
516cffda JR |
8 | compat \ |
9 | config \ | |
10 | fd-tracker \ | |
11 | string-utils \ | |
e2fb96d8 | 12 | filter \ |
516cffda | 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 | |
ebc5e6b0 | 38 | EXTRA_DIST = mi-lttng-4.1.xsd |
b3f35e02 | 39 | |
28b6dfc8 | 40 | libcommon_la_SOURCES = \ |
03bb2358 | 41 | actions/action.c \ |
ad63a966 | 42 | actions/list.c \ |
03bb2358 | 43 | actions/notify.c \ |
482b3452 | 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 \ | |
a303e333 | 69 | event-expr/event-expr.c \ |
d28fcdec | 70 | event-field-value.c \ |
7a3dcaf6 | 71 | event-rule/event-rule.c \ |
d84633c4 | 72 | event-rule/kernel-kprobe.c \ |
213efb0c | 73 | event-rule/kernel-syscall.c \ |
e60e9a9a | 74 | event-rule/kernel-uprobe.c \ |
b25b2570 | 75 | event-rule/kernel-tracepoint.c \ |
cc66eccf | 76 | event-rule/user-tracepoint.c \ |
08662c9b | 77 | event-rule/log4j-logging.c \ |
d440991b | 78 | event-rule/jul-logging.c \ |
f30f4bf4 | 79 | event-rule/python-logging.c \ |
28b6dfc8 | 80 | filter.c filter.h \ |
dd1bac00 | 81 | fd-handle.c fd-handle.h \ |
75e36e37 | 82 | fs-handle.c fs-handle.h fs-handle-internal.h \ |
28b6dfc8 | 83 | futex.c futex.h \ |
808cb744 | 84 | kernel-probe.c \ |
246611b0 | 85 | index-allocator.c index-allocator.h \ |
28b6dfc8 | 86 | location.c \ |
85b05318 | 87 | log-level-rule.c \ |
28b6dfc8 SM |
88 | mi-lttng.c mi-lttng.h \ |
89 | notification.c \ | |
28b6dfc8 | 90 | optional.h \ |
9e620ea7 JG |
91 | payload.c payload.h \ |
92 | payload-view.c payload-view.h \ | |
28b6dfc8 SM |
93 | pipe.c pipe.h \ |
94 | readwrite.c readwrite.h \ | |
95 | runas.c runas.h \ | |
b7fc068d | 96 | shm.c shm.h \ |
28b6dfc8 | 97 | session-descriptor.c \ |
b30fa191 | 98 | snapshot.c snapshot.h \ |
dd392e94 | 99 | spawn-viewer.c spawn-viewer.h \ |
28b6dfc8 SM |
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 \ | |
cb8d0d24 | 109 | thread.c thread.h \ |
159b042f | 110 | tracker.c tracker.h \ |
75e36e37 | 111 | waiter.c waiter.h |
b3f35e02 | 112 | |
b1b34226 | 113 | if HAVE_ELF_H |
28b6dfc8 SM |
114 | libcommon_la_SOURCES += \ |
115 | lttng-elf.c lttng-elf.h | |
b1b34226 MJ |
116 | endif |
117 | ||
b3f35e02 | 118 | libcommon_la_LIBADD = \ |
0ae3cfc6 | 119 | $(top_builddir)/src/common/bytecode/libbytecode.la \ |
28b6dfc8 SM |
120 | $(top_builddir)/src/common/config/libconfig.la \ |
121 | $(top_builddir)/src/common/compat/libcompat.la \ | |
8bb66c3c | 122 | $(top_builddir)/src/common/hashtable/libhashtable.la \ |
e4d2f27a | 123 | $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \ |
116a02e3 JG |
124 | $(top_builddir)/src/common/filter/libfilter.la \ |
125 | $(top_builddir)/src/vendor/msgpack/libmsgpack.la | |
b3f35e02 | 126 | |
87fb9fc0 JR |
127 | if BUILD_LIB_HEALTH |
128 | SUBDIRS += health | |
129 | endif | |
130 | ||
87fb9fc0 JR |
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 | |
aa360a35 JG |
140 | SUBDIRS += relayd |
141 | endif | |
142 | ||
87fb9fc0 JR |
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 | ||
87fb9fc0 JR |
160 | if BUILD_LIB_CONSUMER |
161 | SUBDIRS += consumer | |
162 | endif | |
10a8a223 | 163 | |
28b6dfc8 SM |
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 | |
1c39da61 | 176 | |
f78de773 JG |
177 | noinst_PROGRAMS = filter-grammar-test |
178 | filter_grammar_test_SOURCES = filter-grammar-test.c | |
179 | filter_grammar_test_LDADD = \ | |
180 | libcommon.la | |
f78de773 | 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 |