summaryrefslogtreecommitdiffhomepage
path: root/auto/lib/zlib/make
diff options
context:
space:
mode:
Diffstat (limited to 'auto/lib/zlib/make')
-rw-r--r--auto/lib/zlib/make9
1 files changed, 4 insertions, 5 deletions
diff --git a/auto/lib/zlib/make b/auto/lib/zlib/make
index 74e6f9ac7..4d62b757f 100644
--- a/auto/lib/zlib/make
+++ b/auto/lib/zlib/make
@@ -7,17 +7,20 @@ case "$NGX_CC_NAME" in
msvc*)
ngx_makefile=makefile.msvc
ngx_opt="CPU_OPT=\"$CPU_OPT\" LIBC=$LIBC"
+ ngx_zlib="ZLIB=\"$ZLIB\""
;;
owc*)
ngx_makefile=makefile.owc
ngx_opt="CPU_OPT=\"$CPU_OPT\""
+ ngx_zlib=`echo ZLIB=\"$ZLIB\" | sed -e "s/\//$ngx_regex_dirsep/g"`
;;
bcc)
ngx_makefile=makefile.bcc
ngx_opt="-DCPU_OPT=\"$CPU_OPT\""
+ ngx_zlib=`echo \-DZLIB=\"$ZLIB\" | sed -e "s/\//$ngx_regex_dirsep/g"`
;;
esac
@@ -29,14 +32,10 @@ done=NO
case "$NGX_PLATFORM" in
win32)
- cp auto/lib/zlib/$ngx_makefile $ZLIB
-
cat << END >> $NGX_MAKEFILE
`echo "$ZLIB/zlib.lib: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"`
- cd `echo $ZLIB | sed -e "s/\//$ngx_regex_dirsep/g"`
- \$(MAKE) -f $ngx_makefile $ngx_opt
- cd \$(CURDIR)
+ \$(MAKE) -f auto/lib/zlib/$ngx_makefile $ngx_opt $ngx_zlib
END