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