Move conditions source files to src/common/conditions directory
[lttng-tools.git] / src / common / Makefile.am
... / ...
CommitLineData
1# SPDX-License-Identifier: GPL-2.0-only
2
3AUTOMAKE_OPTIONS = subdir-objects
4
5SUBDIRS = string-utils filter
6
7# Make sure to always distribute all folders
8# since SUBDIRS is decided at configure time.
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 filter
25# Common library
26noinst_LTLIBRARIES = libcommon.la
27EXTRA_DIST = mi-lttng-4.0.xsd
28
29libcommon_la_SOURCES = \
30 actions/action.c \
31 actions/group.c \
32 actions/notify.c \
33 actions/rotate-session.c \
34 actions/snapshot-session.c \
35 actions/start-session.c \
36 actions/stop-session.c \
37 buffer-view.h buffer-view.c \
38 common.h \
39 conditions/buffer-usage.c \
40 conditions/condition.c \
41 conditions/session-consumed-size.c \
42 conditions/session-rotation.c \
43 context.c context.h \
44 credentials.c credentials.h \
45 daemonize.c daemonize.h \
46 defaults.c \
47 domain.c \
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 \
54 event-rule/event-rule.c \
55 event-rule/kprobe.c \
56 event-rule/syscall.c \
57 event-rule/uprobe.c \
58 event-rule/tracepoint.c \
59 filter.c filter.h \
60 fd-handle.c fd-handle.h \
61 fs-handle.c fs-handle.h fs-handle-internal.h \
62 futex.c futex.h \
63 kernel-probe.c \
64 location.c \
65 mi-lttng.c mi-lttng.h \
66 notification.c \
67 optional.h \
68 payload.c payload.h \
69 payload-view.c payload-view.h \
70 pipe.c pipe.h \
71 readwrite.c readwrite.h \
72 runas.c runas.h \
73 session-descriptor.c \
74 snapshot.c snapshot.h \
75 spawn-viewer.c spawn-viewer.h \
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 \
85 thread.c thread.h \
86 tracker.c tracker.h \
87 waiter.c waiter.h
88
89if HAVE_ELF_H
90libcommon_la_SOURCES += \
91 lttng-elf.c lttng-elf.h
92endif
93
94libcommon_la_LIBADD = \
95 $(top_builddir)/src/common/config/libconfig.la \
96 $(top_builddir)/src/common/compat/libcompat.la \
97 $(top_builddir)/src/common/hashtable/libhashtable.la \
98 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
99 $(top_builddir)/src/common/filter/libfilter.la
100
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
122SUBDIRS += relayd
123endif
124
125if BUILD_LIB_FD_TRACKER
126SUBDIRS += fd-tracker
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
152
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
165
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.022568 seconds and 4 git commands to generate.