Fix: conversion from KB to bytes overflow on arm32
[lttng-tools.git] / src / common / Makefile.am
... / ...
CommitLineData
1# SPDX-License-Identifier: GPL-2.0-only
2
3AUTOMAKE_OPTIONS = subdir-objects
4
5SUBDIRS = \
6 argpar \
7 bytecode \
8 compat \
9 config \
10 fd-tracker \
11 string-utils \
12 filter \
13 hashtable \
14 argpar-utils
15
16# Make sure to always distribute all folders
17# since SUBDIRS is decided at configure time.
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 \
32 fd-tracker \
33 bytecode \
34 filter \
35 argpar \
36 argpar-utils
37
38# Common library
39noinst_LTLIBRARIES = libpath.la libcommon-lgpl.la libcommon-gpl.la
40EXTRA_DIST = mi-lttng-4.1.xsd
41
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 = \
47 actions/action.c \
48 actions/list.c \
49 actions/notify.c \
50 actions/path.c \
51 actions/rotate-session.c \
52 actions/snapshot-session.c \
53 actions/start-session.c \
54 actions/stop-session.c \
55 actions/rate-policy.c \
56 buffer-view.h buffer-view.c \
57 conditions/buffer-usage.c \
58 conditions/condition.c \
59 conditions/event-rule-matches.c \
60 conditions/session-consumed-size.c \
61 conditions/session-rotation.c \
62 credentials.c credentials.h \
63 defaults.c \
64 domain.c \
65 dynamic-array.c dynamic-array.h \
66 dynamic-buffer.c dynamic-buffer.h \
67 endpoint.c \
68 error.c error.h \
69 error-query.c \
70 evaluation.c \
71 event-expr/event-expr.c \
72 event-field-value.c \
73 event-rule/event-rule.c \
74 event-rule/kernel-kprobe.c \
75 event-rule/kernel-syscall.c \
76 event-rule/kernel-uprobe.c \
77 event-rule/kernel-tracepoint.c \
78 event-rule/user-tracepoint.c \
79 event-rule/log4j-logging.c \
80 event-rule/jul-logging.c \
81 event-rule/python-logging.c \
82 fd-handle.c fd-handle.h \
83 kernel-probe.c \
84 location.c \
85 log-level-rule.c \
86 mi-lttng.c mi-lttng.h \
87 notification.c \
88 payload.c payload.h \
89 payload-view.c payload-view.h \
90 readwrite.c readwrite.h \
91 runas.c runas.h \
92 session-descriptor.c \
93 snapshot.c snapshot.h \
94 spawn-viewer.c spawn-viewer.h \
95 thread.c thread.h \
96 time.c \
97 tracker.c tracker.h \
98 trigger.c \
99 unix.c unix.h \
100 uri.c uri.h \
101 userspace-probe.c \
102 utils.c utils.h
103
104if HAVE_ELF_H
105libcommon_lgpl_la_SOURCES += \
106 lttng-elf.c lttng-elf.h
107endif
108
109libcommon_lgpl_la_LIBADD = \
110 $(top_builddir)/src/common/bytecode/libbytecode.la \
111 $(top_builddir)/src/common/compat/libcompat.la \
112 $(top_builddir)/src/common/config/libconfig.la \
113 $(top_builddir)/src/common/filter/libfilter.la \
114 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la \
115 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
116
117# The libpath static archive contains GPLv2 compatible code. It is
118# meant to be used by GPL executables.
119
120libpath_la_SOURCES = \
121 path.c path.h
122
123# The libcommon-gpl static archive contains GPLv2 compatible code. It is
124# meant to be used by GPL executables.
125
126libcommon_gpl_la_SOURCES = \
127 common.h \
128 context.c context.h \
129 daemonize.c daemonize.h \
130 event.c \
131 filter.c filter.h \
132 fs-handle.c fs-handle.h fs-handle-internal.h \
133 futex.c futex.h \
134 index-allocator.c index-allocator.h \
135 optional.h \
136 pipe.c pipe.h \
137 shm.c shm.h \
138 trace-chunk.c trace-chunk.h \
139 trace-chunk-registry.h \
140 uuid.c uuid.h \
141 waiter.c waiter.h
142
143libcommon_gpl_la_LIBADD = \
144 libcommon-lgpl.la \
145 libpath.la \
146 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
147 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
148
149if BUILD_LIB_HEALTH
150SUBDIRS += health
151endif
152
153if BUILD_LIB_KERNEL_CTL
154SUBDIRS += kernel-ctl
155endif
156
157if BUILD_LIB_SESSIOND_COMM
158SUBDIRS += sessiond-comm
159endif
160
161if BUILD_LIB_RELAYD
162SUBDIRS += relayd
163endif
164
165
166if BUILD_LIB_KERNEL_CONSUMER
167SUBDIRS += kernel-consumer
168endif
169
170if BUILD_LIB_UST_CONSUMER
171SUBDIRS += ust-consumer
172endif
173
174if BUILD_LIB_TESTPOINT
175SUBDIRS += testpoint
176endif
177
178if BUILD_LIB_INDEX
179SUBDIRS += index
180endif
181
182if BUILD_LIB_CONSUMER
183SUBDIRS += consumer
184endif
185
186noinst_HEADERS = \
187 align.h \
188 bug.h \
189 defaults.h \
190 error.h \
191 futex.h \
192 lttng-kernel.h \
193 lttng-kernel-old.h \
194 macros.h \
195 time.h \
196 uri.h \
197 utils.h
198
199noinst_PROGRAMS = filter-grammar-test
200filter_grammar_test_SOURCES = filter-grammar-test.c
201filter_grammar_test_LDADD = libcommon-gpl.la
202
203all-local:
204 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
205 for script in $(EXTRA_DIST); do \
206 cp -f $(srcdir)/$$script $(builddir); \
207 done; \
208 fi
209
210clean-local:
211 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
212 for script in $(EXTRA_DIST); do \
213 rm -f $(builddir)/$$script; \
214 done; \
215 fi
This page took 0.023316 seconds and 4 git commands to generate.