nginx/auto/lib/openssl/make
Igor Sysoev 3d746ac4f0 use $(CURDIR) instead of "..\..\.." because the later does not allow to use
options as --with-zlib=../zlib-1.2.3.  It seems there is no common way
to learn the current directory in Win32 make's: although nmake has MAKEDIR
variable, nevertheless Borland make's MAKEDIR is the directory where make
is installed, and OpenWatcom wmake has no MAKEDIR at all.
2009-05-11 18:02:06 +00:00

62 lines
1.2 KiB
Plaintext

# Copyright (C) Igor Sysoev
if test -n "$OPENSSL_OPT"; then
NGX_OPENSSL_CONFIG="./Configure \"$OPENSSL_OPT\""
else
NGX_OPENSSL_CONFIG="./config"
fi
case $USE_THREADS in
NO) NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG no-threads" ;;
*) NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG threads" ;;
esac
case "$CC" in
cl)
cat << END >> $NGX_MAKEFILE
$OPENSSL/out32/ssleay32.lib:
cd $OPENSSL
perl Configure VC-WIN32 no-shared
ms\\do_ms
\$(MAKE) -f ms\\nt.mak
cd \$(CURDIR)
END
;;
bcc32)
cat << END >> $NGX_MAKEFILE
`echo "$OPENSSL\\out32\\libeay32.lib: $OPENSSL\\out32\\ssleay32.lib" \
| sed -e "s/\//$ngx_regex_dirsep/g"`
`echo "$OPENSSL\\out32\\ssleay32.lib:" | sed -e "s/\//$ngx_regex_dirsep/g"`
cd `echo "$OPENSSL" | sed -e "s/\//$ngx_regex_dirsep/g"`
perl Configure BC-32 no-shared
ms\\do_nasm
\$(MAKE) -f ms\\bcb.mak
cd \$(CURDIR)
END
;;
*)
cat << END >> $NGX_MAKEFILE
$OPENSSL/libssl.a:
cd $OPENSSL \\
&& \$(MAKE) clean \\
&& $NGX_OPENSSL_CONFIG no-shared \\
&& \$(MAKE)
END
;;
esac