Introduce lttng_event_rule_jul_logging
[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/jul-logging.c \
75 filter.c filter.h \
76 fd-handle.c fd-handle.h \
77 fs-handle.c fs-handle.h fs-handle-internal.h \
78 futex.c futex.h \
79 kernel-probe.c \
80 index-allocator.c index-allocator.h \
81 location.c \
82 log-level-rule.c \
83 mi-lttng.c mi-lttng.h \
84 notification.c \
85 optional.h \
86 payload.c payload.h \
87 payload-view.c payload-view.h \
88 pipe.c pipe.h \
89 readwrite.c readwrite.h \
90 runas.c runas.h \
91 shm.c shm.h \
92 session-descriptor.c \
93 snapshot.c snapshot.h \
94 spawn-viewer.c spawn-viewer.h \
95 time.c \
96 trace-chunk.c trace-chunk.h \
97 trace-chunk-registry.h \
98 trigger.c \
99 unix.c unix.h \
100 uri.c uri.h \
101 userspace-probe.c \
102 utils.c utils.h \
103 uuid.c uuid.h \
104 thread.c thread.h \
105 tracker.c tracker.h \
106 waiter.c waiter.h
107
108 if HAVE_ELF_H
109 libcommon_la_SOURCES += \
110 lttng-elf.c lttng-elf.h
111 endif
112
113 libcommon_la_LIBADD = \
114 $(top_builddir)/src/common/bytecode/libbytecode.la \
115 $(top_builddir)/src/common/config/libconfig.la \
116 $(top_builddir)/src/common/compat/libcompat.la \
117 $(top_builddir)/src/common/hashtable/libhashtable.la \
118 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
119 $(top_builddir)/src/common/filter/libfilter.la \
120 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
121
122 if BUILD_LIB_COMPAT
123 SUBDIRS += compat
124 endif
125
126 if BUILD_LIB_HEALTH
127 SUBDIRS += health
128 endif
129
130 if BUILD_LIB_HASHTABLE
131 SUBDIRS += hashtable
132 endif
133
134 if BUILD_LIB_KERNEL_CTL
135 SUBDIRS += kernel-ctl
136 endif
137
138 if BUILD_LIB_SESSIOND_COMM
139 SUBDIRS += sessiond-comm
140 endif
141
142 if BUILD_LIB_RELAYD
143 SUBDIRS += relayd
144 endif
145
146 if BUILD_LIB_FD_TRACKER
147 SUBDIRS += fd-tracker
148 endif
149
150 if BUILD_LIB_KERNEL_CONSUMER
151 SUBDIRS += kernel-consumer
152 endif
153
154 if BUILD_LIB_UST_CONSUMER
155 SUBDIRS += ust-consumer
156 endif
157
158 if BUILD_LIB_TESTPOINT
159 SUBDIRS += testpoint
160 endif
161
162 if BUILD_LIB_INDEX
163 SUBDIRS += index
164 endif
165
166 if BUILD_LIB_CONFIG
167 SUBDIRS += config
168 endif
169
170 if BUILD_LIB_CONSUMER
171 SUBDIRS += consumer
172 endif
173
174 noinst_HEADERS = \
175 align.h \
176 bug.h \
177 defaults.h \
178 error.h \
179 futex.h \
180 lttng-kernel.h \
181 lttng-kernel-old.h \
182 macros.h \
183 time.h \
184 uri.h \
185 utils.h
186
187 noinst_PROGRAMS = filter-grammar-test
188 filter_grammar_test_SOURCES = filter-grammar-test.c
189 filter_grammar_test_LDADD = \
190 libcommon.la
191
192 all-local:
193 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
194 for script in $(EXTRA_DIST); do \
195 cp -f $(srcdir)/$$script $(builddir); \
196 done; \
197 fi
198
199 clean-local:
200 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
201 for script in $(EXTRA_DIST); do \
202 rm -f $(builddir)/$$script; \
203 done; \
204 fi
This page took 0.033728 seconds and 5 git commands to generate.