3 # This script is based on instructions from USAGE.txt in the official
4 # zlib DLL distribution. It suggests to use the name "zdll" for the
5 # import library's base name, however, using "z.dll" seems to be more in
6 # line with MinGW's naming conventions and does not require build
7 # scripts to be modified to link "-lzdll" instead of "-lz".
9 source mingw-environment.sh
13 PREFIX
="$MINGW_PREFIX"
19 $TARGET-dlltool -D $
(basename $dll) -d $def -l $imp
21 install -d $PREFIX/include
$PREFIX/lib
$PREFIX/bin
22 install include
/zlib.h include
/zconf.h
$PREFIX/include
23 install $imp $PREFIX/lib
24 install $dll $PREFIX/bin