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