tools: fix out-of-tree builds
authorThierry Reding <treding@nvidia.com>
Mon, 6 Mar 2017 22:27:41 +0000 (23:27 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Tue, 7 Mar 2017 10:04:08 +0000 (11:04 +0100)
commit6ccd7ecc3972105dcbd06f521db5508d4b1856c4
treeab27be841b00bc03d19ba05311bcc09e28e24215
parent4cd063e9b3cf7b4f91ba34b8dbdc5e61df218ff2
tools: fix out-of-tree builds

When building out of tree, the config.h header file and the libgpiod.la
file are generated in the build rather than the source directory.

While at it, link to libgpiod.la directly rather than via the -L and -l
linker options to enable extra libtool magic.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/tools/Makefile.am