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