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