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 \
39 dynamic-array.c dynamic-array.h \
40 dynamic-buffer.c dynamic-buffer.h \
45 mi-lttng.c mi-lttng.h \
48 readwrite.c readwrite.h \
50 session-consumed-size.c \
51 session-descriptor.c \
53 spawn-viewer.c spawn-viewer.h \
63 libcommon_lgpl_la_SOURCES += \
64 lttng-elf.c lttng-elf.h
67 libcommon_lgpl_la_LIBADD = \
68 $(top_builddir)/src/common/config/libconfig.la \
69 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la
71 # The libpath static archive contains GPLv2 compatible code. It is
72 # meant to be used by GPL executables.
74 libpath_la_SOURCES = \
77 # The libcommon-gpl static archive contains GPLv2 compatible code. It is
78 # meant to be used by GPL executables.
79 libcommon_gpl_la_SOURCES = \
82 daemonize.c daemonize.h \
85 fs-handle.c fs-handle.h fs-handle-internal.h \
89 trace-chunk.c trace-chunk.h \
90 trace-chunk-registry.h \
94 libcommon_gpl_la_LIBADD = \
95 -lurcu -lurcu-common \
98 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
99 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
103 libcommon_lgpl_la_LIBADD += \
104 $(top_builddir)/src/common/compat/libcompat.la
111 if BUILD_LIB_HASHTABLE
115 if BUILD_LIB_KERNEL_CTL
116 SUBDIRS += kernel-ctl
119 if BUILD_LIB_SESSIOND_COMM
120 SUBDIRS += sessiond-comm
127 if BUILD_LIB_FD_TRACKER
128 SUBDIRS += fd-tracker
131 if BUILD_LIB_KERNEL_CONSUMER
132 SUBDIRS += kernel-consumer
135 if BUILD_LIB_UST_CONSUMER
136 SUBDIRS += ust-consumer
139 if BUILD_LIB_TESTPOINT
151 if BUILD_LIB_CONSUMER
169 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
170 for script in $(EXTRA_DIST); do \
171 cp -f $(srcdir)/$$script $(builddir); \
176 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
177 for script in $(EXTRA_DIST); do \
178 rm -f $(builddir)/$$script; \