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