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 \ |
28b6dfc8 SM |
44 | buffer-view.h buffer-view.c \ |
45 | common.h \ | |
ae20d1bd JR |
46 | conditions/buffer-usage.c \ |
47 | conditions/condition.c \ | |
683d081a | 48 | conditions/event-rule.c \ |
ae20d1bd JR |
49 | conditions/session-consumed-size.c \ |
50 | conditions/session-rotation.c \ | |
28b6dfc8 | 51 | context.c context.h \ |
894e6e1c | 52 | credentials.c credentials.h \ |
28b6dfc8 SM |
53 | daemonize.c daemonize.h \ |
54 | defaults.c \ | |
c0374092 | 55 | domain.c \ |
28b6dfc8 SM |
56 | dynamic-array.c dynamic-array.h \ |
57 | dynamic-buffer.c dynamic-buffer.h \ | |
58 | endpoint.c \ | |
59 | error.c error.h \ | |
60 | evaluation.c \ | |
61 | event.c \ | |
748b5f7b | 62 | event-expr-to-bytecode.c event-expr-to-bytecode.h \ |
7a3dcaf6 | 63 | event-rule/event-rule.c \ |
077192fd | 64 | event-rule/kprobe.c \ |
e6a39346 | 65 | event-rule/syscall.c \ |
df08d338 | 66 | event-rule/uprobe.c \ |
6d420eff | 67 | event-rule/tracepoint.c \ |
28b6dfc8 | 68 | filter.c filter.h \ |
dd1bac00 | 69 | fd-handle.c fd-handle.h \ |
75e36e37 | 70 | fs-handle.c fs-handle.h fs-handle-internal.h \ |
28b6dfc8 | 71 | futex.c futex.h \ |
808cb744 | 72 | kernel-probe.c \ |
28b6dfc8 SM |
73 | location.c \ |
74 | mi-lttng.c mi-lttng.h \ | |
75 | notification.c \ | |
28b6dfc8 | 76 | optional.h \ |
9e620ea7 JG |
77 | payload.c payload.h \ |
78 | payload-view.c payload-view.h \ | |
28b6dfc8 SM |
79 | pipe.c pipe.h \ |
80 | readwrite.c readwrite.h \ | |
81 | runas.c runas.h \ | |
28b6dfc8 | 82 | session-descriptor.c \ |
b30fa191 | 83 | snapshot.c snapshot.h \ |
dd392e94 | 84 | spawn-viewer.c spawn-viewer.h \ |
28b6dfc8 SM |
85 | time.c \ |
86 | trace-chunk.c trace-chunk.h \ | |
87 | trace-chunk-registry.h \ | |
88 | trigger.c \ | |
89 | unix.c unix.h \ | |
90 | uri.c uri.h \ | |
91 | userspace-probe.c \ | |
92 | utils.c utils.h \ | |
93 | uuid.c uuid.h \ | |
cb8d0d24 | 94 | thread.c thread.h \ |
159b042f | 95 | tracker.c tracker.h \ |
75e36e37 | 96 | waiter.c waiter.h |
b3f35e02 | 97 | |
b1b34226 | 98 | if HAVE_ELF_H |
28b6dfc8 SM |
99 | libcommon_la_SOURCES += \ |
100 | lttng-elf.c lttng-elf.h | |
b1b34226 MJ |
101 | endif |
102 | ||
b3f35e02 | 103 | libcommon_la_LIBADD = \ |
0ae3cfc6 | 104 | $(top_builddir)/src/common/bytecode/libbytecode.la \ |
28b6dfc8 SM |
105 | $(top_builddir)/src/common/config/libconfig.la \ |
106 | $(top_builddir)/src/common/compat/libcompat.la \ | |
8bb66c3c | 107 | $(top_builddir)/src/common/hashtable/libhashtable.la \ |
e4d2f27a JR |
108 | $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \ |
109 | $(top_builddir)/src/common/filter/libfilter.la | |
b3f35e02 | 110 | |
87fb9fc0 JR |
111 | if BUILD_LIB_COMPAT |
112 | SUBDIRS += compat | |
113 | endif | |
114 | ||
115 | if BUILD_LIB_HEALTH | |
116 | SUBDIRS += health | |
117 | endif | |
118 | ||
119 | if BUILD_LIB_HASHTABLE | |
120 | SUBDIRS += hashtable | |
121 | endif | |
122 | ||
123 | if BUILD_LIB_KERNEL_CTL | |
124 | SUBDIRS += kernel-ctl | |
125 | endif | |
126 | ||
127 | if BUILD_LIB_SESSIOND_COMM | |
128 | SUBDIRS += sessiond-comm | |
129 | endif | |
130 | ||
131 | if BUILD_LIB_RELAYD | |
aa360a35 JG |
132 | SUBDIRS += relayd |
133 | endif | |
134 | ||
135 | if BUILD_LIB_FD_TRACKER | |
136 | SUBDIRS += fd-tracker | |
87fb9fc0 JR |
137 | endif |
138 | ||
139 | if BUILD_LIB_KERNEL_CONSUMER | |
140 | SUBDIRS += kernel-consumer | |
141 | endif | |
142 | ||
143 | if BUILD_LIB_UST_CONSUMER | |
144 | SUBDIRS += ust-consumer | |
145 | endif | |
146 | ||
147 | if BUILD_LIB_TESTPOINT | |
148 | SUBDIRS += testpoint | |
149 | endif | |
150 | ||
151 | if BUILD_LIB_INDEX | |
152 | SUBDIRS += index | |
153 | endif | |
154 | ||
155 | if BUILD_LIB_CONFIG | |
156 | SUBDIRS += config | |
157 | endif | |
158 | ||
159 | if BUILD_LIB_CONSUMER | |
160 | SUBDIRS += consumer | |
161 | endif | |
10a8a223 | 162 | |
28b6dfc8 SM |
163 | noinst_HEADERS = \ |
164 | align.h \ | |
165 | bug.h \ | |
166 | defaults.h \ | |
167 | error.h \ | |
168 | futex.h \ | |
169 | lttng-kernel.h \ | |
170 | lttng-kernel-old.h \ | |
171 | macros.h \ | |
172 | time.h \ | |
173 | uri.h \ | |
174 | utils.h | |
1c39da61 | 175 | |
c49fc5e4 JR |
176 | all-local: |
177 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
178 | for script in $(EXTRA_DIST); do \ | |
179 | cp -f $(srcdir)/$$script $(builddir); \ | |
180 | done; \ | |
181 | fi | |
182 | ||
183 | clean-local: | |
184 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
185 | for script in $(EXTRA_DIST); do \ | |
186 | rm -f $(builddir)/$$script; \ | |
187 | done; \ | |
188 | fi |