common: Add index allocator for error counters
[lttng-tools.git] / src / common / Makefile.am
... / ...
CommitLineData
1# SPDX-License-Identifier: GPL-2.0-only
2
3AUTOMAKE_OPTIONS = subdir-objects
4
5SUBDIRS = \
6 string-utils \
7 bytecode \
8 filter \
9 argpar
10
11# Make sure to always distribute all folders
12# since SUBDIRS is decided at configure time.
13DIST_SUBDIRS = \
14 compat \
15 health \
16 hashtable \
17 kernel-ctl \
18 sessiond-comm \
19 relayd \
20 kernel-consumer \
21 ust-consumer \
22 testpoint \
23 index \
24 config \
25 consumer \
26 string-utils \
27 fd-tracker \
28 bytecode \
29 filter \
30 argpar
31
32# Common library
33noinst_LTLIBRARIES = libcommon.la
34EXTRA_DIST = mi-lttng-4.0.xsd
35
36libcommon_la_SOURCES = \
37 actions/action.c \
38 actions/group.c \
39 actions/notify.c \
40 actions/rotate-session.c \
41 actions/snapshot-session.c \
42 actions/start-session.c \
43 actions/stop-session.c \
44 buffer-view.h buffer-view.c \
45 common.h \
46 conditions/buffer-usage.c \
47 conditions/condition.c \
48 conditions/on-event.c \
49 conditions/session-consumed-size.c \
50 conditions/session-rotation.c \
51 context.c context.h \
52 credentials.c credentials.h \
53 daemonize.c daemonize.h \
54 defaults.c \
55 domain.c \
56 dynamic-array.c dynamic-array.h \
57 dynamic-buffer.c dynamic-buffer.h \
58 endpoint.c \
59 error.c error.h \
60 evaluation.c \
61 event.c \
62 event-expr-to-bytecode.c event-expr-to-bytecode.h \
63 event-field-value.c \
64 event-rule/event-rule.c \
65 event-rule/kernel-probe.c \
66 event-rule/syscall.c \
67 event-rule/userspace-probe.c \
68 event-rule/tracepoint.c \
69 filter.c filter.h \
70 fd-handle.c fd-handle.h \
71 fs-handle.c fs-handle.h fs-handle-internal.h \
72 futex.c futex.h \
73 kernel-probe.c \
74 index-allocator.c index-allocator.h \
75 location.c \
76 log-level-rule.c \
77 mi-lttng.c mi-lttng.h \
78 notification.c \
79 optional.h \
80 payload.c payload.h \
81 payload-view.c payload-view.h \
82 pipe.c pipe.h \
83 readwrite.c readwrite.h \
84 runas.c runas.h \
85 session-descriptor.c \
86 snapshot.c snapshot.h \
87 spawn-viewer.c spawn-viewer.h \
88 time.c \
89 trace-chunk.c trace-chunk.h \
90 trace-chunk-registry.h \
91 trigger.c \
92 unix.c unix.h \
93 uri.c uri.h \
94 userspace-probe.c \
95 utils.c utils.h \
96 uuid.c uuid.h \
97 thread.c thread.h \
98 tracker.c tracker.h \
99 waiter.c waiter.h
100
101if HAVE_ELF_H
102libcommon_la_SOURCES += \
103 lttng-elf.c lttng-elf.h
104endif
105
106libcommon_la_LIBADD = \
107 $(top_builddir)/src/common/bytecode/libbytecode.la \
108 $(top_builddir)/src/common/config/libconfig.la \
109 $(top_builddir)/src/common/compat/libcompat.la \
110 $(top_builddir)/src/common/hashtable/libhashtable.la \
111 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
112 $(top_builddir)/src/common/filter/libfilter.la \
113 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
114
115if BUILD_LIB_COMPAT
116SUBDIRS += compat
117endif
118
119if BUILD_LIB_HEALTH
120SUBDIRS += health
121endif
122
123if BUILD_LIB_HASHTABLE
124SUBDIRS += hashtable
125endif
126
127if BUILD_LIB_KERNEL_CTL
128SUBDIRS += kernel-ctl
129endif
130
131if BUILD_LIB_SESSIOND_COMM
132SUBDIRS += sessiond-comm
133endif
134
135if BUILD_LIB_RELAYD
136SUBDIRS += relayd
137endif
138
139if BUILD_LIB_FD_TRACKER
140SUBDIRS += fd-tracker
141endif
142
143if BUILD_LIB_KERNEL_CONSUMER
144SUBDIRS += kernel-consumer
145endif
146
147if BUILD_LIB_UST_CONSUMER
148SUBDIRS += ust-consumer
149endif
150
151if BUILD_LIB_TESTPOINT
152SUBDIRS += testpoint
153endif
154
155if BUILD_LIB_INDEX
156SUBDIRS += index
157endif
158
159if BUILD_LIB_CONFIG
160SUBDIRS += config
161endif
162
163if BUILD_LIB_CONSUMER
164SUBDIRS += consumer
165endif
166
167noinst_HEADERS = \
168 align.h \
169 bug.h \
170 defaults.h \
171 error.h \
172 futex.h \
173 lttng-kernel.h \
174 lttng-kernel-old.h \
175 macros.h \
176 time.h \
177 uri.h \
178 utils.h
179
180all-local:
181 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
182 for script in $(EXTRA_DIST); do \
183 cp -f $(srcdir)/$$script $(builddir); \
184 done; \
185 fi
186
187clean-local:
188 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
189 for script in $(EXTRA_DIST); do \
190 rm -f $(builddir)/$$script; \
191 done; \
192 fi
This page took 0.022782 seconds and 4 git commands to generate.