nginx-quic/auto/lib/md5/make

96 lines
2.3 KiB
Text
Raw Normal View History

2004-03-01 13:45:48 -03:00
2004-03-25 16:03:02 -04:00
case "$CC" in
2004-03-09 16:47:07 -03:00
cl)
makefile=makefile.msvc
2004-03-29 13:43:58 -04:00
opt="CPU_OPT=$CPU_OPT LIBC=$LIBC MD5_ASM=$MD5_ASM"
2004-03-09 16:47:07 -03:00
;;
wcl386)
makefile=makefile.owc
2004-03-29 13:43:58 -04:00
opt="CPU_OPT=$CPU_OPT"
;;
bcc32)
makefile=makefile.bcc
opt="-DCPU_OPT=$CPU_OPT -DMD5_ASM=$MD5_ASM"
2004-03-09 16:47:07 -03:00
;;
esac
case $PLATFORM in
win32)
2004-03-29 13:43:58 -04:00
line=`echo $MD5/md5.lib: | sed -e "s/\//$DIRSEP/g"`
echo "$line" >> $MAKEFILE
2004-03-09 16:47:07 -03:00
;;
*)
echo "$MD5/libmd5.a:" >> $MAKEFILE
;;
esac
2004-03-01 13:45:48 -03:00
2004-03-11 18:34:52 -03:00
done=NO
2004-03-01 13:45:48 -03:00
case $PLATFORM in
2004-03-09 16:47:07 -03:00
win32)
2004-03-29 13:43:58 -04:00
md5=`echo $MD5 | sed -e "s/\//$DIRSEP/g"`
2004-03-09 16:47:07 -03:00
cp auto/lib/md5/$makefile $MD5
2004-03-29 13:43:58 -04:00
echo " cd $md5" >> $MAKEFILE
echo " \$(MAKE) -f $makefile $opt" >> $MAKEFILE
2004-03-09 16:47:07 -03:00
echo " cd ..\\..\\.." >> $MAKEFILE
2004-03-11 18:34:52 -03:00
done=YES
2004-03-09 16:47:07 -03:00
;;
2004-03-10 14:55:19 -03:00
SunOS:*:i86pc)
2004-03-10 17:56:39 -03:00
if [ $MD5_ASM = YES ]; then
2004-03-11 18:34:52 -03:00
MD5_OPT="CFLAGS=\"$MD5_OPT -DSOL -DMD5_ASM -DL_ENDIAN\""
2004-03-10 17:56:39 -03:00
echo " cd $MD5 \\" >> $MAKEFILE
echo " && \$(MAKE) $MD5_OPT \\" >> $MAKEFILE
2004-03-12 13:57:08 -03:00
echo " MD5_ASM_OBJ=asm/mx86-sol.o \\" >> $MAKEFILE
2004-03-25 16:03:02 -04:00
echo " CC=\"\$(CC)\" CPP=\"\$(CPP)\" \\" >> $MAKEFILE
echo " libmd5.a" >> $MAKEFILE
2004-03-11 18:34:52 -03:00
done=YES
2004-03-10 17:56:39 -03:00
fi
2004-03-01 13:45:48 -03:00
;;
2004-03-11 18:34:52 -03:00
# FreeBSD: i386
# Linux: i686
2004-03-11 12:42:41 -03:00
*:i386 | *:i686)
2004-03-10 17:56:39 -03:00
if [ $MD5_ASM = YES ]; then
2004-03-11 18:34:52 -03:00
MD5_OPT="CFLAGS=\"$MD5_OPT -DELF -DMD5_ASM -DL_ENDIAN\""
2004-03-10 17:56:39 -03:00
echo " cd $MD5 \\" >> $MAKEFILE
echo " && \$(MAKE) $MD5_OPT \\" >> $MAKEFILE
2004-03-11 18:34:52 -03:00
echo " MD5_ASM_OBJ=asm/mx86-elf.o \\" >> $MAKEFILE
2004-03-25 16:03:02 -04:00
echo " CC=\"\$(CC)\" CPP=\"\$(CPP)\" \\" >> $MAKEFILE
echo " libmd5.a" >> $MAKEFILE
2004-03-01 13:45:48 -03:00
2004-03-11 18:34:52 -03:00
done=YES
fi
2004-03-01 13:45:48 -03:00
;;
esac
2004-03-11 18:34:52 -03:00
if [ $done = NO ]; then
echo " cd $MD5 \\" >> $MAKEFILE
echo " && \$(MAKE) CFLAGS=\"$MD5_OPT\" \\" >> $MAKEFILE
2004-03-25 16:03:02 -04:00
echo " MD5_ASM_OBJ= CC=\"\$(CC)\" libmd5.a" >> $MAKEFILE
2004-03-11 18:34:52 -03:00
fi
2004-03-09 16:47:07 -03:00
echo >> $MAKEFILE