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 | 38 | # Common library |
a878d961 | 39 | noinst_LTLIBRARIES = libcommon-lgpl.la libcommon-gpl.la |
ebc5e6b0 | 40 | EXTRA_DIST = mi-lttng-4.1.xsd |
b3f35e02 | 41 | |
a878d961 MD |
42 | # The libcommon-lgpl static archive contains only LGPLv2.1 code. It is |
43 | # meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also | |
44 | # contains libcommon-lgpl.la. | |
45 | ||
46 | libcommon_lgpl_la_SOURCES = \ | |
03bb2358 | 47 | actions/action.c \ |
ad63a966 | 48 | actions/list.c \ |
03bb2358 | 49 | actions/notify.c \ |
482b3452 | 50 | actions/path.c \ |
bfb2ec6a | 51 | actions/rotate-session.c \ |
757c48a2 | 52 | actions/snapshot-session.c \ |
58397d0d | 53 | actions/start-session.c \ |
931bdbaa | 54 | actions/stop-session.c \ |
7f4d5b07 | 55 | actions/rate-policy.c \ |
28b6dfc8 | 56 | buffer-view.h buffer-view.c \ |
ae20d1bd JR |
57 | conditions/buffer-usage.c \ |
58 | conditions/condition.c \ | |
670a26e4 | 59 | conditions/event-rule-matches.c \ |
ae20d1bd JR |
60 | conditions/session-consumed-size.c \ |
61 | conditions/session-rotation.c \ | |
894e6e1c | 62 | credentials.c credentials.h \ |
28b6dfc8 | 63 | defaults.c \ |
c0374092 | 64 | domain.c \ |
28b6dfc8 SM |
65 | dynamic-array.c dynamic-array.h \ |
66 | dynamic-buffer.c dynamic-buffer.h \ | |
67 | endpoint.c \ | |
68 | error.c error.h \ | |
b99a0cb3 | 69 | error-query.c \ |
28b6dfc8 | 70 | evaluation.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 \ |
dd1bac00 | 82 | fd-handle.c fd-handle.h \ |
808cb744 | 83 | kernel-probe.c \ |
28b6dfc8 | 84 | location.c \ |
85b05318 | 85 | log-level-rule.c \ |
28b6dfc8 SM |
86 | mi-lttng.c mi-lttng.h \ |
87 | notification.c \ | |
9e620ea7 JG |
88 | payload.c payload.h \ |
89 | payload-view.c payload-view.h \ | |
28b6dfc8 SM |
90 | readwrite.c readwrite.h \ |
91 | runas.c runas.h \ | |
28b6dfc8 | 92 | session-descriptor.c \ |
b30fa191 | 93 | snapshot.c snapshot.h \ |
dd392e94 | 94 | spawn-viewer.c spawn-viewer.h \ |
a878d961 | 95 | thread.c thread.h \ |
28b6dfc8 | 96 | time.c \ |
a878d961 | 97 | tracker.c tracker.h \ |
28b6dfc8 SM |
98 | trigger.c \ |
99 | unix.c unix.h \ | |
100 | uri.c uri.h \ | |
101 | userspace-probe.c \ | |
a878d961 | 102 | utils.c utils.h |
b3f35e02 | 103 | |
b1b34226 | 104 | if HAVE_ELF_H |
a878d961 | 105 | libcommon_lgpl_la_SOURCES += \ |
28b6dfc8 | 106 | lttng-elf.c lttng-elf.h |
b1b34226 MJ |
107 | endif |
108 | ||
a878d961 | 109 | libcommon_lgpl_la_LIBADD = \ |
0ae3cfc6 | 110 | $(top_builddir)/src/common/bytecode/libbytecode.la \ |
28b6dfc8 | 111 | $(top_builddir)/src/common/compat/libcompat.la \ |
a878d961 | 112 | $(top_builddir)/src/common/config/libconfig.la \ |
116a02e3 | 113 | $(top_builddir)/src/common/filter/libfilter.la \ |
a878d961 | 114 | $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la \ |
116a02e3 | 115 | $(top_builddir)/src/vendor/msgpack/libmsgpack.la |
b3f35e02 | 116 | |
a878d961 MD |
117 | # The libcommon-gpl static archive contains GPLv2 compatible code. It is |
118 | # meant to be used by GPL executables. | |
119 | ||
120 | libcommon_gpl_la_SOURCES = \ | |
121 | common.h \ | |
122 | context.c context.h \ | |
123 | daemonize.c daemonize.h \ | |
124 | event.c \ | |
125 | filter.c filter.h \ | |
126 | fs-handle.c fs-handle.h fs-handle-internal.h \ | |
127 | futex.c futex.h \ | |
128 | index-allocator.c index-allocator.h \ | |
129 | optional.h \ | |
130 | pipe.c pipe.h \ | |
131 | shm.c shm.h \ | |
132 | trace-chunk.c trace-chunk.h \ | |
133 | trace-chunk-registry.h \ | |
134 | uuid.c uuid.h \ | |
135 | waiter.c waiter.h | |
136 | ||
137 | libcommon_gpl_la_LIBADD = \ | |
138 | libcommon-lgpl.la \ | |
139 | $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \ | |
140 | $(top_builddir)/src/common/fd-tracker/libfd-tracker.la | |
141 | ||
87fb9fc0 JR |
142 | if BUILD_LIB_HEALTH |
143 | SUBDIRS += health | |
144 | endif | |
145 | ||
87fb9fc0 JR |
146 | if BUILD_LIB_KERNEL_CTL |
147 | SUBDIRS += kernel-ctl | |
148 | endif | |
149 | ||
150 | if BUILD_LIB_SESSIOND_COMM | |
151 | SUBDIRS += sessiond-comm | |
152 | endif | |
153 | ||
154 | if BUILD_LIB_RELAYD | |
aa360a35 JG |
155 | SUBDIRS += relayd |
156 | endif | |
157 | ||
87fb9fc0 JR |
158 | |
159 | if BUILD_LIB_KERNEL_CONSUMER | |
160 | SUBDIRS += kernel-consumer | |
161 | endif | |
162 | ||
163 | if BUILD_LIB_UST_CONSUMER | |
164 | SUBDIRS += ust-consumer | |
165 | endif | |
166 | ||
167 | if BUILD_LIB_TESTPOINT | |
168 | SUBDIRS += testpoint | |
169 | endif | |
170 | ||
171 | if BUILD_LIB_INDEX | |
172 | SUBDIRS += index | |
173 | endif | |
174 | ||
87fb9fc0 JR |
175 | if BUILD_LIB_CONSUMER |
176 | SUBDIRS += consumer | |
177 | endif | |
10a8a223 | 178 | |
28b6dfc8 SM |
179 | noinst_HEADERS = \ |
180 | align.h \ | |
181 | bug.h \ | |
182 | defaults.h \ | |
183 | error.h \ | |
184 | futex.h \ | |
185 | lttng-kernel.h \ | |
186 | lttng-kernel-old.h \ | |
187 | macros.h \ | |
188 | time.h \ | |
189 | uri.h \ | |
190 | utils.h | |
1c39da61 | 191 | |
f78de773 JG |
192 | noinst_PROGRAMS = filter-grammar-test |
193 | filter_grammar_test_SOURCES = filter-grammar-test.c | |
a878d961 | 194 | filter_grammar_test_LDADD = libcommon-gpl.la |
f78de773 | 195 | |
c49fc5e4 JR |
196 | all-local: |
197 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
198 | for script in $(EXTRA_DIST); do \ | |
199 | cp -f $(srcdir)/$$script $(builddir); \ | |
200 | done; \ | |
201 | fi | |
202 | ||
203 | clean-local: | |
204 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
205 | for script in $(EXTRA_DIST); do \ | |
206 | rm -f $(builddir)/$$script; \ | |
207 | done; \ | |
208 | fi |