argpar: sync with upstream - adjust to iterator API
[lttng-tools.git] / src / common / Makefile.am
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 AUTOMAKE_OPTIONS = subdir-objects
4
5 SUBDIRS = \
6 argpar \
7 bytecode \
8 compat \
9 config \
10 fd-tracker \
11 string-utils \
12 filter \
13 hashtable \
14 argpar-utils
15
16 # Make sure to always distribute all folders
17 # since SUBDIRS is decided at configure time.
18 DIST_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 \
32 fd-tracker \
33 bytecode \
34 filter \
35 argpar \
36 argpar-utils
37
38 # Common library
39 noinst_LTLIBRARIES = libcommon.la
40 EXTRA_DIST = mi-lttng-4.1.xsd
41
42 libcommon_la_SOURCES = \
43 actions/action.c \
44 actions/list.c \
45 actions/notify.c \
46 actions/path.c \
47 actions/rotate-session.c \
48 actions/snapshot-session.c \
49 actions/start-session.c \
50 actions/stop-session.c \
51 actions/rate-policy.c \
52 buffer-view.h buffer-view.c \
53 common.h \
54 conditions/buffer-usage.c \
55 conditions/condition.c \
56 conditions/event-rule-matches.c \
57 conditions/session-consumed-size.c \
58 conditions/session-rotation.c \
59 context.c context.h \
60 credentials.c credentials.h \
61 daemonize.c daemonize.h \
62 defaults.c \
63 domain.c \
64 dynamic-array.c dynamic-array.h \
65 dynamic-buffer.c dynamic-buffer.h \
66 endpoint.c \
67 error.c error.h \
68 error-query.c \
69 evaluation.c \
70 event.c \
71 event-expr/event-expr.c \
72 event-field-value.c \
73 event-rule/event-rule.c \
74 event-rule/kernel-kprobe.c \
75 event-rule/kernel-syscall.c \
76 event-rule/kernel-uprobe.c \
77 event-rule/kernel-tracepoint.c \
78 event-rule/user-tracepoint.c \
79 event-rule/log4j-logging.c \
80 event-rule/jul-logging.c \
81 event-rule/python-logging.c \
82 filter.c filter.h \
83 fd-handle.c fd-handle.h \
84 fs-handle.c fs-handle.h fs-handle-internal.h \
85 futex.c futex.h \
86 kernel-probe.c \
87 index-allocator.c index-allocator.h \
88 location.c \
89 log-level-rule.c \
90 mi-lttng.c mi-lttng.h \
91 notification.c \
92 optional.h \
93 payload.c payload.h \
94 payload-view.c payload-view.h \
95 pipe.c pipe.h \
96 readwrite.c readwrite.h \
97 runas.c runas.h \
98 shm.c shm.h \
99 session-descriptor.c \
100 snapshot.c snapshot.h \
101 spawn-viewer.c spawn-viewer.h \
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 \
111 thread.c thread.h \
112 tracker.c tracker.h \
113 waiter.c waiter.h
114
115 if HAVE_ELF_H
116 libcommon_la_SOURCES += \
117 lttng-elf.c lttng-elf.h
118 endif
119
120 libcommon_la_LIBADD = \
121 $(top_builddir)/src/common/bytecode/libbytecode.la \
122 $(top_builddir)/src/common/config/libconfig.la \
123 $(top_builddir)/src/common/compat/libcompat.la \
124 $(top_builddir)/src/common/hashtable/libhashtable.la \
125 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
126 $(top_builddir)/src/common/filter/libfilter.la \
127 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
128
129 if BUILD_LIB_HEALTH
130 SUBDIRS += health
131 endif
132
133 if BUILD_LIB_KERNEL_CTL
134 SUBDIRS += kernel-ctl
135 endif
136
137 if BUILD_LIB_SESSIOND_COMM
138 SUBDIRS += sessiond-comm
139 endif
140
141 if BUILD_LIB_RELAYD
142 SUBDIRS += relayd
143 endif
144
145
146 if BUILD_LIB_KERNEL_CONSUMER
147 SUBDIRS += kernel-consumer
148 endif
149
150 if BUILD_LIB_UST_CONSUMER
151 SUBDIRS += ust-consumer
152 endif
153
154 if BUILD_LIB_TESTPOINT
155 SUBDIRS += testpoint
156 endif
157
158 if BUILD_LIB_INDEX
159 SUBDIRS += index
160 endif
161
162 if BUILD_LIB_CONSUMER
163 SUBDIRS += consumer
164 endif
165
166 noinst_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
178
179 noinst_PROGRAMS = filter-grammar-test
180 filter_grammar_test_SOURCES = filter-grammar-test.c
181 filter_grammar_test_LDADD = \
182 libcommon.la
183
184 all-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
191 clean-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.033398 seconds and 4 git commands to generate.