Annotation of embedaddon/nginx/auto/lib/zlib/make, revision 1.1
1.1 ! misho 1:
! 2: # Copyright (C) Igor Sysoev
! 3: # Copyright (C) Nginx, Inc.
! 4:
! 5:
! 6: case "$NGX_CC_NAME" in
! 7:
! 8: msvc*)
! 9: ngx_makefile=makefile.msvc
! 10: ngx_opt="CPU_OPT=\"$CPU_OPT\" LIBC=$LIBC"
! 11: ngx_zlib="ZLIB=\"$ZLIB\""
! 12:
! 13: ;;
! 14:
! 15: owc*)
! 16: ngx_makefile=makefile.owc
! 17: ngx_opt="CPU_OPT=\"$CPU_OPT\""
! 18: ngx_zlib=`echo ZLIB=\"$ZLIB\" | sed -e "s/\//$ngx_regex_dirsep/g"`
! 19: ;;
! 20:
! 21: bcc)
! 22: ngx_makefile=makefile.bcc
! 23: ngx_opt="-DCPU_OPT=\"$CPU_OPT\""
! 24: ngx_zlib=`echo \-DZLIB=\"$ZLIB\" | sed -e "s/\//$ngx_regex_dirsep/g"`
! 25: ;;
! 26:
! 27: esac
! 28:
! 29:
! 30: done=NO
! 31:
! 32:
! 33: case "$NGX_PLATFORM" in
! 34:
! 35: win32)
! 36: cat << END >> $NGX_MAKEFILE
! 37:
! 38: `echo "$ZLIB/zlib.lib: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"`
! 39: \$(MAKE) -f auto/lib/zlib/$ngx_makefile $ngx_opt $ngx_zlib
! 40:
! 41: END
! 42:
! 43: done=YES
! 44: ;;
! 45:
! 46: # FreeBSD: i386
! 47: # Linux: i686
! 48:
! 49: *:i386 | *:i686)
! 50: case $ZLIB_ASM in
! 51: pentium)
! 52:
! 53: cat << END >> $NGX_MAKEFILE
! 54:
! 55: $ZLIB/libz.a: $NGX_MAKEFILE
! 56: cd $ZLIB \\
! 57: && \$(MAKE) distclean \\
! 58: && cp contrib/asm586/match.S . \\
! 59: && CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
! 60: ./configure \\
! 61: && \$(MAKE) OBJA=match.o libz.a
! 62:
! 63: END
! 64:
! 65: done=YES
! 66: ;;
! 67:
! 68: pentiumpro)
! 69:
! 70: cat << END >> $NGX_MAKEFILE
! 71:
! 72: $ZLIB/libz.a: $NGX_MAKEFILE
! 73: cd $ZLIB \\
! 74: && \$(MAKE) distclean \\
! 75: && cp contrib/asm686/match.S . \\
! 76: && CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
! 77: ./configure \\
! 78: && \$(MAKE) OBJA=match.o libz.a
! 79:
! 80: END
! 81:
! 82: done=YES
! 83: ;;
! 84:
! 85: NO)
! 86: ;;
! 87:
! 88: *)
! 89: echo "$0: error: invalid --with-zlib-asm=$ZLIB_ASM option."
! 90: echo "The valid values are \"pentium\" and \"pentiumpro\" only".
! 91: echo
! 92:
! 93: exit 1;
! 94: ;;
! 95: esac
! 96: ;;
! 97:
! 98: esac
! 99:
! 100:
! 101: if [ $done = NO ]; then
! 102:
! 103: cat << END >> $NGX_MAKEFILE
! 104:
! 105: $ZLIB/libz.a: $NGX_MAKEFILE
! 106: cd $ZLIB \\
! 107: && \$(MAKE) distclean \\
! 108: && CFLAGS="$ZLIB_OPT" CC="\$(CC)" \\
! 109: ./configure \\
! 110: && \$(MAKE) libz.a
! 111:
! 112: END
! 113:
! 114: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>