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