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