Commit | Line | Data |
---|---|---|
ab5be9fa MJ |
1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | ||
26821431 MD |
3 | AUTOMAKE_OPTIONS = subdir-objects |
4 | ||
d3a684ee JR |
5 | SUBDIRS = \ |
6 | string-utils \ | |
7 | filter \ | |
8 | argpar | |
87fb9fc0 JR |
9 | |
10 | # Make sure to always distribute all folders | |
11 | # since SUBDIRS is decided at configure time. | |
28b6dfc8 SM |
12 | DIST_SUBDIRS = \ |
13 | compat \ | |
14 | health \ | |
15 | hashtable \ | |
16 | kernel-ctl \ | |
17 | sessiond-comm \ | |
18 | relayd \ | |
19 | kernel-consumer \ | |
20 | ust-consumer \ | |
21 | testpoint \ | |
22 | index \ | |
23 | config \ | |
24 | consumer \ | |
25 | string-utils \ | |
d3a684ee JR |
26 | fd-tracker \ |
27 | filter \ | |
28 | argpar | |
28b6dfc8 | 29 | |
b3f35e02 FD |
30 | # Common library |
31 | noinst_LTLIBRARIES = libcommon.la | |
01fac814 | 32 | EXTRA_DIST = mi-lttng-4.0.xsd |
b3f35e02 | 33 | |
28b6dfc8 | 34 | libcommon_la_SOURCES = \ |
d3a684ee JR |
35 | actions/action.c \ |
36 | actions/group.c \ | |
37 | actions/notify.c \ | |
38 | actions/rotate-session.c \ | |
39 | actions/snapshot-session.c \ | |
40 | actions/start-session.c \ | |
41 | actions/stop-session.c \ | |
28b6dfc8 SM |
42 | buffer-view.h buffer-view.c \ |
43 | common.h \ | |
d3a684ee JR |
44 | conditions/buffer-usage.c \ |
45 | conditions/condition.c \ | |
46 | conditions/event-rule.c \ | |
47 | conditions/session-consumed-size.c \ | |
48 | conditions/session-rotation.c \ | |
28b6dfc8 | 49 | context.c context.h \ |
d3a684ee | 50 | credentials.c credentials.h \ |
28b6dfc8 SM |
51 | daemonize.c daemonize.h \ |
52 | defaults.c \ | |
d3a684ee | 53 | domain.c \ |
28b6dfc8 SM |
54 | dynamic-array.c dynamic-array.h \ |
55 | dynamic-buffer.c dynamic-buffer.h \ | |
56 | endpoint.c \ | |
57 | error.c error.h \ | |
58 | evaluation.c \ | |
59 | event.c \ | |
d3a684ee JR |
60 | event-rule.c \ |
61 | event-rule-kprobe.c \ | |
62 | event-rule-kretprobe.c \ | |
63 | event-rule-syscall.c \ | |
64 | event-rule-uprobe.c \ | |
65 | event-rule-tracepoint.c \ | |
28b6dfc8 SM |
66 | filter.c filter.h \ |
67 | futex.c futex.h \ | |
68 | location.c \ | |
69 | mi-lttng.c mi-lttng.h \ | |
70 | notification.c \ | |
28b6dfc8 SM |
71 | optional.h \ |
72 | pipe.c pipe.h \ | |
73 | readwrite.c readwrite.h \ | |
74 | runas.c runas.h \ | |
28b6dfc8 | 75 | session-descriptor.c \ |
d3a684ee | 76 | snapshot.c snapshot.h \ |
28b6dfc8 SM |
77 | time.c \ |
78 | trace-chunk.c trace-chunk.h \ | |
79 | trace-chunk-registry.h \ | |
80 | trigger.c \ | |
81 | unix.c unix.h \ | |
82 | uri.c uri.h \ | |
83 | userspace-probe.c \ | |
84 | utils.c utils.h \ | |
85 | uuid.c uuid.h \ | |
2d97a006 | 86 | tracker.c \ |
f5ea0241 JG |
87 | waiter.c waiter.h \ |
88 | fs-handle.h fs-handle-internal.h fs-handle.c | |
b3f35e02 | 89 | |
b1b34226 | 90 | if HAVE_ELF_H |
28b6dfc8 SM |
91 | libcommon_la_SOURCES += \ |
92 | lttng-elf.c lttng-elf.h | |
b1b34226 MJ |
93 | endif |
94 | ||
b3f35e02 | 95 | libcommon_la_LIBADD = \ |
28b6dfc8 SM |
96 | $(top_builddir)/src/common/config/libconfig.la \ |
97 | $(top_builddir)/src/common/compat/libcompat.la \ | |
8bb66c3c | 98 | $(top_builddir)/src/common/hashtable/libhashtable.la \ |
d3a684ee JR |
99 | $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \ |
100 | $(top_builddir)/src/common/filter/libfilter.la | |
b3f35e02 | 101 | |
87fb9fc0 JR |
102 | if BUILD_LIB_COMPAT |
103 | SUBDIRS += compat | |
104 | endif | |
105 | ||
106 | if BUILD_LIB_HEALTH | |
107 | SUBDIRS += health | |
108 | endif | |
109 | ||
110 | if BUILD_LIB_HASHTABLE | |
111 | SUBDIRS += hashtable | |
112 | endif | |
113 | ||
114 | if BUILD_LIB_KERNEL_CTL | |
115 | SUBDIRS += kernel-ctl | |
116 | endif | |
117 | ||
118 | if BUILD_LIB_SESSIOND_COMM | |
119 | SUBDIRS += sessiond-comm | |
120 | endif | |
121 | ||
122 | if BUILD_LIB_RELAYD | |
aa360a35 JG |
123 | SUBDIRS += relayd |
124 | endif | |
125 | ||
126 | if BUILD_LIB_FD_TRACKER | |
127 | SUBDIRS += fd-tracker | |
87fb9fc0 JR |
128 | endif |
129 | ||
130 | if BUILD_LIB_KERNEL_CONSUMER | |
131 | SUBDIRS += kernel-consumer | |
132 | endif | |
133 | ||
134 | if BUILD_LIB_UST_CONSUMER | |
135 | SUBDIRS += ust-consumer | |
136 | endif | |
137 | ||
138 | if BUILD_LIB_TESTPOINT | |
139 | SUBDIRS += testpoint | |
140 | endif | |
141 | ||
142 | if BUILD_LIB_INDEX | |
143 | SUBDIRS += index | |
144 | endif | |
145 | ||
146 | if BUILD_LIB_CONFIG | |
147 | SUBDIRS += config | |
148 | endif | |
149 | ||
150 | if BUILD_LIB_CONSUMER | |
151 | SUBDIRS += consumer | |
152 | endif | |
10a8a223 | 153 | |
28b6dfc8 SM |
154 | noinst_HEADERS = \ |
155 | align.h \ | |
156 | bug.h \ | |
157 | defaults.h \ | |
158 | error.h \ | |
159 | futex.h \ | |
160 | lttng-kernel.h \ | |
161 | lttng-kernel-old.h \ | |
162 | macros.h \ | |
163 | time.h \ | |
164 | uri.h \ | |
165 | utils.h | |
1c39da61 | 166 | |
c49fc5e4 JR |
167 | all-local: |
168 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
169 | for script in $(EXTRA_DIST); do \ | |
170 | cp -f $(srcdir)/$$script $(builddir); \ | |
171 | done; \ | |
172 | fi | |
173 | ||
174 | clean-local: | |
175 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
176 | for script in $(EXTRA_DIST); do \ | |
177 | rm -f $(builddir)/$$script; \ | |
178 | done; \ | |
179 | fi |