Mercurial > hg > nginx
annotate auto/lib/pcre/make @ 1069:e6fc18f1a032
env
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 20 Jan 2007 19:26:48 +0000 |
parents | 2019117e6b38 |
children | d201e0461c3c |
rev | line source |
---|---|
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
1 |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
2 # Copyright (C) Igor Sysoev |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
297
diff
changeset
|
3 |
274
a1ea1ecc3eac
nginx-0.0.2-2004-03-01-23:00:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
4 |
467 | 5 case "$NGX_CC_NAME" in |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
6 |
467 | 7 msvc*) |
8 ngx_makefile=makefile.msvc | |
503 | 9 ngx_opt="CPU_OPT=\"$CPU_OPT\" LIBC=$LIBC" |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
10 ;; |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
11 |
467 | 12 owc*) |
13 ngx_makefile=makefile.owc | |
503 | 14 ngx_opt="CPU_OPT=\"$CPU_OPT\"" |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
295
diff
changeset
|
15 ;; |
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
295
diff
changeset
|
16 |
467 | 17 bcc) |
18 ngx_makefile=makefile.bcc | |
503 | 19 ngx_opt="-DCPU_OPT=\"$CPU_OPT\"" |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
20 ;; |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
21 |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
22 esac |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
23 |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
24 |
493 | 25 case "$NGX_PLATFORM" in |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
26 |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
27 win32) |
285
8f48e6366d09
nginx-0.0.2-2004-03-11-18:42:41 import
Igor Sysoev <igor@sysoev.ru>
parents:
284
diff
changeset
|
28 cp auto/lib/pcre/patch.pcre.in $PCRE |
503 | 29 cp auto/lib/pcre/patch.pcre.in.owc $PCRE |
285
8f48e6366d09
nginx-0.0.2-2004-03-11-18:42:41 import
Igor Sysoev <igor@sysoev.ru>
parents:
284
diff
changeset
|
30 cp auto/lib/pcre/patch.config.in $PCRE |
503 | 31 cp auto/lib/pcre/patch.pcre.c $PCRE |
467 | 32 cp auto/lib/pcre/$ngx_makefile $PCRE |
286
fc8dc489247e
nginx-0.0.2-2004-03-12-00:34:52 import
Igor Sysoev <igor@sysoev.ru>
parents:
285
diff
changeset
|
33 |
467 | 34 ngx_pcre=`echo $PCRE | sed -e "s/\//$ngx_regex_dirsep/g"` |
35 | |
36 cat << END >> $NGX_MAKEFILE | |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
295
diff
changeset
|
37 |
467 | 38 `echo "$PCRE/pcre.h: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"` |
39 cd $ngx_pcre | |
40 \$(MAKE) -f $ngx_makefile pcre.h | |
41 cd ..\\..\\.. | |
42 | |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
295
diff
changeset
|
43 |
467 | 44 `echo "$PCRE/pcre.lib: $PCRE/pcre.h" | sed -e "s/\//$ngx_regex_dirsep/g"` |
45 cd $ngx_pcre | |
46 \$(MAKE) -f $ngx_makefile $ngx_opt | |
47 cd ..\\..\\.. | |
297
ee394e997c77
nginx-0.0.3-2004-03-29-21:43:58 import
Igor Sysoev <igor@sysoev.ru>
parents:
295
diff
changeset
|
48 |
467 | 49 END |
50 | |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
51 ;; |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
52 |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
53 *) |
467 | 54 cat << END >> $NGX_MAKEFILE |
55 | |
56 $PCRE/pcre.h: $NGX_MAKEFILE | |
57 cd $PCRE \\ | |
523 | 58 && if [ -f Makefile ]; then \$(MAKE) distclean; fi \\ |
467 | 59 && CC="\$(CC)" CFLAGS="$PCRE_OPT" \\ |
60 ./configure --disable-shared | |
61 | |
62 | |
63 $PCRE/.libs/libpcre.a: $PCRE/pcre.h | |
64 cd $PCRE \\ | |
65 && \$(MAKE) libpcre.la | |
66 | |
67 END | |
68 | |
282
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
69 ;; |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
70 |
30310107dbc9
nginx-0.0.2-2004-03-09-22:47:07 import
Igor Sysoev <igor@sysoev.ru>
parents:
274
diff
changeset
|
71 esac |