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