fio: allow for build in separate build directory
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 8 Jul 2015 20:27:35 +0000 (13:27 -0700)
committerJeremy Fitzhardinge <jeremy@goop.org>
Wed, 8 Jul 2015 20:27:35 +0000 (13:27 -0700)
commitc61a3a44b63cf9d0d1d5d511e196ab4f3153341d
tree526e1b63f2c6e20926699734bd496f718f438f88
parent56d50ff3fccfd841921c799f6958ca1e33483959
fio: allow for build in separate build directory

Change configure so that it will use its current directory for building,
and the path to the script itself as the source directory.

Change the Makefile to use VPATH to find the source files. Only a few other
things needed to be touched:
 - use the full path to the source in wildcard, then strip it off again
 - search both build and source for header files
 - FIO-VERSION-GEN is in source
 - make directories in build as needed
 - use $< to refer to input files
 - install non-executables from source

Signed-off-by: Jeremy Fitzhardinge <jeremy@exablox.com>
Makefile
configure