Add common util to set thread name
[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
e4d2f27a 5SUBDIRS = string-utils filter
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 \
e4d2f27a
JR
23 fd-tracker \
24 filter
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 \
894e6e1c 42 credentials.c credentials.h \
28b6dfc8
SM
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 \
dd1bac00 52 fd-handle.c fd-handle.h \
75e36e37 53 fs-handle.c fs-handle.h fs-handle-internal.h \
28b6dfc8
SM
54 futex.c futex.h \
55 location.c \
56 mi-lttng.c mi-lttng.h \
57 notification.c \
28b6dfc8 58 optional.h \
9e620ea7
JG
59 payload.c payload.h \
60 payload-view.c payload-view.h \
28b6dfc8
SM
61 pipe.c pipe.h \
62 readwrite.c readwrite.h \
63 runas.c runas.h \
64 session-consumed-size.c \
65 session-descriptor.c \
66 session-rotation.c \
b30fa191 67 snapshot.c snapshot.h \
dd392e94 68 spawn-viewer.c spawn-viewer.h \
28b6dfc8
SM
69 time.c \
70 trace-chunk.c trace-chunk.h \
71 trace-chunk-registry.h \
72 trigger.c \
73 unix.c unix.h \
74 uri.c uri.h \
75 userspace-probe.c \
76 utils.c utils.h \
77 uuid.c uuid.h \
cb8d0d24 78 thread.c thread.h \
159b042f 79 tracker.c tracker.h \
75e36e37 80 waiter.c waiter.h
b3f35e02 81
b1b34226 82if HAVE_ELF_H
28b6dfc8
SM
83libcommon_la_SOURCES += \
84 lttng-elf.c lttng-elf.h
b1b34226
MJ
85endif
86
b3f35e02 87libcommon_la_LIBADD = \
28b6dfc8
SM
88 $(top_builddir)/src/common/config/libconfig.la \
89 $(top_builddir)/src/common/compat/libcompat.la \
8bb66c3c 90 $(top_builddir)/src/common/hashtable/libhashtable.la \
e4d2f27a
JR
91 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
92 $(top_builddir)/src/common/filter/libfilter.la
b3f35e02 93
87fb9fc0
JR
94if BUILD_LIB_COMPAT
95SUBDIRS += compat
96endif
97
98if BUILD_LIB_HEALTH
99SUBDIRS += health
100endif
101
102if BUILD_LIB_HASHTABLE
103SUBDIRS += hashtable
104endif
105
106if BUILD_LIB_KERNEL_CTL
107SUBDIRS += kernel-ctl
108endif
109
110if BUILD_LIB_SESSIOND_COMM
111SUBDIRS += sessiond-comm
112endif
113
114if BUILD_LIB_RELAYD
aa360a35
JG
115SUBDIRS += relayd
116endif
117
118if BUILD_LIB_FD_TRACKER
119SUBDIRS += fd-tracker
87fb9fc0
JR
120endif
121
122if BUILD_LIB_KERNEL_CONSUMER
123SUBDIRS += kernel-consumer
124endif
125
126if BUILD_LIB_UST_CONSUMER
127SUBDIRS += ust-consumer
128endif
129
130if BUILD_LIB_TESTPOINT
131SUBDIRS += testpoint
132endif
133
134if BUILD_LIB_INDEX
135SUBDIRS += index
136endif
137
138if BUILD_LIB_CONFIG
139SUBDIRS += config
140endif
141
142if BUILD_LIB_CONSUMER
143SUBDIRS += consumer
144endif
10a8a223 145
28b6dfc8
SM
146noinst_HEADERS = \
147 align.h \
148 bug.h \
149 defaults.h \
150 error.h \
151 futex.h \
152 lttng-kernel.h \
153 lttng-kernel-old.h \
154 macros.h \
155 time.h \
156 uri.h \
157 utils.h
1c39da61 158
c49fc5e4
JR
159all-local:
160 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
161 for script in $(EXTRA_DIST); do \
162 cp -f $(srcdir)/$$script $(builddir); \
163 done; \
164 fi
165
166clean-local:
167 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
168 for script in $(EXTRA_DIST); do \
169 rm -f $(builddir)/$$script; \
170 done; \
171 fi
This page took 0.084853 seconds and 4 git commands to generate.