Fix: missing RCU read side critical sections
[lttng-tools.git] / src / common / Makefile.am
CommitLineData
ab5be9fa
MJ
1# SPDX-License-Identifier: GPL-2.0-only
2
26821431
MD
3AUTOMAKE_OPTIONS = subdir-objects
4
e2fb96d8 5SUBDIRS = \
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
19DIST_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
4971b7f0 41noinst_LTLIBRARIES = libpath.la libcommon-lgpl.la libcommon-gpl.la
1f1f7e35 42EXTRA_DIST = mi-lttng-4.1.xsd
b3f35e02 43
93903fd5
MD
44# The libcommon-lgpl static archive contains only LGPLv2.1 code. It is
45# meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also
46# contains libcommon-lgpl.la.
47
48libcommon_lgpl_la_SOURCES = \
a6bc4ca9
SM
49 actions/action.cpp \
50 actions/list.cpp \
51 actions/notify.cpp \
52 actions/path.cpp \
53 actions/rotate-session.cpp \
54 actions/snapshot-session.cpp \
55 actions/start-session.cpp \
56 actions/stop-session.cpp \
57 actions/rate-policy.cpp \
58 buffer-view.h buffer-view.cpp \
a6bc4ca9
SM
59 conditions/buffer-usage.cpp \
60 conditions/condition.cpp \
61 conditions/event-rule-matches.cpp \
62 conditions/session-consumed-size.cpp \
63 conditions/session-rotation.cpp \
a6bc4ca9 64 credentials.cpp credentials.h \
a6bc4ca9
SM
65 defaults.cpp \
66 domain.cpp \
67 dynamic-array.cpp dynamic-array.h \
68 dynamic-buffer.cpp dynamic-buffer.h \
69 endpoint.cpp \
70 error.cpp error.h \
71 error-query.cpp \
72 evaluation.cpp \
a6bc4ca9
SM
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 \
a6bc4ca9 84 fd-handle.cpp fd-handle.h \
a6bc4ca9 85 kernel-probe.cpp \
a6bc4ca9
SM
86 location.cpp \
87 log-level-rule.cpp \
88 mi-lttng.cpp mi-lttng.h \
89 notification.cpp \
a6bc4ca9
SM
90 payload.cpp payload.h \
91 payload-view.cpp payload-view.h \
a6bc4ca9
SM
92 readwrite.cpp readwrite.h \
93 runas.cpp runas.h \
a6bc4ca9
SM
94 session-descriptor.cpp \
95 snapshot.cpp snapshot.h \
96 spawn-viewer.cpp spawn-viewer.h \
93903fd5 97 thread.cpp thread.h \
a6bc4ca9 98 time.cpp \
93903fd5 99 tracker.cpp tracker.h \
a6bc4ca9
SM
100 trigger.cpp \
101 unix.cpp unix.h \
102 uri.cpp uri.h \
103 userspace-probe.cpp \
93903fd5 104 utils.cpp utils.h
b3f35e02 105
b1b34226 106if HAVE_ELF_H
93903fd5 107libcommon_lgpl_la_SOURCES += \
a6bc4ca9 108 lttng-elf.cpp lttng-elf.h
b1b34226
MJ
109endif
110
93903fd5 111libcommon_lgpl_la_LIBADD = \
0ae3cfc6 112 $(top_builddir)/src/common/bytecode/libbytecode.la \
28b6dfc8 113 $(top_builddir)/src/common/compat/libcompat.la \
93903fd5 114 $(top_builddir)/src/common/config/libconfig.la \
116a02e3 115 $(top_builddir)/src/common/filter/libfilter.la \
93903fd5 116 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la \
116a02e3 117 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
b3f35e02 118
4971b7f0
MD
119# The libpath static archive contains GPLv2 compatible code. It is
120# meant to be used by GPL executables.
121
122libpath_la_SOURCES = \
123 path.cpp path.h
124
93903fd5
MD
125# The libcommon-gpl static archive contains GPLv2 compatible code. It is
126# meant to be used by GPL executables.
127
128libcommon_gpl_la_SOURCES = \
129 common.h \
130 context.cpp context.h \
131 daemonize.cpp daemonize.h \
132 event.cpp \
133 filter.cpp filter.h \
134 fs-handle.cpp fs-handle.h fs-handle-internal.h \
135 futex.cpp futex.h \
136 index-allocator.cpp index-allocator.h \
137 optional.h \
138 pipe.cpp pipe.h \
139 shm.cpp shm.h \
140 trace-chunk.cpp trace-chunk.h \
141 trace-chunk-registry.h \
142 uuid.cpp uuid.h \
143 waiter.cpp waiter.h
144
145libcommon_gpl_la_LIBADD = \
146 libcommon-lgpl.la \
4971b7f0 147 libpath.la \
93903fd5
MD
148 $(top_builddir)/src/common/ini-config/libini-config.la \
149 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
150 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
151
87fb9fc0
JR
152if BUILD_LIB_HEALTH
153SUBDIRS += health
154endif
155
87fb9fc0
JR
156if BUILD_LIB_KERNEL_CTL
157SUBDIRS += kernel-ctl
158endif
159
160if BUILD_LIB_SESSIOND_COMM
161SUBDIRS += sessiond-comm
162endif
163
164if BUILD_LIB_RELAYD
aa360a35
JG
165SUBDIRS += relayd
166endif
167
87fb9fc0
JR
168
169if BUILD_LIB_KERNEL_CONSUMER
170SUBDIRS += kernel-consumer
171endif
172
173if BUILD_LIB_UST_CONSUMER
174SUBDIRS += ust-consumer
175endif
176
177if BUILD_LIB_TESTPOINT
178SUBDIRS += testpoint
179endif
180
181if BUILD_LIB_INDEX
182SUBDIRS += index
183endif
184
87fb9fc0
JR
185if BUILD_LIB_CONSUMER
186SUBDIRS += consumer
187endif
10a8a223 188
28b6dfc8
SM
189noinst_HEADERS = \
190 align.h \
191 bug.h \
192 defaults.h \
193 error.h \
194 futex.h \
195 lttng-kernel.h \
196 lttng-kernel-old.h \
197 macros.h \
198 time.h \
199 uri.h \
200 utils.h
1c39da61 201
e358ddd5 202noinst_PROGRAMS = filter-grammar-test
740da7d5 203filter_grammar_test_SOURCES = filter-grammar-test.cpp
93903fd5 204filter_grammar_test_LDADD = libcommon-gpl.la
e358ddd5 205
c49fc5e4
JR
206all-local:
207 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
208 for script in $(EXTRA_DIST); do \
209 cp -f $(srcdir)/$$script $(builddir); \
210 done; \
211 fi
212
213clean-local:
214 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
215 for script in $(EXTRA_DIST); do \
216 rm -f $(builddir)/$$script; \
217 done; \
218 fi
This page took 0.064963 seconds and 4 git commands to generate.