mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 21:53:31 -06: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 OWC_OPT=$OWC_OPT" >> $MAKEFILE
|
|
echo " cd ..\\..\\.." >> $MAKEFILE
|
|
;;
|
|
|
|
|
|
*:i386)
|
|
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
|