common: add lttng_dynamic_array_set_count()
[lttng-tools.git] / src / common / Makefile.am
CommitLineData
ab5be9fa
MJ
1# SPDX-License-Identifier: GPL-2.0-only
2
26821431
MD
3AUTOMAKE_OPTIONS = subdir-objects
4
9c55c241 5SUBDIRS = string-utils
87fb9fc0
JR
6
7# Make sure to always distribute all folders
8# since SUBDIRS is decided at configure time.
28b6dfc8
SM
9DIST_SUBDIRS = \
10 compat \
11 health \
12 hashtable \
13 kernel-ctl \
14 sessiond-comm \
15 relayd \
16 kernel-consumer \
17 ust-consumer \
18 testpoint \
19 index \
20 config \
21 consumer \
22 string-utils \
23 fd-tracker
24
b3f35e02
FD
25# Common library
26noinst_LTLIBRARIES = libcommon.la
01fac814 27EXTRA_DIST = mi-lttng-4.0.xsd
b3f35e02 28
28b6dfc8 29libcommon_la_SOURCES = \
03bb2358 30 actions/action.c \
0c51e8f3 31 actions/group.c \
03bb2358 32 actions/notify.c \
bfb2ec6a 33 actions/rotate-session.c \
757c48a2 34 actions/snapshot-session.c \
58397d0d 35 actions/start-session.c \
931bdbaa 36 actions/stop-session.c \
28b6dfc8
SM
37 buffer-usage.c \
38 buffer-view.h buffer-view.c \
39 common.h \
40 condition.c \
41 context.c context.h \
42 credentials.h \
43 daemonize.c daemonize.h \
44 defaults.c \
45 dynamic-array.c dynamic-array.h \
46 dynamic-buffer.c dynamic-buffer.h \
47 endpoint.c \
48 error.c error.h \
49 evaluation.c \
50 event.c \
51 filter.c filter.h \
75e36e37 52 fs-handle.c fs-handle.h fs-handle-internal.h \
28b6dfc8
SM
53 futex.c futex.h \
54 location.c \
55 mi-lttng.c mi-lttng.h \
56 notification.c \
28b6dfc8
SM
57 optional.h \
58 pipe.c pipe.h \
59 readwrite.c readwrite.h \
60 runas.c runas.h \
61 session-consumed-size.c \
62 session-descriptor.c \
63 session-rotation.c \
b30fa191 64 snapshot.c snapshot.h \
dd392e94 65 spawn-viewer.c spawn-viewer.h \
28b6dfc8
SM
66 time.c \
67 trace-chunk.c trace-chunk.h \
68 trace-chunk-registry.h \
69 trigger.c \
70 unix.c unix.h \
71 uri.c uri.h \
72 userspace-probe.c \
73 utils.c utils.h \
74 uuid.c uuid.h \
159b042f 75 tracker.c tracker.h \
75e36e37 76 waiter.c waiter.h
b3f35e02 77
b1b34226 78if HAVE_ELF_H
28b6dfc8
SM
79libcommon_la_SOURCES += \
80 lttng-elf.c lttng-elf.h
b1b34226
MJ
81endif
82
b3f35e02 83libcommon_la_LIBADD = \
28b6dfc8
SM
84 $(top_builddir)/src/common/config/libconfig.la \
85 $(top_builddir)/src/common/compat/libcompat.la \
8bb66c3c
JG
86 $(top_builddir)/src/common/hashtable/libhashtable.la \
87 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
b3f35e02 88
87fb9fc0
JR
89if BUILD_LIB_COMPAT
90SUBDIRS += compat
91endif
92
93if BUILD_LIB_HEALTH
94SUBDIRS += health
95endif
96
97if BUILD_LIB_HASHTABLE
98SUBDIRS += hashtable
99endif
100
101if BUILD_LIB_KERNEL_CTL
102SUBDIRS += kernel-ctl
103endif
104
105if BUILD_LIB_SESSIOND_COMM
106SUBDIRS += sessiond-comm
107endif
108
109if BUILD_LIB_RELAYD
aa360a35
JG
110SUBDIRS += relayd
111endif
112
113if BUILD_LIB_FD_TRACKER
114SUBDIRS += fd-tracker
87fb9fc0
JR
115endif
116
117if BUILD_LIB_KERNEL_CONSUMER
118SUBDIRS += kernel-consumer
119endif
120
121if BUILD_LIB_UST_CONSUMER
122SUBDIRS += ust-consumer
123endif
124
125if BUILD_LIB_TESTPOINT
126SUBDIRS += testpoint
127endif
128
129if BUILD_LIB_INDEX
130SUBDIRS += index
131endif
132
133if BUILD_LIB_CONFIG
134SUBDIRS += config
135endif
136
137if BUILD_LIB_CONSUMER
138SUBDIRS += consumer
139endif
10a8a223 140
28b6dfc8
SM
141noinst_HEADERS = \
142 align.h \
143 bug.h \
144 defaults.h \
145 error.h \
146 futex.h \
147 lttng-kernel.h \
148 lttng-kernel-old.h \
149 macros.h \
150 time.h \
151 uri.h \
152 utils.h
1c39da61 153
c49fc5e4
JR
154all-local:
155 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
156 for script in $(EXTRA_DIST); do \
157 cp -f $(srcdir)/$$script $(builddir); \
158 done; \
159 fi
160
161clean-local:
162 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
163 for script in $(EXTRA_DIST); do \
164 rm -f $(builddir)/$$script; \
165 done; \
166 fi
This page took 0.083833 seconds and 4 git commands to generate.