1 # SPDX-License-Identifier: GPL-2.0-only
3 AUTOMAKE_OPTIONS = subdir-objects
7 # Make sure to always distribute all folders
8 # since SUBDIRS is decided at configure time.
26 noinst_LTLIBRARIES = libpath.la libcommon-lgpl.la libcommon-gpl.la
27 EXTRA_DIST = mi-lttng-4.0.xsd
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 = \
34 buffer-view.h buffer-view.c \
40 dynamic-array.c dynamic-array.h \
41 dynamic-buffer.c dynamic-buffer.h \
47 mi-lttng.c mi-lttng.h \
50 readwrite.c readwrite.h \
52 session-consumed-size.c \
53 session-descriptor.c \
55 spawn-viewer.c spawn-viewer.h \
65 libcommon_lgpl_la_SOURCES += \
66 lttng-elf.c lttng-elf.h
69 libcommon_lgpl_la_LIBADD = \
70 $(top_builddir)/src/common/config/libconfig.la \
71 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la
73 # The libpath static archive contains GPLv2 compatible code. It is
74 # meant to be used by GPL executables.
76 libpath_la_SOURCES = \
79 # The libcommon-gpl static archive contains GPLv2 compatible code. It is
80 # meant to be used by GPL executables.
81 libcommon_gpl_la_SOURCES = \
84 daemonize.c daemonize.h \
86 fs-handle.c fs-handle.h fs-handle-internal.h \
90 trace-chunk.c trace-chunk.h \
91 trace-chunk-registry.h \
95 libcommon_gpl_la_LIBADD = \
96 -lurcu -lurcu-common \
99 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
100 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
104 libcommon_lgpl_la_LIBADD += \
105 $(top_builddir)/src/common/compat/libcompat.la
112 if BUILD_LIB_HASHTABLE
116 if BUILD_LIB_KERNEL_CTL
117 SUBDIRS += kernel-ctl
120 if BUILD_LIB_SESSIOND_COMM
121 SUBDIRS += sessiond-comm
128 if BUILD_LIB_FD_TRACKER
129 SUBDIRS += fd-tracker
132 if BUILD_LIB_KERNEL_CONSUMER
133 SUBDIRS += kernel-consumer
136 if BUILD_LIB_UST_CONSUMER
137 SUBDIRS += ust-consumer
140 if BUILD_LIB_TESTPOINT
152 if BUILD_LIB_CONSUMER
170 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
171 for script in $(EXTRA_DIST); do \
172 cp -f $(srcdir)/$$script $(builddir); \
177 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
178 for script in $(EXTRA_DIST); do \
179 rm -f $(builddir)/$$script; \