2004-03-01 17:00:04 -03:00
|
|
|
|
2004-09-29 12:00:49 -04:00
|
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
|
|
|
2004-03-25 16:03:02 -04:00
|
|
|
case "$CC" in
|
2004-03-01 17:00:04 -03:00
|
|
|
|
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"
|
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"
|
2004-03-09 16:47:07 -03:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
|
|
|
|
win32)
|
2004-03-11 12:42:41 -03:00
|
|
|
cp auto/lib/pcre/patch.pcre.in $PCRE
|
|
|
|
cp auto/lib/pcre/patch.config.in $PCRE
|
2004-03-09 16:47:07 -03:00
|
|
|
cp auto/lib/pcre/$makefile $PCRE
|
2004-03-11 18:34:52 -03:00
|
|
|
|
2004-10-21 12:34:38 -03: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-29 13:43:58 -04:00
|
|
|
|
|
|
|
echo "$line" >> $MAKEFILE
|
|
|
|
echo " cd $pcre" >> $MAKEFILE
|
2004-03-14 16:46:25 -04:00
|
|
|
echo " \$(MAKE) -f $makefile pcre.h" >> $MAKEFILE
|
|
|
|
echo " cd ..\\..\\.." >> $MAKEFILE
|
|
|
|
echo >> $MAKEFILE
|
2004-03-29 13:43:58 -04:00
|
|
|
|
|
|
|
line="$PCRE/pcre.lib: $PCRE/pcre.h"
|
2004-10-21 12:34:38 -03:00
|
|
|
line=`echo $line | sed -e "s/\//$ngx_regex_dirsep/g"`
|
2004-03-29 13:43:58 -04:00
|
|
|
|
|
|
|
echo "$line" >> $MAKEFILE
|
|
|
|
echo " cd $pcre" >> $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
|
|
|
PCRE_OPT="CFLAGS=\"$PCRE_OPT\""
|
2004-03-11 12:42:41 -03:00
|
|
|
|
2004-03-11 18:34:52 -03:00
|
|
|
echo "$PCRE/pcre.h:" >> $MAKEFILE
|
2004-03-09 16:47:07 -03:00
|
|
|
echo " cd $PCRE \\" >> $MAKEFILE
|
2004-03-25 16:03:02 -04:00
|
|
|
echo " && CC=\"\$(CC)\" $PCRE_OPT \\" >> $MAKEFILE
|
2004-03-11 18:34:52 -03: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-09 16:47:07 -03:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo >> $MAKEFILE
|