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
|
|
|
|
echo " \$(MAKE) -f $makefile OWC_OPT=$OWC_OPT" >> $MAKEFILE
|
|
|
|
echo " cd ..\\..\\.." >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
2004-03-02 00:45:48 +08:00
|
|
|
SunOS:*:i386)
|
2004-03-10 03:47:07 +08:00
|
|
|
echo " cd $MD5 && \$(MAKE) x86-solaris" >> $MAKEFILE
|
2004-03-02 00:45:48 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
*:i386)
|
2004-03-10 03:47:07 +08:00
|
|
|
echo " cd $MD5 && \$(MAKE) x86-elf" >> $MAKEFILE
|
2004-03-02 00:45:48 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
if [ $CC = gcc ]; then
|
2004-03-10 03:47:07 +08:00
|
|
|
echo " cd $MD5 && \$(MAKE) gcc" >> $MAKEFILE
|
2004-03-02 00:45:48 +08:00
|
|
|
else
|
2004-03-10 03:47:07 +08:00
|
|
|
echo " cd $MD5 && \$(MAKE) cc" >> $MAKEFILE
|
2004-03-02 00:45:48 +08:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
2004-03-10 03:47:07 +08:00
|
|
|
echo >> $MAKEFILE
|