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