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