2004-03-02 00:45:48 +08:00
|
|
|
|
2004-03-10 03:47:07 +08:00
|
|
|
case $CC in
|
|
|
|
|
|
|
|
cl)
|
|
|
|
makefile=makefile.msvc
|
|
|
|
;;
|
|
|
|
|
|
|
|
wcl386)
|
|
|
|
makefile=makefile.owc
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
|
|
|
|
win32)
|
|
|
|
echo "$MD5/md5.lib:" >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "$MD5/libmd5.a:" >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
2004-03-02 00:45:48 +08:00
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
|
2004-03-10 03:47:07 +08:00
|
|
|
win32)
|
|
|
|
|
|
|
|
cp auto/lib/md5/$makefile $MD5
|
|
|
|
echo " cd $MD5" >> $MAKEFILE
|
2004-03-11 04:56:39 +08:00
|
|
|
echo $ngx_n " \$(MAKE) -f $makefile" $ngx_c >> $MAKEFILE
|
|
|
|
echo " CPU_OPT=$CPU_OPT MD5_ASM=$MD5_ASM" >> $MAKEFILE
|
2004-03-10 03:47:07 +08:00
|
|
|
echo " cd ..\\..\\.." >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
2004-03-11 01:55:19 +08:00
|
|
|
SunOS:*:i86pc)
|
2004-03-11 04:56:39 +08:00
|
|
|
if [ $MD5_ASM = YES ]; then
|
|
|
|
echo " cd $MD5 && \$(MAKE) $MD5_OPT x86-solaris" >> $MAKEFILE
|
|
|
|
else
|
|
|
|
echo " cd $MD5 \\" >> $MAKEFILE
|
|
|
|
echo " && \$(MAKE) $MD5_OPT \\" >> $MAKEFILE
|
|
|
|
echo " MD5_ASM_OBJ= CC=$CC all" >> $MAKEFILE
|
|
|
|
fi
|
2004-03-02 00:45:48 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
*:i386)
|
2004-03-11 04:56:39 +08:00
|
|
|
if [ $MD5_ASM = YES ]; then
|
|
|
|
echo " cd $MD5 && \$(MAKE) $MD5_OPT x86-elf" >> $MAKEFILE
|
|
|
|
else
|
|
|
|
echo " cd $MD5 \\" >> $MAKEFILE
|
|
|
|
echo " && \$(MAKE) $MD5_OPT \\" >> $MAKEFILE
|
|
|
|
echo " MD5_ASM_OBJ= CC=$CC all" >> $MAKEFILE
|
|
|
|
fi
|
2004-03-02 00:45:48 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
2004-03-11 04:56:39 +08:00
|
|
|
echo " cd $MD5 \\" >> $MAKEFILE
|
|
|
|
echo " && \$(MAKE) $MD5_OPT MD5_ASM_OBJ= CC=$CC all" >> $MAKEFILE
|
2004-03-02 00:45:48 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
2004-03-10 03:47:07 +08:00
|
|
|
echo >> $MAKEFILE
|