freebsd-dev/module/nvpair
Turbo Fredriksson 47a4a6fd5f 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 \
    --with-spl=$HOME/src/git/spl/ \
    --with-spl-obj=$HOME/src/git/spl/build
  $ 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>
Closes #1082
2015-07-17 13:42:51 -07:00
..
fnvpair.c Illumos #3464 2013-09-04 16:01:24 -07:00
Makefile.in Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
nvpair_alloc_fixed.c Add linux kernel module support 2010-08-31 13:41:58 -07:00
nvpair_alloc_spl.c Use vmem_alloc() for nvlists 2015-02-10 11:00:08 -08:00
nvpair.c Retire spl_module_init()/spl_module_fini() 2015-02-24 11:37:44 -08:00