build: fix VPATH builds
commit3f09b90d211a86c1d002a786a5ffc34b72fba780
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 14 Dec 2012 16:18:03 +0000 (14 17:18 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 18 Dec 2012 09:06:20 +0000 (18 10:06 +0100)
tree83cf6a8b7031af509712a70ff92f69a4366e0861
parentd815896d4c07acbf12ca4b57b2ad530d85147de4
build: fix VPATH builds

* configure (fn_dirname): New.
Use it to ensure the creation of proper symlinks to Makefiles.
(config.mak): Define top_builddir and top_srcdir.
(CPPFLAGS): Be sure to find the headers.
* Makefile, lib/Makefile, tests/Makefile, tests2/Makefile: Adjust
to set VPATH properly.
Fix confusion between top_builddir and top_srcdir.
Makefile
README
configure
lib/Makefile
tests/Makefile
tests2/Makefile