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