summaryrefslogtreecommitdiffhomepage
path: root/auto/lib/sha1/make
diff options
context:
space:
mode:
Diffstat (limited to 'auto/lib/sha1/make')
-rw-r--r--auto/lib/sha1/make9
1 files changed, 4 insertions, 5 deletions
diff --git a/auto/lib/sha1/make b/auto/lib/sha1/make
index 90f3af995..6c89acf1b 100644
--- a/auto/lib/sha1/make
+++ b/auto/lib/sha1/make
@@ -7,16 +7,19 @@ case "$NGX_CC_NAME" in
msvc*)
ngx_makefile=makefile.msvc
ngx_opt="CPU_OPT=\"$CPU_OPT\" LIBC=$LIBC SHA1_ASM=$SHA1_ASM"
+ ngx_sha1="SHA1=\"$SHA1\""
;;
owc*)
ngx_makefile=makefile.owc
ngx_opt="CPU_OPT=\"$CPU_OPT\""
+ ngx_sha1=`echo SHA1=\"$SHA1\" | sed -e "s/\//$ngx_regex_dirsep/g"`
;;
bcc)
ngx_makefile=makefile.bcc
ngx_opt="-DCPU_OPT=\"$CPU_OPT\" -DSHA1_ASM=$SHA1_ASM"
+ ngx_sha1=`echo \-DSHA1=\"$SHA1\" | sed -e "s/\//$ngx_regex_dirsep/g"`
;;
esac
@@ -28,14 +31,10 @@ done=NO
case "$NGX_PLATFORM" in
win32)
- cp auto/lib/sha1/$ngx_makefile $SHA1
-
cat << END >> $NGX_MAKEFILE
`echo "$SHA1/sha1.lib: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"`
- cd `echo $SHA1 | sed -e "s/\//$ngx_regex_dirsep/g"`
- \$(MAKE) -f $ngx_makefile $ngx_opt
- cd \$(CURDIR)
+ \$(MAKE) -f auto/lib/sha1/$ngx_makefile $ngx_opt $ngx_sha1
END