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