2004-03-02 04:00:04 +08:00
|
|
|
|
2004-03-10 03:47:07 +08:00
|
|
|
case $CC in
|
2004-03-02 04:00:04 +08:00
|
|
|
|
2004-03-10 03:47:07 +08:00
|
|
|
cl)
|
|
|
|
makefile=makefile.msvc
|
|
|
|
;;
|
|
|
|
|
|
|
|
wcl386)
|
|
|
|
makefile=makefile.owc
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
|
|
|
|
win32)
|
|
|
|
echo "$PCRE/pcre.lib:" >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "$PCRE/.libs/libpcre.a:" >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
|
|
|
|
win32)
|
|
|
|
cp auto/lib/pcre/patch.pcre $PCRE
|
|
|
|
cp auto/lib/pcre/patch.config $PCRE
|
|
|
|
cp auto/lib/pcre/$makefile $PCRE
|
|
|
|
echo " cd $PCRE" >> $MAKEFILE
|
2004-03-11 04:56:39 +08:00
|
|
|
echo " \$(MAKE) -f $makefile CPU_OPT=$CPU_OPT" >> $MAKEFILE
|
2004-03-10 03:47:07 +08:00
|
|
|
echo " cd ..\\..\\.." >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo " cd $PCRE \\" >> $MAKEFILE
|
2004-03-11 04:56:39 +08:00
|
|
|
echo " && CC=$CC $PCRE_OPT \\" >> $MAKEFILE
|
|
|
|
echo " ./configure --disable-shared \\" >> $MAKEFILE
|
2004-03-10 03:47:07 +08:00
|
|
|
echo " && \$(MAKE)" >> $MAKEFILE
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo >> $MAKEFILE
|