]> git.proxmox.com Git - mirror_spl.git/commit
Support parallel build trees (VPATH builds)
authorTurbo Fredriksson <turbo@bayour.com>
Wed, 11 Jun 2014 01:57:48 +0000 (03:57 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 17 Jul 2015 19:53:11 +0000 (12:53 -0700)
commit37d7cd94f326896ffbd3f7609a20562c000cd4c8
tree794913403abb6775188c9ee302c8e7fc2f73bd1f
parent77ab5dd33a99bdf7fb062f0ea327582236a225b3
Support parallel build trees (VPATH builds)

Build products from an out of tree build should be written
relative to the build directory.  Sources should be referred
to by their locations in the source directory.

This is accomplished by adding the 'src' and 'obj' variables
for the module Makefile.am, using relative paths to reference
source files, and by setting VPATH when source files are not
co-located with the Makefile.  This enables the following:

  $ mkdir build
  $ cd build
  $ ../configure
  $ make -s

This change also has the advantage of resolving the following
warning which is generated by modern versions of automake.

  Makefile.am:00: warning: source file 'xxx' is in a subdirectory,
  Makefile.am:00: but option 'subdir-objects' is disabled

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue zfsonlinux/zfs#1082
Makefile.am
config/rpm.am
include/util/Makefile.am
module/spl/Makefile.in
module/splat/Makefile.in
scripts/Makefile.am