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