0
|
1
|
|
2 # Copyright (C) Igor Sysoev
|
660
|
3 # Copyright (C) Nginx, Inc.
|
0
|
4
|
|
5
|
16
|
6 case "$NGX_CC_NAME" in
|
0
|
7
|
16
|
8 msvc*)
|
|
9 ngx_makefile=makefile.msvc
|
52
|
10 ngx_opt="CPU_OPT=\"$CPU_OPT\" LIBC=$LIBC"
|
492
|
11 ngx_pcre="PCRE=\"$PCRE\""
|
0
|
12 ;;
|
|
13
|
16
|
14 owc*)
|
|
15 ngx_makefile=makefile.owc
|
52
|
16 ngx_opt="CPU_OPT=\"$CPU_OPT\""
|
492
|
17 ngx_pcre=`echo PCRE=\"$PCRE\" | sed -e "s/\//$ngx_regex_dirsep/g"`
|
0
|
18 ;;
|
|
19
|
16
|
20 bcc)
|
|
21 ngx_makefile=makefile.bcc
|
52
|
22 ngx_opt="-DCPU_OPT=\"$CPU_OPT\""
|
492
|
23 ngx_pcre=`echo \-DPCRE=\"$PCRE\" | sed -e "s/\//$ngx_regex_dirsep/g"`
|
0
|
24 ;;
|
|
25
|
|
26 esac
|
|
27
|
|
28
|
42
|
29 case "$NGX_PLATFORM" in
|
0
|
30
|
|
31 win32)
|
16
|
32
|
|
33 cat << END >> $NGX_MAKEFILE
|
0
|
34
|
492
|
35 `echo "$PCRE/pcre.lib: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
36 \$(MAKE) -f auto/lib/pcre/$ngx_makefile $ngx_pcre $ngx_opt
|
0
|
37
|
492
|
38 `echo "$PCRE/pcre.h:" | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
39 \$(MAKE) -f auto/lib/pcre/$ngx_makefile $ngx_pcre pcre.h
|
0
|
40
|
16
|
41 END
|
|
42
|
0
|
43 ;;
|
|
44
|
|
45 *)
|
16
|
46 cat << END >> $NGX_MAKEFILE
|
|
47
|
296
|
48 $PCRE/pcre.h: $PCRE/Makefile
|
|
49
|
|
50 $PCRE/Makefile: $NGX_MAKEFILE
|
16
|
51 cd $PCRE \\
|
72
|
52 && if [ -f Makefile ]; then \$(MAKE) distclean; fi \\
|
16
|
53 && CC="\$(CC)" CFLAGS="$PCRE_OPT" \\
|
656
|
54 ./configure --disable-shared $PCRE_CONF_OPT
|
16
|
55
|
296
|
56 $PCRE/.libs/libpcre.a: $PCRE/Makefile
|
16
|
57 cd $PCRE \\
|
|
58 && \$(MAKE) libpcre.la
|
|
59
|
|
60 END
|
|
61
|
0
|
62 ;;
|
|
63
|
|
64 esac
|