]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
configure: Use automake's option "subdir-objects"
authorYann Droneaud <ydroneaud@opteya.com>
Tue, 16 Jul 2013 21:59:49 +0000 (23:59 +0200)
committerSean Hefty <sean.hefty@intel.com>
Tue, 16 Jul 2013 23:06:58 +0000 (16:06 -0700)
Following advice in "Autotool Mythbuster" [1], option subdir-objects
can be used to have Makefiles create object files in the same
directory than theirs source files.

It reduces clobbering in the build directory.

[1] "Autotool Mythbuster", by Diego Elio "Flameeyes" Petten`o
http://www.flameeyes.eu/autotools-mythbuster/automake/nonrecursive.html

Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
configure.ac

index a85ce4923a026709de9f5b41a728fdfcb353b3ec..9fd9e9e662261661c2e09c99e5236f9b14134f42 100644 (file)
@@ -6,7 +6,7 @@ AC_CONFIG_SRCDIR([src/cma.c])
 AC_CONFIG_AUX_DIR(config)
 AC_CONFIG_MACRO_DIR(config)
 AC_CONFIG_HEADERS([config.h])
-AM_INIT_AUTOMAKE([foreign])
+AM_INIT_AUTOMAKE([foreign subdir-objects])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 LT_INIT