liblttng-ctl: add facilities for lttng_snapshot_output object
[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
SM
30 actions/action.c \
31 actions/notify.c \
bfb2ec6a 32 actions/rotate-session.c \
58397d0d 33 actions/start-session.c \
931bdbaa 34 actions/stop-session.c \
28b6dfc8
SM
35 buffer-usage.c \
36 buffer-view.h buffer-view.c \
37 common.h \
38 condition.c \
39 context.c context.h \
40 credentials.h \
41 daemonize.c daemonize.h \
42 defaults.c \
43 dynamic-array.c dynamic-array.h \
44 dynamic-buffer.c dynamic-buffer.h \
45 endpoint.c \
46 error.c error.h \
47 evaluation.c \
48 event.c \
49 filter.c filter.h \
75e36e37 50 fs-handle.c fs-handle.h fs-handle-internal.h \
28b6dfc8
SM
51 futex.c futex.h \
52 location.c \
53 mi-lttng.c mi-lttng.h \
54 notification.c \
28b6dfc8
SM
55 optional.h \
56 pipe.c pipe.h \
57 readwrite.c readwrite.h \
58 runas.c runas.h \
59 session-consumed-size.c \
60 session-descriptor.c \
61 session-rotation.c \
b30fa191 62 snapshot.c snapshot.h \
dd392e94 63 spawn-viewer.c spawn-viewer.h \
28b6dfc8
SM
64 time.c \
65 trace-chunk.c trace-chunk.h \
66 trace-chunk-registry.h \
67 trigger.c \
68 unix.c unix.h \
69 uri.c uri.h \
70 userspace-probe.c \
71 utils.c utils.h \
72 uuid.c uuid.h \
159b042f 73 tracker.c tracker.h \
75e36e37 74 waiter.c waiter.h
b3f35e02 75
b1b34226 76if HAVE_ELF_H
28b6dfc8
SM
77libcommon_la_SOURCES += \
78 lttng-elf.c lttng-elf.h
b1b34226
MJ
79endif
80
b3f35e02 81libcommon_la_LIBADD = \
28b6dfc8
SM
82 $(top_builddir)/src/common/config/libconfig.la \
83 $(top_builddir)/src/common/compat/libcompat.la \
8bb66c3c
JG
84 $(top_builddir)/src/common/hashtable/libhashtable.la \
85 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
b3f35e02 86
87fb9fc0
JR
87if BUILD_LIB_COMPAT
88SUBDIRS += compat
89endif
90
91if BUILD_LIB_HEALTH
92SUBDIRS += health
93endif
94
95if BUILD_LIB_HASHTABLE
96SUBDIRS += hashtable
97endif
98
99if BUILD_LIB_KERNEL_CTL
100SUBDIRS += kernel-ctl
101endif
102
103if BUILD_LIB_SESSIOND_COMM
104SUBDIRS += sessiond-comm
105endif
106
107if BUILD_LIB_RELAYD
aa360a35
JG
108SUBDIRS += relayd
109endif
110
111if BUILD_LIB_FD_TRACKER
112SUBDIRS += fd-tracker
87fb9fc0
JR
113endif
114
115if BUILD_LIB_KERNEL_CONSUMER
116SUBDIRS += kernel-consumer
117endif
118
119if BUILD_LIB_UST_CONSUMER
120SUBDIRS += ust-consumer
121endif
122
123if BUILD_LIB_TESTPOINT
124SUBDIRS += testpoint
125endif
126
127if BUILD_LIB_INDEX
128SUBDIRS += index
129endif
130
131if BUILD_LIB_CONFIG
132SUBDIRS += config
133endif
134
135if BUILD_LIB_CONSUMER
136SUBDIRS += consumer
137endif
10a8a223 138
28b6dfc8
SM
139noinst_HEADERS = \
140 align.h \
141 bug.h \
142 defaults.h \
143 error.h \
144 futex.h \
145 lttng-kernel.h \
146 lttng-kernel-old.h \
147 macros.h \
148 time.h \
149 uri.h \
150 utils.h
1c39da61 151
c49fc5e4
JR
152all-local:
153 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
154 for script in $(EXTRA_DIST); do \
155 cp -f $(srcdir)/$$script $(builddir); \
156 done; \
157 fi
158
159clean-local:
160 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
161 for script in $(EXTRA_DIST); do \
162 rm -f $(builddir)/$$script; \
163 done; \
164 fi
This page took 0.054857 seconds and 4 git commands to generate.