Annotation of embedaddon/nginx/auto/lib/md5/make, revision 1.1.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 MD5_ASM=$MD5_ASM"
11: ngx_md5="MD5=\"$MD5\""
12: ;;
13:
14: owc*)
15: ngx_makefile=makefile.owc
16: ngx_opt="CPU_OPT=\"$CPU_OPT\""
17: ngx_md5=`echo MD5=\"$MD5\" | sed -e "s/\//$ngx_regex_dirsep/g"`
18: ;;
19:
20: bcc)
21: ngx_makefile=makefile.bcc
22: ngx_opt="-DCPU_OPT=\"$CPU_OPT\" -DMD5_ASM=$MD5_ASM"
23: ngx_md5=`echo \-DMD5=\"$MD5\" | sed -e "s/\//$ngx_regex_dirsep/g"`
24: ;;
25:
26: esac
27:
28:
29: done=NO
30:
31:
32: case "$NGX_PLATFORM" in
33:
34: win32)
35: cat << END >> $NGX_MAKEFILE
36:
37: `echo "$MD5/md5.lib: $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"`
38: \$(MAKE) -f auto/lib/md5/$ngx_makefile $ngx_opt $ngx_md5
39:
40: END
41:
42: done=YES
43: ;;
44:
45: SunOS:*:i86pc)
46: if [ $MD5_ASM = YES ]; then
47:
48: cat << END >> $NGX_MAKEFILE
49:
50: $MD5/libmd5.a: $NGX_MAKEFILE
51: cd $MD5 \\
52: && \$(MAKE) CFLAGS="$MD5_OPT -DSOL -DMD5_ASM -DL_ENDIAN" \\
53: CC="\$(CC)" CPP="\$(CPP)" \\
54: MD5_ASM_OBJ=asm/mx86-sol.o clean libmd5.a
55:
56: END
57:
58: done=YES
59: fi
60: ;;
61:
62: # FreeBSD: i386
63: # Linux: i686
64:
65: *:i386 | *:i686)
66: if [ $MD5_ASM = YES ]; then
67:
68: cat << END >> $NGX_MAKEFILE
69:
70: $MD5/libmd5.a: $NGX_MAKEFILE
71: cd $MD5 \\
72: && \$(MAKE) CFLAGS="$MD5_OPT -DELF -DMD5_ASM -DL_ENDIAN" \\
73: CC="\$(CC)" CPP="\$(CPP)" \\
74: MD5_ASM_OBJ=asm/mx86-elf.o clean libmd5.a
75:
76: END
77:
78: done=YES
79: fi
80: ;;
81:
82: esac
83:
84:
85: if [ $done = NO ]; then
86:
87: cat << END >> $NGX_MAKEFILE
88:
89: $MD5/libmd5.a: $NGX_MAKEFILE
90: cd $MD5 \\
91: && \$(MAKE) CFLAGS="$MD5_OPT" \\
92: CC="\$(CC)" MD5_ASM_OBJ= clean libmd5.a
93:
94: END
95:
96: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>