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