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