nginx/auto/lib/zlib/make

61 lines
1.6 KiB
Plaintext
Raw Normal View History

2004-03-01 14:00:04 -06:00
2004-03-09 13:47:07 -06:00
case $CC in
cl)
makefile=makefile.msvc
;;
wcl386)
makefile=makefile.owc
;;
esac
2004-03-01 14:00:04 -06:00
case $PLATFORM in
2004-03-09 13:47:07 -06: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
2004-03-10 14:56:39 -06:00
echo " \$(MAKE) -f $makefile CPU_OPT=$CPU_OPT" >> $MAKEFILE
2004-03-09 13:47:07 -06:00
echo " cd ..\\..\\.." >> $MAKEFILE
;;
2004-03-10 11:55:19 -06:00
*:i386 | *:i686)
2004-03-10 14:56:39 -06:00
if [ $ZLIB_ASM = pentiumpro ]; then
echo " cd $ZLIB \\" >> $MAKEFILE
echo " && cp contrib/asm686/match.S . \\" >> $MAKEFILE
echo " && CC=$CC $ZLIB_OPT ./configure \\" >> $MAKEFILE
echo " && \$(MAKE) OBJA=match.o" >> $MAKEFILE
else
echo " cd $ZLIB \\" >> $MAKEFILE
echo " && CC=$CC $ZLIB_OPT ./configure \\" >> $MAKEFILE
echo " && \$(MAKE)" >> $MAKEFILE
fi
2004-03-01 14:00:04 -06:00
;;
*)
2004-03-10 14:56:39 -06:00
echo " cd $ZLIB \\" >> $MAKEFILE
echo " && CC=$CC $ZLIB_OPT ./configure \\" >> $MAKEFILE
echo " && \$(MAKE)" >> $MAKEFILE
2004-03-01 14:00:04 -06:00
;;
esac
2004-03-09 13:47:07 -06:00
echo >> $MAKEFILE