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