Annotation of embedaddon/nginx/auto/lib/openssl/make, revision 1.1.1.1
1.1 misho 1:
2: # Copyright (C) Igor Sysoev
3: # Copyright (C) Nginx, Inc.
4:
5:
6: case "$CC" in
7:
8: cl)
9:
10: cat << END >> $NGX_MAKEFILE
11:
12: $OPENSSL/openssl/include/openssl/ssl.h: $NGX_MAKEFILE
13: \$(MAKE) -f auto/lib/openssl/makefile.msvc \
14: OPENSSL="$OPENSSL" OPENSSL_OPT="$OPENSSL_OPT"
15:
16: END
17:
18: ;;
19:
20: bcc32)
21:
22: ngx_opt=`echo "-DOPENSSL=\"$OPENSSL\" -DOPENSSL_OPT=\"$OPENSSL_OPT\"" \
23: | sed -e "s/\//$ngx_regex_dirsep/g"`
24:
25: cat << END >> $NGX_MAKEFILE
26:
27: `echo "$OPENSSL\\openssl\\lib\\libeay32.lib: \
28: $OPENSSL\\openssl\\include\\openssl\\ssl.h" \
29: | sed -e "s/\//$ngx_regex_dirsep/g"`
30:
31: `echo "$OPENSSL\\openssl\\lib\\ssleay32.lib: \
32: $OPENSSL\\openssl\\include\\openssl\\ssl.h" \
33: | sed -e "s/\//$ngx_regex_dirsep/g"`
34:
35: `echo "$OPENSSL\\openssl\\include\\openssl\\ssl.h: $NGX_MAKEFILE" \
36: | sed -e "s/\//$ngx_regex_dirsep/g"`
37: \$(MAKE) -f auto/lib/openssl/makefile.bcc $ngx_opt
38:
39: END
40:
41: ;;
42:
43: *)
44: case $USE_THREADS in
45: NO) OPENSSL_OPT="$OPENSSL_OPT no-threads" ;;
46: *) OPENSSL_OPT="$OPENSSL_OPT threads" ;;
47: esac
48:
49: case $OPENSSL in
50: /*) ngx_prefix="$OPENSSL/.openssl" ;;
51: *) ngx_prefix="$PWD/$OPENSSL/.openssl" ;;
52: esac
53:
54: cat << END >> $NGX_MAKEFILE
55:
56: $OPENSSL/.openssl/include/openssl/ssl.h: $NGX_MAKEFILE
57: cd $OPENSSL \\
58: && \$(MAKE) clean \\
59: && ./config --prefix=$ngx_prefix no-shared $OPENSSL_OPT \\
60: && \$(MAKE) \\
61: && \$(MAKE) install LIBDIR=lib
62:
63: END
64:
65: ;;
66:
67: esac
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>