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 lockfile.c lockfile.h \
48 mi-lttng.c mi-lttng.h \
52 readwrite.c readwrite.h \
54 session-consumed-size.c \
55 session-descriptor.c \
57 spawn-viewer.c spawn-viewer.h \
67 libcommon_lgpl_la_SOURCES += \
68 lttng-elf.c lttng-elf.h
71 libcommon_lgpl_la_LIBADD = \
72 $(top_builddir)/src/common/config/libconfig.la \
73 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la
75 # The libpath static archive contains GPLv2 compatible code. It is
76 # meant to be used by GPL executables.
78 libpath_la_SOURCES = \
81 # The libcommon-gpl static archive contains GPLv2 compatible code. It is
82 # meant to be used by GPL executables.
83 libcommon_gpl_la_SOURCES = \
86 daemonize.c daemonize.h \
88 fs-handle.c fs-handle.h fs-handle-internal.h \
92 trace-chunk.c trace-chunk.h \
93 trace-chunk-registry.h \
97 libcommon_gpl_la_LIBADD = \
98 -lurcu -lurcu-common \
101 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
102 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
106 libcommon_lgpl_la_LIBADD += \
107 $(top_builddir)/src/common/compat/libcompat.la
114 if BUILD_LIB_HASHTABLE
118 if BUILD_LIB_KERNEL_CTL
119 SUBDIRS += kernel-ctl
122 if BUILD_LIB_SESSIOND_COMM
123 SUBDIRS += sessiond-comm
130 if BUILD_LIB_FD_TRACKER
131 SUBDIRS += fd-tracker
134 if BUILD_LIB_KERNEL_CONSUMER
135 SUBDIRS += kernel-consumer
138 if BUILD_LIB_UST_CONSUMER
139 SUBDIRS += ust-consumer
142 if BUILD_LIB_TESTPOINT
154 if BUILD_LIB_CONSUMER
172 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
173 for script in $(EXTRA_DIST); do \
174 cp -f $(srcdir)/$$script $(builddir); \
179 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
180 for script in $(EXTRA_DIST); do \
181 rm -f $(builddir)/$$script; \