d95d84d1d33b86f9753caab3cc222e0800cbaeab
[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 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.
13 DIST_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
33 noinst_LTLIBRARIES = libcommon.la
34 EXTRA_DIST = mi-lttng-4.0.xsd
35
36 libcommon_la_SOURCES = \
37 actions/action.c \
38 actions/list.c \
39 actions/notify.c \
40 actions/path.c \
41 actions/rotate-session.c \
42 actions/snapshot-session.c \
43 actions/start-session.c \
44 actions/stop-session.c \
45 actions/rate-policy.c \
46 buffer-view.h buffer-view.c \
47 common.h \
48 conditions/buffer-usage.c \
49 conditions/condition.c \
50 conditions/event-rule-matches.c \
51 conditions/session-consumed-size.c \
52 conditions/session-rotation.c \
53 context.c context.h \
54 credentials.c credentials.h \
55 daemonize.c daemonize.h \
56 defaults.c \
57 domain.c \
58 dynamic-array.c dynamic-array.h \
59 dynamic-buffer.c dynamic-buffer.h \
60 endpoint.c \
61 error.c error.h \
62 error-query.c \
63 evaluation.c \
64 event.c \
65 event-expr-to-bytecode.c event-expr-to-bytecode.h \
66 event-field-value.c \
67 event-rule/event-rule.c \
68 event-rule/kernel-kprobe.c \
69 event-rule/kernel-syscall.c \
70 event-rule/kernel-uprobe.c \
71 event-rule/tracepoint.c \
72 event-rule/kernel-tracepoint.c \
73 event-rule/user-tracepoint.c \
74 event-rule/log4j-logging.c \
75 event-rule/jul-logging.c \
76 event-rule/python-logging.c \
77 filter.c filter.h \
78 fd-handle.c fd-handle.h \
79 fs-handle.c fs-handle.h fs-handle-internal.h \
80 futex.c futex.h \
81 kernel-probe.c \
82 index-allocator.c index-allocator.h \
83 location.c \
84 log-level-rule.c \
85 mi-lttng.c mi-lttng.h \
86 notification.c \
87 optional.h \
88 payload.c payload.h \
89 payload-view.c payload-view.h \
90 pipe.c pipe.h \
91 readwrite.c readwrite.h \
92 runas.c runas.h \
93 shm.c shm.h \
94 session-descriptor.c \
95 snapshot.c snapshot.h \
96 spawn-viewer.c spawn-viewer.h \
97 time.c \
98 trace-chunk.c trace-chunk.h \
99 trace-chunk-registry.h \
100 trigger.c \
101 unix.c unix.h \
102 uri.c uri.h \
103 userspace-probe.c \
104 utils.c utils.h \
105 uuid.c uuid.h \
106 thread.c thread.h \
107 tracker.c tracker.h \
108 waiter.c waiter.h
109
110 if HAVE_ELF_H
111 libcommon_la_SOURCES += \
112 lttng-elf.c lttng-elf.h
113 endif
114
115 libcommon_la_LIBADD = \
116 $(top_builddir)/src/common/bytecode/libbytecode.la \
117 $(top_builddir)/src/common/config/libconfig.la \
118 $(top_builddir)/src/common/compat/libcompat.la \
119 $(top_builddir)/src/common/hashtable/libhashtable.la \
120 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
121 $(top_builddir)/src/common/filter/libfilter.la \
122 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
123
124 if BUILD_LIB_COMPAT
125 SUBDIRS += compat
126 endif
127
128 if BUILD_LIB_HEALTH
129 SUBDIRS += health
130 endif
131
132 if BUILD_LIB_HASHTABLE
133 SUBDIRS += hashtable
134 endif
135
136 if BUILD_LIB_KERNEL_CTL
137 SUBDIRS += kernel-ctl
138 endif
139
140 if BUILD_LIB_SESSIOND_COMM
141 SUBDIRS += sessiond-comm
142 endif
143
144 if BUILD_LIB_RELAYD
145 SUBDIRS += relayd
146 endif
147
148 if BUILD_LIB_FD_TRACKER
149 SUBDIRS += fd-tracker
150 endif
151
152 if BUILD_LIB_KERNEL_CONSUMER
153 SUBDIRS += kernel-consumer
154 endif
155
156 if BUILD_LIB_UST_CONSUMER
157 SUBDIRS += ust-consumer
158 endif
159
160 if BUILD_LIB_TESTPOINT
161 SUBDIRS += testpoint
162 endif
163
164 if BUILD_LIB_INDEX
165 SUBDIRS += index
166 endif
167
168 if BUILD_LIB_CONFIG
169 SUBDIRS += config
170 endif
171
172 if BUILD_LIB_CONSUMER
173 SUBDIRS += consumer
174 endif
175
176 noinst_HEADERS = \
177 align.h \
178 bug.h \
179 defaults.h \
180 error.h \
181 futex.h \
182 lttng-kernel.h \
183 lttng-kernel-old.h \
184 macros.h \
185 time.h \
186 uri.h \
187 utils.h
188
189 noinst_PROGRAMS = filter-grammar-test
190 filter_grammar_test_SOURCES = filter-grammar-test.c
191 filter_grammar_test_LDADD = \
192 libcommon.la
193
194 all-local:
195 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
196 for script in $(EXTRA_DIST); do \
197 cp -f $(srcdir)/$$script $(builddir); \
198 done; \
199 fi
200
201 clean-local:
202 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
203 for script in $(EXTRA_DIST); do \
204 rm -f $(builddir)/$$script; \
205 done; \
206 fi
This page took 0.033254 seconds and 3 git commands to generate.