Reduce the number of Makefiles in 'src/plugins/lttng-utils'
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 24 Oct 2023 18:41:24 +0000 (14:41 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 26 Oct 2023 20:48:28 +0000 (16:48 -0400)
Continue the effort started by Simon to reduce the overall number of
Makefiles to allow for faster parallel builds.

Change-Id: I339d190fea78fcefd6b3927cccb89db1b4fec6f4
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11153
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
configure.ac
src/plugins/lttng-utils/Makefile.am
src/plugins/lttng-utils/debug-info/Makefile.am [deleted file]

index a30c6bad6fa29f48953ba7c49b702915550423c3..109f021e02e0ef3dbd4d87c6a92585e0a6b853c6 100644 (file)
@@ -841,7 +841,6 @@ AC_CONFIG_FILES([
   src/plugins/common/Makefile
   src/plugins/ctf/common/metadata/Makefile
   src/plugins/ctf/Makefile
-  src/plugins/lttng-utils/debug-info/Makefile
   src/plugins/lttng-utils/Makefile
   src/plugins/Makefile
   src/plugins/text/dmesg/Makefile
index 0beeadf2d38e38a4d5e6922117990f3763106efa..ab724777b88acdd6845b99c9f3e83f36c9f60649 100644 (file)
@@ -1,15 +1,5 @@
 # SPDX-License-Identifier: MIT
 
-SUBDIRS =
-
-babeltrace_plugin_lttng_utils_la_LIBADD =
-
-if ENABLE_DEBUG_INFO
-SUBDIRS += debug-info
-babeltrace_plugin_lttng_utils_la_LIBADD += \
-       debug-info/libdebug-info.la
-endif
-
 plugindir = "$(BABELTRACE_PLUGINS_DIR)"
 plugin_LTLIBRARIES = babeltrace-plugin-lttng-utils.la
 
@@ -22,6 +12,38 @@ babeltrace_plugin_lttng_utils_la_LDFLAGS = \
        -avoid-version -module $(LD_NOTEXT) \
        $(ELFUTILS_LIBS)
 
+babeltrace_plugin_lttng_utils_la_LIBADD =
+
+if ENABLE_DEBUG_INFO
+noinst_LTLIBRARIES = debug-info/libdebug-info.la
+
+debug_info_libdebug_info_la_SOURCES = \
+       debug-info/bin-info.c \
+       debug-info/bin-info.h \
+       debug-info/crc32.c \
+       debug-info/crc32.h \
+       debug-info/debug-info.c \
+       debug-info/debug-info.h \
+       debug-info/dwarf.c \
+       debug-info/dwarf.h \
+       debug-info/trace-ir-data-copy.c \
+       debug-info/trace-ir-data-copy.h \
+       debug-info/trace-ir-mapping.c \
+       debug-info/trace-ir-mapping.h \
+       debug-info/trace-ir-metadata-copy.c \
+       debug-info/trace-ir-metadata-copy.h \
+       debug-info/trace-ir-metadata-field-class-copy.c \
+       debug-info/trace-ir-metadata-field-class-copy.h \
+       debug-info/utils.c \
+       debug-info/utils.h
+
+debug_info_libdebug_info_la_LIBADD = \
+       $(top_builddir)/src/fd-cache/libbabeltrace2-fd-cache.la
+
+babeltrace_plugin_lttng_utils_la_LIBADD += \
+       debug-info/libdebug-info.la
+endif
+
 if !ENABLE_BUILT_IN_PLUGINS
 babeltrace_plugin_lttng_utils_la_LIBADD += \
        $(top_builddir)/src/lib/libbabeltrace2.la \
diff --git a/src/plugins/lttng-utils/debug-info/Makefile.am b/src/plugins/lttng-utils/debug-info/Makefile.am
deleted file mode 100644 (file)
index 9eb500a..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-# SPDX-License-Identifier: MIT
-
-noinst_LTLIBRARIES = libdebug-info.la
-
-libdebug_info_la_LIBADD = \
-       $(top_builddir)/src/fd-cache/libbabeltrace2-fd-cache.la
-
-libdebug_info_la_SOURCES = \
-       bin-info.c \
-       bin-info.h \
-       crc32.c \
-       crc32.h \
-       debug-info.c \
-       debug-info.h \
-       dwarf.c \
-       dwarf.h \
-       trace-ir-data-copy.c \
-       trace-ir-data-copy.h \
-       trace-ir-mapping.c \
-       trace-ir-mapping.h \
-       trace-ir-metadata-copy.c \
-       trace-ir-metadata-copy.h \
-       trace-ir-metadata-field-class-copy.c \
-       trace-ir-metadata-field-class-copy.h \
-       utils.c \
-       utils.h
This page took 0.025942 seconds and 4 git commands to generate.