From fc68067071a0a1888d9dbba2d27fdd138b96964e Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 18 Mar 2024 14:39:26 -0400 Subject: [PATCH] configure.ac: enable automake's subdir-objects option MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1