argpar: sync with upstream - adjust to iterator API
[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
e2fb96d8 5SUBDIRS = \
516cffda 6 argpar \
0ae3cfc6 7 bytecode \
516cffda
JR
8 compat \
9 config \
10 fd-tracker \
11 string-utils \
e2fb96d8 12 filter \
ea76a8bb
SM
13 hashtable \
14 argpar-utils
87fb9fc0
JR
15
16# Make sure to always distribute all folders
17# since SUBDIRS is decided at configure time.
28b6dfc8
SM
18DIST_SUBDIRS = \
19 compat \
20 health \
21 hashtable \
22 kernel-ctl \
23 sessiond-comm \
24 relayd \
25 kernel-consumer \
26 ust-consumer \
27 testpoint \
28 index \
29 config \
30 consumer \
31 string-utils \
e4d2f27a 32 fd-tracker \
0ae3cfc6 33 bytecode \
e2fb96d8 34 filter \
ea76a8bb
SM
35 argpar \
36 argpar-utils
e2fb96d8 37
b3f35e02
FD
38# Common library
39noinst_LTLIBRARIES = libcommon.la
ebc5e6b0 40EXTRA_DIST = mi-lttng-4.1.xsd
b3f35e02 41
28b6dfc8 42libcommon_la_SOURCES = \
03bb2358 43 actions/action.c \
ad63a966 44 actions/list.c \
03bb2358 45 actions/notify.c \
482b3452 46 actions/path.c \
bfb2ec6a 47 actions/rotate-session.c \
757c48a2 48 actions/snapshot-session.c \
58397d0d 49 actions/start-session.c \
931bdbaa 50 actions/stop-session.c \
7f4d5b07 51 actions/rate-policy.c \
28b6dfc8
SM
52 buffer-view.h buffer-view.c \
53 common.h \
ae20d1bd
JR
54 conditions/buffer-usage.c \
55 conditions/condition.c \
670a26e4 56 conditions/event-rule-matches.c \
ae20d1bd
JR
57 conditions/session-consumed-size.c \
58 conditions/session-rotation.c \
28b6dfc8 59 context.c context.h \
894e6e1c 60 credentials.c credentials.h \
28b6dfc8
SM
61 daemonize.c daemonize.h \
62 defaults.c \
c0374092 63 domain.c \
28b6dfc8
SM
64 dynamic-array.c dynamic-array.h \
65 dynamic-buffer.c dynamic-buffer.h \
66 endpoint.c \
67 error.c error.h \
b99a0cb3 68 error-query.c \
28b6dfc8
SM
69 evaluation.c \
70 event.c \
a303e333 71 event-expr/event-expr.c \
d28fcdec 72 event-field-value.c \
7a3dcaf6 73 event-rule/event-rule.c \
d84633c4 74 event-rule/kernel-kprobe.c \
213efb0c 75 event-rule/kernel-syscall.c \
e60e9a9a 76 event-rule/kernel-uprobe.c \
b25b2570 77 event-rule/kernel-tracepoint.c \
cc66eccf 78 event-rule/user-tracepoint.c \
08662c9b 79 event-rule/log4j-logging.c \
d440991b 80 event-rule/jul-logging.c \
f30f4bf4 81 event-rule/python-logging.c \
28b6dfc8 82 filter.c filter.h \
dd1bac00 83 fd-handle.c fd-handle.h \
75e36e37 84 fs-handle.c fs-handle.h fs-handle-internal.h \
28b6dfc8 85 futex.c futex.h \
808cb744 86 kernel-probe.c \
246611b0 87 index-allocator.c index-allocator.h \
28b6dfc8 88 location.c \
85b05318 89 log-level-rule.c \
28b6dfc8
SM
90 mi-lttng.c mi-lttng.h \
91 notification.c \
28b6dfc8 92 optional.h \
9e620ea7
JG
93 payload.c payload.h \
94 payload-view.c payload-view.h \
28b6dfc8
SM
95 pipe.c pipe.h \
96 readwrite.c readwrite.h \
97 runas.c runas.h \
b7fc068d 98 shm.c shm.h \
28b6dfc8 99 session-descriptor.c \
b30fa191 100 snapshot.c snapshot.h \
dd392e94 101 spawn-viewer.c spawn-viewer.h \
28b6dfc8
SM
102 time.c \
103 trace-chunk.c trace-chunk.h \
104 trace-chunk-registry.h \
105 trigger.c \
106 unix.c unix.h \
107 uri.c uri.h \
108 userspace-probe.c \
109 utils.c utils.h \
110 uuid.c uuid.h \
cb8d0d24 111 thread.c thread.h \
159b042f 112 tracker.c tracker.h \
75e36e37 113 waiter.c waiter.h
b3f35e02 114
b1b34226 115if HAVE_ELF_H
28b6dfc8
SM
116libcommon_la_SOURCES += \
117 lttng-elf.c lttng-elf.h
b1b34226
MJ
118endif
119
b3f35e02 120libcommon_la_LIBADD = \
0ae3cfc6 121 $(top_builddir)/src/common/bytecode/libbytecode.la \
28b6dfc8
SM
122 $(top_builddir)/src/common/config/libconfig.la \
123 $(top_builddir)/src/common/compat/libcompat.la \
8bb66c3c 124 $(top_builddir)/src/common/hashtable/libhashtable.la \
e4d2f27a 125 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
116a02e3
JG
126 $(top_builddir)/src/common/filter/libfilter.la \
127 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
b3f35e02 128
87fb9fc0
JR
129if BUILD_LIB_HEALTH
130SUBDIRS += health
131endif
132
87fb9fc0
JR
133if BUILD_LIB_KERNEL_CTL
134SUBDIRS += kernel-ctl
135endif
136
137if BUILD_LIB_SESSIOND_COMM
138SUBDIRS += sessiond-comm
139endif
140
141if BUILD_LIB_RELAYD
aa360a35
JG
142SUBDIRS += relayd
143endif
144
87fb9fc0
JR
145
146if BUILD_LIB_KERNEL_CONSUMER
147SUBDIRS += kernel-consumer
148endif
149
150if BUILD_LIB_UST_CONSUMER
151SUBDIRS += ust-consumer
152endif
153
154if BUILD_LIB_TESTPOINT
155SUBDIRS += testpoint
156endif
157
158if BUILD_LIB_INDEX
159SUBDIRS += index
160endif
161
87fb9fc0
JR
162if BUILD_LIB_CONSUMER
163SUBDIRS += consumer
164endif
10a8a223 165
28b6dfc8
SM
166noinst_HEADERS = \
167 align.h \
168 bug.h \
169 defaults.h \
170 error.h \
171 futex.h \
172 lttng-kernel.h \
173 lttng-kernel-old.h \
174 macros.h \
175 time.h \
176 uri.h \
177 utils.h
1c39da61 178
f78de773
JG
179noinst_PROGRAMS = filter-grammar-test
180filter_grammar_test_SOURCES = filter-grammar-test.c
181filter_grammar_test_LDADD = \
182 libcommon.la
f78de773 183
c49fc5e4
JR
184all-local:
185 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
186 for script in $(EXTRA_DIST); do \
187 cp -f $(srcdir)/$$script $(builddir); \
188 done; \
189 fi
190
191clean-local:
192 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
193 for script in $(EXTRA_DIST); do \
194 rm -f $(builddir)/$$script; \
195 done; \
196 fi
This page took 0.064775 seconds and 4 git commands to generate.