2004-03-01 17:00:04 -03:00
|
|
|
|
2004-03-09 16:47:07 -03:00
|
|
|
case $CC in
|
|
|
|
|
|
|
|
cl)
|
|
|
|
makefile=makefile.msvc
|
|
|
|
;;
|
|
|
|
|
|
|
|
wcl386)
|
|
|
|
makefile=makefile.owc
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
2004-03-01 17:00:04 -03:00
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
|
2004-03-09 16:47:07 -03:00
|
|
|
win32)
|
|
|
|
echo "$ZLIB/zlib.lib:" >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "$ZLIB/libz.a:" >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
|
|
|
|
win32)
|
|
|
|
|
|
|
|
cp auto/lib/zlib/$makefile $ZLIB
|
|
|
|
echo " cd $ZLIB" >> $MAKEFILE
|
|
|
|
echo " \$(MAKE) -f $makefile OWC_OPT=$OWC_OPT" >> $MAKEFILE
|
|
|
|
echo " cd ..\\..\\.." >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
2004-03-01 17:00:04 -03:00
|
|
|
*:i386)
|
2004-03-09 16:47:07 -03:00
|
|
|
echo " cd $ZLIB \\" >> $MAKEFILE
|
|
|
|
echo " && cp contrib/asm686/match.S . \\" >> $MAKEFILE
|
|
|
|
echo " && CFLAGS=\"-O3 -DASMV\" ./configure \\" >> $MAKEFILE
|
|
|
|
echo " && \$(MAKE) OBJA=match.o" >> $MAKEFILE
|
2004-03-01 17:00:04 -03:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
2004-03-09 16:47:07 -03:00
|
|
|
echo " cd $ZLIB && ./configure && \$(MAKE)" >> $MAKEFILE
|
2004-03-01 17:00:04 -03:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
2004-03-09 16:47:07 -03:00
|
|
|
echo >> $MAKEFILE
|