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