common: move utils_create_lock_file to its own file
[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 = \
516cffda 6 argpar \
0ae3cfc6 7 bytecode \
516cffda
JR
8 compat \
9 config \
10 fd-tracker \
11 string-utils \
e2fb96d8 12 filter \
ea76a8bb
SM
13 hashtable \
14 argpar-utils
87fb9fc0
JR
15
16# Make sure to always distribute all folders
17# since SUBDIRS is decided at configure time.
28b6dfc8
SM
18DIST_SUBDIRS = \
19 compat \
20 health \
21 hashtable \
22 kernel-ctl \
23 sessiond-comm \
24 relayd \
25 kernel-consumer \
26 ust-consumer \
27 testpoint \
28 index \
29 config \
30 consumer \
31 string-utils \
e4d2f27a 32 fd-tracker \
0ae3cfc6 33 bytecode \
e2fb96d8 34 filter \
ea76a8bb
SM
35 argpar \
36 argpar-utils
e2fb96d8 37
b3f35e02 38# Common library
4b082b12 39noinst_LTLIBRARIES = libpath.la libcommon-lgpl.la libcommon-gpl.la
ebc5e6b0 40EXTRA_DIST = mi-lttng-4.1.xsd
b3f35e02 41
a878d961
MD
42# The libcommon-lgpl static archive contains only LGPLv2.1 code. It is
43# meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also
44# contains libcommon-lgpl.la.
45
46libcommon_lgpl_la_SOURCES = \
03bb2358 47 actions/action.c \
ad63a966 48 actions/list.c \
03bb2358 49 actions/notify.c \
482b3452 50 actions/path.c \
bfb2ec6a 51 actions/rotate-session.c \
757c48a2 52 actions/snapshot-session.c \
58397d0d 53 actions/start-session.c \
931bdbaa 54 actions/stop-session.c \
7f4d5b07 55 actions/rate-policy.c \
28b6dfc8 56 buffer-view.h buffer-view.c \
714363d3 57 channel.c \
ae20d1bd
JR
58 conditions/buffer-usage.c \
59 conditions/condition.c \
670a26e4 60 conditions/event-rule-matches.c \
ae20d1bd
JR
61 conditions/session-consumed-size.c \
62 conditions/session-rotation.c \
894e6e1c 63 credentials.c credentials.h \
28b6dfc8 64 defaults.c \
c0374092 65 domain.c \
28b6dfc8
SM
66 dynamic-array.c dynamic-array.h \
67 dynamic-buffer.c dynamic-buffer.h \
68 endpoint.c \
69 error.c error.h \
b99a0cb3 70 error-query.c \
28b6dfc8 71 evaluation.c \
2eeda823 72 event.c \
a303e333 73 event-expr/event-expr.c \
d28fcdec 74 event-field-value.c \
7a3dcaf6 75 event-rule/event-rule.c \
d84633c4 76 event-rule/kernel-kprobe.c \
213efb0c 77 event-rule/kernel-syscall.c \
e60e9a9a 78 event-rule/kernel-uprobe.c \
b25b2570 79 event-rule/kernel-tracepoint.c \
cc66eccf 80 event-rule/user-tracepoint.c \
08662c9b 81 event-rule/log4j-logging.c \
d440991b 82 event-rule/jul-logging.c \
f30f4bf4 83 event-rule/python-logging.c \
dd1bac00 84 fd-handle.c fd-handle.h \
808cb744 85 kernel-probe.c \
28b6dfc8 86 location.c \
f9431861 87 lockfile.c lockfile.h \
85b05318 88 log-level-rule.c \
28b6dfc8
SM
89 mi-lttng.c mi-lttng.h \
90 notification.c \
9e620ea7
JG
91 payload.c payload.h \
92 payload-view.c payload-view.h \
bff8215a 93 random.c random.h \
28b6dfc8
SM
94 readwrite.c readwrite.h \
95 runas.c runas.h \
28b6dfc8 96 session-descriptor.c \
b30fa191 97 snapshot.c snapshot.h \
dd392e94 98 spawn-viewer.c spawn-viewer.h \
a878d961 99 thread.c thread.h \
28b6dfc8 100 time.c \
a878d961 101 tracker.c tracker.h \
28b6dfc8
SM
102 trigger.c \
103 unix.c unix.h \
104 uri.c uri.h \
105 userspace-probe.c \
a878d961 106 utils.c utils.h
b3f35e02 107
b1b34226 108if HAVE_ELF_H
a878d961 109libcommon_lgpl_la_SOURCES += \
28b6dfc8 110 lttng-elf.c lttng-elf.h
b1b34226
MJ
111endif
112
a878d961 113libcommon_lgpl_la_LIBADD = \
0ae3cfc6 114 $(top_builddir)/src/common/bytecode/libbytecode.la \
28b6dfc8 115 $(top_builddir)/src/common/compat/libcompat.la \
a878d961 116 $(top_builddir)/src/common/config/libconfig.la \
116a02e3 117 $(top_builddir)/src/common/filter/libfilter.la \
a878d961 118 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la \
116a02e3 119 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
b3f35e02 120
4b082b12
MD
121# The libpath static archive contains GPLv2 compatible code. It is
122# meant to be used by GPL executables.
123
124libpath_la_SOURCES = \
125 path.c path.h
126
a878d961
MD
127# The libcommon-gpl static archive contains GPLv2 compatible code. It is
128# meant to be used by GPL executables.
129
130libcommon_gpl_la_SOURCES = \
131 common.h \
132 context.c context.h \
133 daemonize.c daemonize.h \
a878d961
MD
134 filter.c filter.h \
135 fs-handle.c fs-handle.h fs-handle-internal.h \
136 futex.c futex.h \
137 index-allocator.c index-allocator.h \
138 optional.h \
139 pipe.c pipe.h \
140 shm.c shm.h \
141 trace-chunk.c trace-chunk.h \
142 trace-chunk-registry.h \
143 uuid.c uuid.h \
144 waiter.c waiter.h
145
146libcommon_gpl_la_LIBADD = \
147 libcommon-lgpl.la \
4b082b12 148 libpath.la \
a878d961
MD
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
f78de773
JG
202noinst_PROGRAMS = filter-grammar-test
203filter_grammar_test_SOURCES = filter-grammar-test.c
a878d961 204filter_grammar_test_LDADD = libcommon-gpl.la
f78de773 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.072035 seconds and 4 git commands to generate.