From: Simon Marchi Date: Mon, 18 Mar 2024 18:39:26 +0000 (-0400) Subject: configure.ac: enable automake's subdir-objects option X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fc68067071a0a1888d9dbba2d27fdd138b96964e;p=lttng-tools.git configure.ac: enable automake's subdir-objects option From [1]: subdir-objects If this option is specified, then objects are placed into the subdirectory of the build directory corresponding to the subdirectory of the source file. For instance, if the source file is subdir/file.cxx, then the output file would be subdir/file.o. See Program and Library Variables. This will allow reducing the number of Makefiles, but placing rules in Makefiles in parent directories, instead of having Makefiles in every single directory with something that needs to be built. [1] https://www.gnu.org/software/automake/manual/html_node/List-of-Automake-options.html Change-Id: Ic0c6ee5d809dee6b9e560239abd15408b28d9695 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- diff --git a/configure.ac b/configure.ac index b6309378c..b360f0984 100644 --- a/configure.ac +++ b/configure.ac @@ -9,7 +9,7 @@ AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_TARGET AC_CANONICAL_HOST -AM_INIT_AUTOMAKE([1.12 foreign dist-bzip2 no-dist-gzip tar-pax nostdinc]) +AM_INIT_AUTOMAKE([1.12 foreign dist-bzip2 no-dist-gzip tar-pax nostdinc subdir-objects]) AM_MAINTAINER_MODE([enable]) # Enable silent rules if available (Introduced in AM 1.11)