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