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