mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 21:53:31 -06:00
67 lines
1.5 KiB
Plaintext
67 lines
1.5 KiB
Plaintext
|
|
case $CC in
|
|
|
|
cl)
|
|
makefile=makefile.msvc
|
|
;;
|
|
|
|
wcl386)
|
|
makefile=makefile.owc
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
win32)
|
|
echo "$ZLIB/zlib.lib:" >> $MAKEFILE
|
|
;;
|
|
|
|
*)
|
|
echo "$ZLIB/libz.a:" >> $MAKEFILE
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
done=NO
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
win32)
|
|
|
|
cp auto/lib/zlib/$makefile $ZLIB
|
|
echo " cd $ZLIB" >> $MAKEFILE
|
|
echo " \$(MAKE) -f $makefile CPU_OPT=$CPU_OPT LIBC=$LIBC">> $MAKEFILE
|
|
echo " cd ..\\..\\.." >> $MAKEFILE
|
|
|
|
done=YES
|
|
;;
|
|
|
|
|
|
*:i386 | *:i686)
|
|
if [ $ZLIB_ASM = pentiumpro ]; then
|
|
echo " cd $ZLIB \\" >> $MAKEFILE
|
|
echo " && cp contrib/asm686/match.S . \\" >> $MAKEFILE
|
|
echo " && CC=$CC CFLAGS=\"$ZLIB_OPT -DASMV\" \\" >> $MAKEFILE
|
|
echo " ./configure \\" >> $MAKEFILE
|
|
echo " && \$(MAKE) OBJA=match.o libz.a" >> $MAKEFILE
|
|
|
|
done=YES
|
|
fi
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
if [ $done = NO ]; then
|
|
echo " cd $ZLIB \\" >> $MAKEFILE
|
|
echo " && CC=$CC CFLAGS=\"$ZLIB_OPT\" ./configure \\" >> $MAKEFILE
|
|
echo " && \$(MAKE) libz.a" >> $MAKEFILE
|
|
fi
|
|
|
|
|
|
echo >> $MAKEFILE
|