mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 04:39:00 +08:00
53 lines
1.1 KiB
Plaintext
53 lines
1.1 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
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
win32)
|
|
|
|
cp auto/lib/zlib/$makefile $ZLIB
|
|
echo " cd $ZLIB" >> $MAKEFILE
|
|
echo " \$(MAKE) -f $makefile LIB_OPT=$LIB_OPT" >> $MAKEFILE
|
|
echo " cd ..\\..\\.." >> $MAKEFILE
|
|
;;
|
|
|
|
|
|
*:i386 | *:i686)
|
|
echo " cd $ZLIB \\" >> $MAKEFILE
|
|
echo " && cp contrib/asm686/match.S . \\" >> $MAKEFILE
|
|
echo " && CFLAGS=\"-O3 -DASMV\" ./configure \\" >> $MAKEFILE
|
|
echo " && \$(MAKE) OBJA=match.o" >> $MAKEFILE
|
|
;;
|
|
|
|
*)
|
|
echo " cd $ZLIB && ./configure && \$(MAKE)" >> $MAKEFILE
|
|
;;
|
|
|
|
esac
|
|
|
|
echo >> $MAKEFILE
|