SoW-2019-0002: Dynamic Snapshot
[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
d3a684ee
JR
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 \
d3a684ee
JR
26 fd-tracker \
27 filter \
28 argpar
28b6dfc8 29
b3f35e02
FD
30# Common library
31noinst_LTLIBRARIES = libcommon.la
01fac814 32EXTRA_DIST = mi-lttng-4.0.xsd
b3f35e02 33
28b6dfc8 34libcommon_la_SOURCES = \
d3a684ee
JR
35 actions/action.c \
36 actions/group.c \
37 actions/notify.c \
38 actions/rotate-session.c \
39 actions/snapshot-session.c \
40 actions/start-session.c \
41 actions/stop-session.c \
28b6dfc8
SM
42 buffer-view.h buffer-view.c \
43 common.h \
d3a684ee
JR
44 conditions/buffer-usage.c \
45 conditions/condition.c \
46 conditions/event-rule.c \
47 conditions/session-consumed-size.c \
48 conditions/session-rotation.c \
28b6dfc8 49 context.c context.h \
d3a684ee 50 credentials.c credentials.h \
28b6dfc8
SM
51 daemonize.c daemonize.h \
52 defaults.c \
d3a684ee 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 \
d3a684ee
JR
60 event-rule.c \
61 event-rule-kprobe.c \
62 event-rule-kretprobe.c \
63 event-rule-syscall.c \
64 event-rule-uprobe.c \
65 event-rule-tracepoint.c \
28b6dfc8
SM
66 filter.c filter.h \
67 futex.c futex.h \
68 location.c \
69 mi-lttng.c mi-lttng.h \
70 notification.c \
28b6dfc8
SM
71 optional.h \
72 pipe.c pipe.h \
73 readwrite.c readwrite.h \
74 runas.c runas.h \
28b6dfc8 75 session-descriptor.c \
d3a684ee 76 snapshot.c snapshot.h \
28b6dfc8
SM
77 time.c \
78 trace-chunk.c trace-chunk.h \
79 trace-chunk-registry.h \
80 trigger.c \
81 unix.c unix.h \
82 uri.c uri.h \
83 userspace-probe.c \
84 utils.c utils.h \
85 uuid.c uuid.h \
2d97a006 86 tracker.c \
f5ea0241
JG
87 waiter.c waiter.h \
88 fs-handle.h fs-handle-internal.h fs-handle.c
b3f35e02 89
b1b34226 90if HAVE_ELF_H
28b6dfc8
SM
91libcommon_la_SOURCES += \
92 lttng-elf.c lttng-elf.h
b1b34226
MJ
93endif
94
b3f35e02 95libcommon_la_LIBADD = \
28b6dfc8
SM
96 $(top_builddir)/src/common/config/libconfig.la \
97 $(top_builddir)/src/common/compat/libcompat.la \
8bb66c3c 98 $(top_builddir)/src/common/hashtable/libhashtable.la \
d3a684ee
JR
99 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
100 $(top_builddir)/src/common/filter/libfilter.la
b3f35e02 101
87fb9fc0
JR
102if BUILD_LIB_COMPAT
103SUBDIRS += compat
104endif
105
106if BUILD_LIB_HEALTH
107SUBDIRS += health
108endif
109
110if BUILD_LIB_HASHTABLE
111SUBDIRS += hashtable
112endif
113
114if BUILD_LIB_KERNEL_CTL
115SUBDIRS += kernel-ctl
116endif
117
118if BUILD_LIB_SESSIOND_COMM
119SUBDIRS += sessiond-comm
120endif
121
122if BUILD_LIB_RELAYD
aa360a35
JG
123SUBDIRS += relayd
124endif
125
126if BUILD_LIB_FD_TRACKER
127SUBDIRS += fd-tracker
87fb9fc0
JR
128endif
129
130if BUILD_LIB_KERNEL_CONSUMER
131SUBDIRS += kernel-consumer
132endif
133
134if BUILD_LIB_UST_CONSUMER
135SUBDIRS += ust-consumer
136endif
137
138if BUILD_LIB_TESTPOINT
139SUBDIRS += testpoint
140endif
141
142if BUILD_LIB_INDEX
143SUBDIRS += index
144endif
145
146if BUILD_LIB_CONFIG
147SUBDIRS += config
148endif
149
150if BUILD_LIB_CONSUMER
151SUBDIRS += consumer
152endif
10a8a223 153
28b6dfc8
SM
154noinst_HEADERS = \
155 align.h \
156 bug.h \
157 defaults.h \
158 error.h \
159 futex.h \
160 lttng-kernel.h \
161 lttng-kernel-old.h \
162 macros.h \
163 time.h \
164 uri.h \
165 utils.h
1c39da61 166
c49fc5e4
JR
167all-local:
168 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
169 for script in $(EXTRA_DIST); do \
170 cp -f $(srcdir)/$$script $(builddir); \
171 done; \
172 fi
173
174clean-local:
175 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
176 for script in $(EXTRA_DIST); do \
177 rm -f $(builddir)/$$script; \
178 done; \
179 fi
This page took 0.077096 seconds and 5 git commands to generate.