Introduce libcommon-lgpl for liblttng-ctl
[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
93903fd5 41noinst_LTLIBRARIES = libcommon-lgpl.la libcommon-gpl.la
1f1f7e35 42EXTRA_DIST = mi-lttng-4.1.xsd
b3f35e02 43
93903fd5
MD
44# The libcommon-lgpl static archive contains only LGPLv2.1 code. It is
45# meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also
46# contains libcommon-lgpl.la.
47
48libcommon_lgpl_la_SOURCES = \
a6bc4ca9
SM
49 actions/action.cpp \
50 actions/list.cpp \
51 actions/notify.cpp \
52 actions/path.cpp \
53 actions/rotate-session.cpp \
54 actions/snapshot-session.cpp \
55 actions/start-session.cpp \
56 actions/stop-session.cpp \
57 actions/rate-policy.cpp \
58 buffer-view.h buffer-view.cpp \
a6bc4ca9
SM
59 conditions/buffer-usage.cpp \
60 conditions/condition.cpp \
61 conditions/event-rule-matches.cpp \
62 conditions/session-consumed-size.cpp \
63 conditions/session-rotation.cpp \
a6bc4ca9 64 credentials.cpp credentials.h \
a6bc4ca9
SM
65 defaults.cpp \
66 domain.cpp \
67 dynamic-array.cpp dynamic-array.h \
68 dynamic-buffer.cpp dynamic-buffer.h \
69 endpoint.cpp \
70 error.cpp error.h \
71 error-query.cpp \
72 evaluation.cpp \
a6bc4ca9
SM
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 \
a6bc4ca9 84 fd-handle.cpp fd-handle.h \
a6bc4ca9 85 kernel-probe.cpp \
a6bc4ca9
SM
86 location.cpp \
87 log-level-rule.cpp \
88 mi-lttng.cpp mi-lttng.h \
89 notification.cpp \
a6bc4ca9
SM
90 payload.cpp payload.h \
91 payload-view.cpp payload-view.h \
a6bc4ca9
SM
92 readwrite.cpp readwrite.h \
93 runas.cpp runas.h \
a6bc4ca9
SM
94 session-descriptor.cpp \
95 snapshot.cpp snapshot.h \
96 spawn-viewer.cpp spawn-viewer.h \
93903fd5 97 thread.cpp thread.h \
a6bc4ca9 98 time.cpp \
93903fd5 99 tracker.cpp tracker.h \
a6bc4ca9
SM
100 trigger.cpp \
101 unix.cpp unix.h \
102 uri.cpp uri.h \
103 userspace-probe.cpp \
93903fd5 104 utils.cpp utils.h
b3f35e02 105
b1b34226 106if HAVE_ELF_H
93903fd5 107libcommon_lgpl_la_SOURCES += \
a6bc4ca9 108 lttng-elf.cpp lttng-elf.h
b1b34226
MJ
109endif
110
93903fd5 111libcommon_lgpl_la_LIBADD = \
0ae3cfc6 112 $(top_builddir)/src/common/bytecode/libbytecode.la \
28b6dfc8 113 $(top_builddir)/src/common/compat/libcompat.la \
93903fd5 114 $(top_builddir)/src/common/config/libconfig.la \
116a02e3 115 $(top_builddir)/src/common/filter/libfilter.la \
93903fd5 116 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la \
116a02e3 117 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
b3f35e02 118
93903fd5
MD
119# The libcommon-gpl static archive contains GPLv2 compatible code. It is
120# meant to be used by GPL executables.
121
122libcommon_gpl_la_SOURCES = \
123 common.h \
124 context.cpp context.h \
125 daemonize.cpp daemonize.h \
126 event.cpp \
127 filter.cpp filter.h \
128 fs-handle.cpp fs-handle.h fs-handle-internal.h \
129 futex.cpp futex.h \
130 index-allocator.cpp index-allocator.h \
131 optional.h \
132 pipe.cpp pipe.h \
133 shm.cpp shm.h \
134 trace-chunk.cpp trace-chunk.h \
135 trace-chunk-registry.h \
136 uuid.cpp uuid.h \
137 waiter.cpp waiter.h
138
139libcommon_gpl_la_LIBADD = \
140 libcommon-lgpl.la \
141 $(top_builddir)/src/common/ini-config/libini-config.la \
142 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
143 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
144
87fb9fc0
JR
145if BUILD_LIB_HEALTH
146SUBDIRS += health
147endif
148
87fb9fc0
JR
149if BUILD_LIB_KERNEL_CTL
150SUBDIRS += kernel-ctl
151endif
152
153if BUILD_LIB_SESSIOND_COMM
154SUBDIRS += sessiond-comm
155endif
156
157if BUILD_LIB_RELAYD
aa360a35
JG
158SUBDIRS += relayd
159endif
160
87fb9fc0
JR
161
162if BUILD_LIB_KERNEL_CONSUMER
163SUBDIRS += kernel-consumer
164endif
165
166if BUILD_LIB_UST_CONSUMER
167SUBDIRS += ust-consumer
168endif
169
170if BUILD_LIB_TESTPOINT
171SUBDIRS += testpoint
172endif
173
174if BUILD_LIB_INDEX
175SUBDIRS += index
176endif
177
87fb9fc0
JR
178if BUILD_LIB_CONSUMER
179SUBDIRS += consumer
180endif
10a8a223 181
28b6dfc8
SM
182noinst_HEADERS = \
183 align.h \
184 bug.h \
185 defaults.h \
186 error.h \
187 futex.h \
188 lttng-kernel.h \
189 lttng-kernel-old.h \
190 macros.h \
191 time.h \
192 uri.h \
193 utils.h
1c39da61 194
e358ddd5 195noinst_PROGRAMS = filter-grammar-test
740da7d5 196filter_grammar_test_SOURCES = filter-grammar-test.cpp
93903fd5 197filter_grammar_test_LDADD = libcommon-gpl.la
e358ddd5 198
c49fc5e4
JR
199all-local:
200 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
201 for script in $(EXTRA_DIST); do \
202 cp -f $(srcdir)/$$script $(builddir); \
203 done; \
204 fi
205
206clean-local:
207 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
208 for script in $(EXTRA_DIST); do \
209 rm -f $(builddir)/$$script; \
210 done; \
211 fi
This page took 0.064554 seconds and 4 git commands to generate.