b90b8854c64f6a9cf80f488e9943b7b336d875d1
[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/group.c \
39 actions/notify.c \
40 actions/rotate-session.c \
41 actions/snapshot-session.c \
42 actions/start-session.c \
43 actions/stop-session.c \
44 actions/rate-policy.c \
45 buffer-view.h buffer-view.c \
46 common.h \
47 conditions/buffer-usage.c \
48 conditions/condition.c \
49 conditions/on-event.c \
50 conditions/session-consumed-size.c \
51 conditions/session-rotation.c \
52 context.c context.h \
53 credentials.c credentials.h \
54 daemonize.c daemonize.h \
55 defaults.c \
56 domain.c \
57 dynamic-array.c dynamic-array.h \
58 dynamic-buffer.c dynamic-buffer.h \
59 endpoint.c \
60 error.c error.h \
61 evaluation.c \
62 event.c \
63 event-expr-to-bytecode.c event-expr-to-bytecode.h \
64 event-field-value.c \
65 event-rule/event-rule.c \
66 event-rule/kernel-probe.c \
67 event-rule/syscall.c \
68 event-rule/userspace-probe.c \
69 event-rule/tracepoint.c \
70 filter.c filter.h \
71 fd-handle.c fd-handle.h \
72 fs-handle.c fs-handle.h fs-handle-internal.h \
73 futex.c futex.h \
74 kernel-probe.c \
75 index-allocator.c index-allocator.h \
76 location.c \
77 log-level-rule.c \
78 mi-lttng.c mi-lttng.h \
79 notification.c \
80 optional.h \
81 payload.c payload.h \
82 payload-view.c payload-view.h \
83 pipe.c pipe.h \
84 readwrite.c readwrite.h \
85 runas.c runas.h \
86 shm.c shm.h \
87 session-descriptor.c \
88 snapshot.c snapshot.h \
89 spawn-viewer.c spawn-viewer.h \
90 time.c \
91 trace-chunk.c trace-chunk.h \
92 trace-chunk-registry.h \
93 trigger.c \
94 unix.c unix.h \
95 uri.c uri.h \
96 userspace-probe.c \
97 utils.c utils.h \
98 uuid.c uuid.h \
99 thread.c thread.h \
100 tracker.c tracker.h \
101 waiter.c waiter.h
102
103 if HAVE_ELF_H
104 libcommon_la_SOURCES += \
105 lttng-elf.c lttng-elf.h
106 endif
107
108 libcommon_la_LIBADD = \
109 $(top_builddir)/src/common/bytecode/libbytecode.la \
110 $(top_builddir)/src/common/config/libconfig.la \
111 $(top_builddir)/src/common/compat/libcompat.la \
112 $(top_builddir)/src/common/hashtable/libhashtable.la \
113 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
114 $(top_builddir)/src/common/filter/libfilter.la \
115 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
116
117 if BUILD_LIB_COMPAT
118 SUBDIRS += compat
119 endif
120
121 if BUILD_LIB_HEALTH
122 SUBDIRS += health
123 endif
124
125 if BUILD_LIB_HASHTABLE
126 SUBDIRS += hashtable
127 endif
128
129 if BUILD_LIB_KERNEL_CTL
130 SUBDIRS += kernel-ctl
131 endif
132
133 if BUILD_LIB_SESSIOND_COMM
134 SUBDIRS += sessiond-comm
135 endif
136
137 if BUILD_LIB_RELAYD
138 SUBDIRS += relayd
139 endif
140
141 if BUILD_LIB_FD_TRACKER
142 SUBDIRS += fd-tracker
143 endif
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_CONFIG
162 SUBDIRS += config
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 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.032961 seconds and 4 git commands to generate.