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