]> git.lizzy.rs Git - zlib.git/commit
Add support for VPATH builds in contrib/minizip.
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 17 Jan 2012 21:06:41 +0000 (15:06 -0600)
committerMark Adler <madler@alumni.caltech.edu>
Sat, 21 Jan 2012 20:56:57 +0000 (12:56 -0800)
commitf0cff24214d437ef28d0eb92f9bc45a36cf25530
tree4323a46e2df12e47d09fd55f7b0e6b0c35cd3ac9
parent81015585d27875e250bdb8f375f2dd999e31a73f
Add support for VPATH builds in contrib/minizip.

Instead of using relative paths directly, use paths relative to
top_srcdir and top_builddir to refer to source files and built files,
respectively.

Note that the toplevel zlib configure script still does not have any
special support for out-of-tree builds.  But now you can do

(cd contrib/minizip && autoreconf -fis)

mkdir -p BUILD/test
cp *.c *.h *.in zlib.map configure zlib.3 BUILD
cp test/*.c BUILD/test
(cd BUILD && ./configure --shared)
(cd BUILD && make)

mkdir -p BUILD/contrib/minizip
cd BUILD/contrib/minizip
../../../contrib/minizip/configure
make

While at it, move the include path and library path settings to
CPPFLAGS and LDFLAGS respectively instead of setting both in CFLAGS.
Thanks to Mike Frysinger for advice.
contrib/minizip/Makefile.am