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