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