nginx/auto/lib/pcre/make

66 lines
2.1 KiB
Plaintext
Raw Normal View History

2004-03-01 14:00:04 -06:00
# Copyright (C) Igor Sysoev
2004-03-25 14:03:02 -06:00
case "$CC" in
2004-03-01 14:00:04 -06:00
2004-03-09 13:47:07 -06:00
cl)
makefile=makefile.msvc
2004-03-29 11:43:58 -06:00
opt="CPU_OPT=$CPU_OPT LIBC=$LIBC"
2004-03-09 13:47:07 -06:00
;;
wcl386)
makefile=makefile.owc
2004-03-29 11:43:58 -06:00
opt="CPU_OPT=$CPU_OPT"
;;
bcc32)
makefile=makefile.bcc
opt="-DCPU_OPT=$CPU_OPT"
2004-03-09 13:47:07 -06:00
;;
esac
case $PLATFORM in
win32)
2004-03-11 09:42:41 -06:00
cp auto/lib/pcre/patch.pcre.in $PCRE
cp auto/lib/pcre/patch.config.in $PCRE
2004-03-09 13:47:07 -06:00
cp auto/lib/pcre/$makefile $PCRE
2004-03-11 15:34:52 -06: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 11:43:58 -06:00
echo "$line" >> $MAKEFILE
echo " cd $pcre" >> $MAKEFILE
2004-03-14 14:46:25 -06:00
echo " \$(MAKE) -f $makefile pcre.h" >> $MAKEFILE
echo " cd ..\\..\\.." >> $MAKEFILE
echo >> $MAKEFILE
2004-03-29 11:43:58 -06:00
line="$PCRE/pcre.lib: $PCRE/pcre.h"
line=`echo $line | sed -e "s/\//$ngx_regex_dirsep/g"`
2004-03-29 11:43:58 -06:00
echo "$line" >> $MAKEFILE
echo " cd $pcre" >> $MAKEFILE
echo " \$(MAKE) -f $makefile $opt" >> $MAKEFILE
2004-03-09 13:47:07 -06:00
echo " cd ..\\..\\.." >> $MAKEFILE
;;
*)
2004-03-11 15:34:52 -06:00
PCRE_OPT="CFLAGS=\"$PCRE_OPT\""
2004-03-11 09:42:41 -06:00
2004-03-11 15:34:52 -06:00
echo "$PCRE/pcre.h:" >> $MAKEFILE
2004-03-09 13:47:07 -06:00
echo " cd $PCRE \\" >> $MAKEFILE
2004-03-25 14:03:02 -06:00
echo " && CC=\"\$(CC)\" $PCRE_OPT \\" >> $MAKEFILE
2004-03-11 15:34:52 -06: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 13:47:07 -06:00
;;
esac
echo >> $MAKEFILE