Move utils_expand_path and utils_expand_path_keep_symlink to libpath.la
[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
9c55c241 5SUBDIRS = string-utils
87fb9fc0
JR
6
7# Make sure to always distribute all folders
8# since SUBDIRS is decided at configure time.
28b6dfc8
SM
9DIST_SUBDIRS = \
10 compat \
11 health \
12 hashtable \
13 kernel-ctl \
14 sessiond-comm \
15 relayd \
16 kernel-consumer \
17 ust-consumer \
18 testpoint \
19 index \
20 config \
21 consumer \
22 string-utils \
23 fd-tracker
24
b3f35e02 25# Common library
e40c873f 26noinst_LTLIBRARIES = libpath.la libcommon-lgpl.la libcommon-gpl.la
01fac814 27EXTRA_DIST = mi-lttng-4.0.xsd
b3f35e02 28
04952f7c
MD
29# The libcommon-lgpl static archive contains only LGPLv2.1 code. It is
30# meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also
31# contains libcommon-lgpl.la.
32libcommon_lgpl_la_SOURCES = \
28b6dfc8 33 action.c \
28b6dfc8 34 buffer-view.h buffer-view.c \
04952f7c 35 buffer-usage.c \
28b6dfc8 36 credentials.h \
04952f7c 37 condition.c \
28b6dfc8
SM
38 defaults.c \
39 dynamic-array.c dynamic-array.h \
40 dynamic-buffer.c dynamic-buffer.h \
41 endpoint.c \
42 error.c error.h \
43 evaluation.c \
28b6dfc8
SM
44 location.c \
45 mi-lttng.c mi-lttng.h \
46 notification.c \
47 notify.c \
28b6dfc8
SM
48 readwrite.c readwrite.h \
49 runas.c runas.h \
50 session-consumed-size.c \
51 session-descriptor.c \
52 session-rotation.c \
6457f8e4 53 spawn-viewer.c spawn-viewer.h \
28b6dfc8 54 time.c \
04952f7c 55 tracker.c tracker.h \
28b6dfc8
SM
56 trigger.c \
57 unix.c unix.h \
58 uri.c uri.h \
59 userspace-probe.c \
04952f7c 60 utils.c utils.h
b3f35e02 61
b1b34226 62if HAVE_ELF_H
04952f7c 63libcommon_lgpl_la_SOURCES += \
28b6dfc8 64 lttng-elf.c lttng-elf.h
b1b34226
MJ
65endif
66
04952f7c 67libcommon_lgpl_la_LIBADD = \
28b6dfc8 68 $(top_builddir)/src/common/config/libconfig.la \
04952f7c
MD
69 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la
70
e40c873f
MD
71# The libpath static archive contains GPLv2 compatible code. It is
72# meant to be used by GPL executables.
73
74libpath_la_SOURCES = \
75 path.c path.h
76
04952f7c
MD
77# The libcommon-gpl static archive contains GPLv2 compatible code. It is
78# meant to be used by GPL executables.
79libcommon_gpl_la_SOURCES = \
80 common.h \
81 context.c context.h \
82 daemonize.c daemonize.h \
83 event.c \
84 filter.c filter.h \
85 fs-handle.c fs-handle.h fs-handle-internal.h \
86 futex.c futex.h \
87 optional.h \
88 pipe.c pipe.h \
89 trace-chunk.c trace-chunk.h \
90 trace-chunk-registry.h \
91 uuid.c uuid.h \
92 waiter.c waiter.h
93
94libcommon_gpl_la_LIBADD = \
95 -lurcu -lurcu-common \
96 libcommon-lgpl.la \
e40c873f 97 libpath.la \
04952f7c 98 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
8bb66c3c 99 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
b3f35e02 100
87fb9fc0
JR
101if BUILD_LIB_COMPAT
102SUBDIRS += compat
04952f7c
MD
103libcommon_lgpl_la_LIBADD += \
104 $(top_builddir)/src/common/compat/libcompat.la
87fb9fc0
JR
105endif
106
107if BUILD_LIB_HEALTH
108SUBDIRS += health
109endif
110
111if BUILD_LIB_HASHTABLE
112SUBDIRS += hashtable
113endif
114
115if BUILD_LIB_KERNEL_CTL
116SUBDIRS += kernel-ctl
117endif
118
119if BUILD_LIB_SESSIOND_COMM
120SUBDIRS += sessiond-comm
121endif
122
123if BUILD_LIB_RELAYD
aa360a35
JG
124SUBDIRS += relayd
125endif
126
127if BUILD_LIB_FD_TRACKER
128SUBDIRS += fd-tracker
87fb9fc0
JR
129endif
130
131if BUILD_LIB_KERNEL_CONSUMER
132SUBDIRS += kernel-consumer
133endif
134
135if BUILD_LIB_UST_CONSUMER
136SUBDIRS += ust-consumer
137endif
138
139if BUILD_LIB_TESTPOINT
140SUBDIRS += testpoint
141endif
142
143if BUILD_LIB_INDEX
144SUBDIRS += index
145endif
146
147if BUILD_LIB_CONFIG
148SUBDIRS += config
149endif
150
151if BUILD_LIB_CONSUMER
152SUBDIRS += consumer
153endif
10a8a223 154
28b6dfc8
SM
155noinst_HEADERS = \
156 align.h \
157 bug.h \
158 defaults.h \
159 error.h \
160 futex.h \
161 lttng-kernel.h \
162 lttng-kernel-old.h \
163 macros.h \
164 time.h \
165 uri.h \
166 utils.h
1c39da61 167
c49fc5e4
JR
168all-local:
169 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
170 for script in $(EXTRA_DIST); do \
171 cp -f $(srcdir)/$$script $(builddir); \
172 done; \
173 fi
174
175clean-local:
176 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
177 for script in $(EXTRA_DIST); do \
178 rm -f $(builddir)/$$script; \
179 done; \
180 fi
This page took 0.082008 seconds and 5 git commands to generate.