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