nginx/auto/lib/zlib/make

84 lines
2.2 KiB
Plaintext
Raw Normal View History

2004-03-01 14:00:04 -06:00
2004-03-25 14:03:02 -06:00
case "$CC" in
2004-03-09 13:47:07 -06:00
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
2004-03-11 15:34:52 -06:00
done=NO
2004-03-09 13:47:07 -06:00
case $PLATFORM in
win32)
cp auto/lib/zlib/$makefile $ZLIB
echo " cd $ZLIB" >> $MAKEFILE
2004-03-11 15:34:52 -06:00
echo " \$(MAKE) -f $makefile CPU_OPT=$CPU_OPT LIBC=$LIBC">> $MAKEFILE
2004-03-09 13:47:07 -06:00
echo " cd ..\\..\\.." >> $MAKEFILE
2004-03-11 15:34:52 -06:00
done=YES
2004-03-09 13:47:07 -06:00
;;
2004-03-12 10:57:08 -06:00
# FreeBSD: i386
# Linux: i686
2004-03-09 13:47:07 -06:00
2004-03-10 11:55:19 -06:00
*:i386 | *:i686)
2004-03-12 10:57:08 -06:00
case $ZLIB_ASM in
pentium)
echo " cd $ZLIB \\" >> $MAKEFILE
echo " && cp contrib/asm586/match.S . \\" >> $MAKEFILE
2004-03-25 14:03:02 -06:00
echo " && CFLAGS=\"$ZLIB_OPT -DASMV\" \\" >> $MAKEFILE
echo " CC=\"\$(CC)\" \\" >> $MAKEFILE
2004-03-12 10:57:08 -06:00
echo " ./configure \\" >> $MAKEFILE
echo " && \$(MAKE) OBJA=match.o libz.a" >> $MAKEFILE
done=YES
;;
pentiumpro)
echo " cd $ZLIB \\" >> $MAKEFILE
echo " && cp contrib/asm686/match.S . \\" >> $MAKEFILE
2004-03-25 14:03:02 -06:00
echo " && CFLAGS=\"$ZLIB_OPT -DASMV\" \\" >> $MAKEFILE
echo " CC=\"\$(CC)\" \\" >> $MAKEFILE
2004-03-12 10:57:08 -06:00
echo " ./configure \\" >> $MAKEFILE
echo " && \$(MAKE) OBJA=match.o libz.a" >> $MAKEFILE
done=YES
;;
esac
2004-03-01 14:00:04 -06:00
;;
esac
2004-03-11 15:34:52 -06:00
if [ $done = NO ]; then
echo " cd $ZLIB \\" >> $MAKEFILE
2004-03-25 14:03:02 -06:00
echo " && CFLAGS=\"$ZLIB_OPT\" CC=\"\$(CC)\" \\" >> $MAKEFILE
echo " ./configure \\" >> $MAKEFILE
2004-03-11 15:34:52 -06:00
echo " && \$(MAKE) libz.a" >> $MAKEFILE
fi
2004-03-09 13:47:07 -06:00
echo >> $MAKEFILE