Mercurial > hg > nginx-vendor-0-8
comparison auto/lib/pcre/make @ 16:74b1868dd3cd NGINX_0_1_8
nginx 0.1.8
*) Bugfix: in the ngx_http_autoindex_module if the long file names were
in the listing.
*) Feature: the "^~" modifier in the location directive.
*) Feature: the proxy_max_temp_file_size directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 20 Nov 2004 00:00:00 +0300 |
parents | 4b2dafa26fe2 |
children | 6f8b0dc0f8dd |
comparison
equal
deleted
inserted
replaced
15:0503cb60c4e4 | 16:74b1868dd3cd |
---|---|
1 | 1 |
2 # Copyright (C) Igor Sysoev | 2 # Copyright (C) Igor Sysoev |
3 | 3 |
4 | 4 |
5 case "$CC" in | 5 case "$NGX_CC_NAME" in |
6 | 6 |
7 cl) | 7 msvc*) |
8 makefile=makefile.msvc | 8 ngx_makefile=makefile.msvc |
9 opt="CPU_OPT=$CPU_OPT LIBC=$LIBC" | 9 ngx_opt="CPU_OPT=$CPU_OPT LIBC=$LIBC" |
10 ;; | 10 ;; |
11 | 11 |
12 wcl386) | 12 owc*) |
13 makefile=makefile.owc | 13 ngx_makefile=makefile.owc |
14 opt="CPU_OPT=$CPU_OPT" | 14 ngx_opt="CPU_OPT=$CPU_OPT" |
15 ;; | 15 ;; |
16 | 16 |
17 bcc32) | 17 bcc) |
18 makefile=makefile.bcc | 18 ngx_makefile=makefile.bcc |
19 opt="-DCPU_OPT=$CPU_OPT" | 19 ngx_opt="-DCPU_OPT=$CPU_OPT" |
20 ;; | 20 ;; |
21 | 21 |
22 esac | 22 esac |
23 | 23 |
24 | 24 |
25 case $PLATFORM in | 25 case $PLATFORM in |
26 | 26 |
27 win32) | 27 win32) |
28 cp auto/lib/pcre/patch.pcre.in $PCRE | 28 cp auto/lib/pcre/patch.pcre.in $PCRE |
29 cp auto/lib/pcre/patch.config.in $PCRE | 29 cp auto/lib/pcre/patch.config.in $PCRE |
30 cp auto/lib/pcre/$makefile $PCRE | 30 cp auto/lib/pcre/$ngx_makefile $PCRE |
31 | 31 |
32 pcre=`echo $PCRE | sed -e "s/\//$ngx_regex_dirsep/g"` | 32 ngx_pcre=`echo $PCRE | sed -e "s/\//$ngx_regex_dirsep/g"` |
33 line=`echo $PCRE/pcre.h: | sed -e "s/\//$ngx_regex_dirsep/g"` | |
34 | 33 |
35 echo "$line" >> $MAKEFILE | 34 cat << END >> $NGX_MAKEFILE |
36 echo " cd $pcre" >> $MAKEFILE | |
37 echo " \$(MAKE) -f $makefile pcre.h" >> $MAKEFILE | |
38 echo " cd ..\\..\\.." >> $MAKEFILE | |
39 echo >> $MAKEFILE | |
40 | 35 |
41 line="$PCRE/pcre.lib: $PCRE/pcre.h" | 36 `echo "$PCRE/pcre.h: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"` |
42 line=`echo $line | sed -e "s/\//$ngx_regex_dirsep/g"` | 37 cd $ngx_pcre |
38 \$(MAKE) -f $ngx_makefile pcre.h | |
39 cd ..\\..\\.. | |
43 | 40 |
44 echo "$line" >> $MAKEFILE | 41 |
45 echo " cd $pcre" >> $MAKEFILE | 42 `echo "$PCRE/pcre.lib: $PCRE/pcre.h" | sed -e "s/\//$ngx_regex_dirsep/g"` |
46 echo " \$(MAKE) -f $makefile $opt" >> $MAKEFILE | 43 cd $ngx_pcre |
47 echo " cd ..\\..\\.." >> $MAKEFILE | 44 \$(MAKE) -f $ngx_makefile $ngx_opt |
45 cd ..\\..\\.. | |
46 | |
47 END | |
48 | |
48 ;; | 49 ;; |
49 | 50 |
50 *) | 51 *) |
51 PCRE_OPT="CFLAGS=\"$PCRE_OPT\"" | 52 cat << END >> $NGX_MAKEFILE |
52 | 53 |
53 echo "$PCRE/pcre.h:" >> $MAKEFILE | 54 $PCRE/pcre.h: $NGX_MAKEFILE |
54 echo " cd $PCRE \\" >> $MAKEFILE | 55 cd $PCRE \\ |
55 echo " && CC=\"\$(CC)\" $PCRE_OPT \\" >> $MAKEFILE | 56 && if [ -f Makefile ]; then \$(MAKE) distclean; fi |
56 echo " ./configure --disable-shared" >> $MAKEFILE | 57 |
57 echo >> $MAKEFILE | 58 cd $PCRE \\ |
58 echo "$PCRE/.libs/libpcre.a: $PCRE/pcre.h" >> $MAKEFILE | 59 && CC="\$(CC)" CFLAGS="$PCRE_OPT" \\ |
59 echo " cd $PCRE \\" >> $MAKEFILE | 60 ./configure --disable-shared |
60 echo " && \$(MAKE) libpcre.la" >> $MAKEFILE | 61 |
62 | |
63 $PCRE/.libs/libpcre.a: $PCRE/pcre.h | |
64 cd $PCRE \\ | |
65 && \$(MAKE) libpcre.la | |
66 | |
67 END | |
68 | |
61 ;; | 69 ;; |
62 | 70 |
63 esac | 71 esac |
64 | |
65 echo >> $MAKEFILE |