Cleanup: Move `create_posix_shm()` to common/shm.c
[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 buffer-view.h buffer-view.c \
45 common.h \
46 conditions/buffer-usage.c \
47 conditions/condition.c \
48 conditions/on-event.c \
49 conditions/session-consumed-size.c \
50 conditions/session-rotation.c \
51 context.c context.h \
52 credentials.c credentials.h \
53 daemonize.c daemonize.h \
54 defaults.c \
55 domain.c \
56 dynamic-array.c dynamic-array.h \
57 dynamic-buffer.c dynamic-buffer.h \
58 endpoint.c \
59 error.c error.h \
60 evaluation.c \
61 event.c \
62 event-expr-to-bytecode.c event-expr-to-bytecode.h \
63 event-field-value.c \
64 event-rule/event-rule.c \
65 event-rule/kernel-probe.c \
66 event-rule/syscall.c \
67 event-rule/userspace-probe.c \
68 event-rule/tracepoint.c \
69 filter.c filter.h \
70 fd-handle.c fd-handle.h \
71 fs-handle.c fs-handle.h fs-handle-internal.h \
72 futex.c futex.h \
73 kernel-probe.c \
74 index-allocator.c index-allocator.h \
75 location.c \
76 log-level-rule.c \
77 mi-lttng.c mi-lttng.h \
78 notification.c \
79 optional.h \
80 payload.c payload.h \
81 payload-view.c payload-view.h \
82 pipe.c pipe.h \
83 readwrite.c readwrite.h \
84 runas.c runas.h \
85 shm.c shm.h \
86 session-descriptor.c \
87 snapshot.c snapshot.h \
88 spawn-viewer.c spawn-viewer.h \
89 time.c \
90 trace-chunk.c trace-chunk.h \
91 trace-chunk-registry.h \
92 trigger.c \
93 unix.c unix.h \
94 uri.c uri.h \
95 userspace-probe.c \
96 utils.c utils.h \
97 uuid.c uuid.h \
98 thread.c thread.h \
99 tracker.c tracker.h \
100 waiter.c waiter.h
101
102 if HAVE_ELF_H
103 libcommon_la_SOURCES += \
104 lttng-elf.c lttng-elf.h
105 endif
106
107 libcommon_la_LIBADD = \
108 $(top_builddir)/src/common/bytecode/libbytecode.la \
109 $(top_builddir)/src/common/config/libconfig.la \
110 $(top_builddir)/src/common/compat/libcompat.la \
111 $(top_builddir)/src/common/hashtable/libhashtable.la \
112 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
113 $(top_builddir)/src/common/filter/libfilter.la \
114 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
115
116 if BUILD_LIB_COMPAT
117 SUBDIRS += compat
118 endif
119
120 if BUILD_LIB_HEALTH
121 SUBDIRS += health
122 endif
123
124 if BUILD_LIB_HASHTABLE
125 SUBDIRS += hashtable
126 endif
127
128 if BUILD_LIB_KERNEL_CTL
129 SUBDIRS += kernel-ctl
130 endif
131
132 if BUILD_LIB_SESSIOND_COMM
133 SUBDIRS += sessiond-comm
134 endif
135
136 if BUILD_LIB_RELAYD
137 SUBDIRS += relayd
138 endif
139
140 if BUILD_LIB_FD_TRACKER
141 SUBDIRS += fd-tracker
142 endif
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_CONFIG
161 SUBDIRS += config
162 endif
163
164 if BUILD_LIB_CONSUMER
165 SUBDIRS += consumer
166 endif
167
168 noinst_HEADERS = \
169 align.h \
170 bug.h \
171 defaults.h \
172 error.h \
173 futex.h \
174 lttng-kernel.h \
175 lttng-kernel-old.h \
176 macros.h \
177 time.h \
178 uri.h \
179 utils.h
180
181 all-local:
182 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
183 for script in $(EXTRA_DIST); do \
184 cp -f $(srcdir)/$$script $(builddir); \
185 done; \
186 fi
187
188 clean-local:
189 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
190 for script in $(EXTRA_DIST); do \
191 rm -f $(builddir)/$$script; \
192 done; \
193 fi
This page took 0.045914 seconds and 4 git commands to generate.