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 \
51 readwrite.c readwrite.h \
53 session-consumed-size.c \
54 session-descriptor.c \
56 spawn-viewer.c spawn-viewer.h \
66 libcommon_lgpl_la_SOURCES += \
67 lttng-elf.c lttng-elf.h
70 libcommon_lgpl_la_LIBADD = \
71 $(top_builddir)/src/common/config/libconfig.la \
72 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la
74 # The libpath static archive contains GPLv2 compatible code. It is
75 # meant to be used by GPL executables.
77 libpath_la_SOURCES = \
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 = \
85 daemonize.c daemonize.h \
87 fs-handle.c fs-handle.h fs-handle-internal.h \
91 trace-chunk.c trace-chunk.h \
92 trace-chunk-registry.h \
96 libcommon_gpl_la_LIBADD = \
97 -lurcu -lurcu-common \
100 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
101 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
105 libcommon_lgpl_la_LIBADD += \
106 $(top_builddir)/src/common/compat/libcompat.la
113 if BUILD_LIB_HASHTABLE
117 if BUILD_LIB_KERNEL_CTL
118 SUBDIRS += kernel-ctl
121 if BUILD_LIB_SESSIOND_COMM
122 SUBDIRS += sessiond-comm
129 if BUILD_LIB_FD_TRACKER
130 SUBDIRS += fd-tracker
133 if BUILD_LIB_KERNEL_CONSUMER
134 SUBDIRS += kernel-consumer
137 if BUILD_LIB_UST_CONSUMER
138 SUBDIRS += ust-consumer
141 if BUILD_LIB_TESTPOINT
153 if BUILD_LIB_CONSUMER
171 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
172 for script in $(EXTRA_DIST); do \
173 cp -f $(srcdir)/$$script $(builddir); \
178 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
179 for script in $(EXTRA_DIST); do \
180 rm -f $(builddir)/$$script; \