nginx/auto/lib/pcre/make

66 lines
2.1 KiB
Plaintext
Raw Normal View History

2004-03-02 04:00:04 +08:00
# Copyright (C) Igor Sysoev
2004-03-26 04:03:02 +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
2004-03-30 01:43:58 +08:00
opt="CPU_OPT=$CPU_OPT LIBC=$LIBC"
2004-03-10 03:47:07 +08:00
;;
wcl386)
makefile=makefile.owc
2004-03-30 01:43:58 +08:00
opt="CPU_OPT=$CPU_OPT"
;;
bcc32)
makefile=makefile.bcc
opt="-DCPU_OPT=$CPU_OPT"
2004-03-10 03:47:07 +08:00
;;
esac
case $PLATFORM in
win32)
2004-03-11 23:42:41 +08:00
cp auto/lib/pcre/patch.pcre.in $PCRE
cp auto/lib/pcre/patch.config.in $PCRE
2004-03-10 03:47:07 +08:00
cp auto/lib/pcre/$makefile $PCRE
2004-03-12 05:34:52 +08:00
pcre=`echo $PCRE | sed -e "s/\//$ngx_regex_dirsep/g"`
line=`echo $PCRE/pcre.h: | sed -e "s/\//$ngx_regex_dirsep/g"`
2004-03-30 01:43:58 +08:00
echo "$line" >> $MAKEFILE
echo " cd $pcre" >> $MAKEFILE
2004-03-15 04:46:25 +08:00
echo " \$(MAKE) -f $makefile pcre.h" >> $MAKEFILE
echo " cd ..\\..\\.." >> $MAKEFILE
echo >> $MAKEFILE
2004-03-30 01:43:58 +08:00
line="$PCRE/pcre.lib: $PCRE/pcre.h"
line=`echo $line | sed -e "s/\//$ngx_regex_dirsep/g"`
2004-03-30 01:43:58 +08:00
echo "$line" >> $MAKEFILE
echo " cd $pcre" >> $MAKEFILE
echo " \$(MAKE) -f $makefile $opt" >> $MAKEFILE
2004-03-10 03:47:07 +08:00
echo " cd ..\\..\\.." >> $MAKEFILE
;;
*)
2004-03-12 05:34:52 +08:00
PCRE_OPT="CFLAGS=\"$PCRE_OPT\""
2004-03-11 23:42:41 +08:00
2004-03-12 05:34:52 +08:00
echo "$PCRE/pcre.h:" >> $MAKEFILE
2004-03-10 03:47:07 +08:00
echo " cd $PCRE \\" >> $MAKEFILE
2004-03-26 04:03:02 +08:00
echo " && CC=\"\$(CC)\" $PCRE_OPT \\" >> $MAKEFILE
2004-03-12 05:34:52 +08:00
echo " ./configure --disable-shared" >> $MAKEFILE
echo >> $MAKEFILE
echo "$PCRE/.libs/libpcre.a: $PCRE/pcre.h" >> $MAKEFILE
echo " cd $PCRE \\" >> $MAKEFILE
echo " && \$(MAKE) libpcre.la" >> $MAKEFILE
2004-03-10 03:47:07 +08:00
;;
esac
echo >> $MAKEFILE