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