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