~ubuntu-branches/ubuntu/trusty/nginx/trusty-proposed

« back to all changes in this revision

Viewing changes to auto/lib/sha1/make

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-04-25 12:51:45 UTC
  • mfrom: (1.3.28)
  • mto: (1.3.29) (15.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 64.
  • Revision ID: package-import@ubuntu.com-20130425125145-ugl0wor6bq0u5eae
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
# Copyright (C) Igor Sysoev
 
3
# Copyright (C) Nginx, Inc.
3
4
 
4
5
 
5
6
case "$NGX_CC_NAME" in
7
8
    msvc*)
8
9
        ngx_makefile=makefile.msvc
9
10
        ngx_opt="CPU_OPT=\"$CPU_OPT\" LIBC=$LIBC SHA1_ASM=$SHA1_ASM"
 
11
        ngx_sha1="SHA1=\"$SHA1\""
10
12
    ;;
11
13
 
12
14
    owc*)
13
15
        ngx_makefile=makefile.owc
14
16
        ngx_opt="CPU_OPT=\"$CPU_OPT\""
 
17
        ngx_sha1=`echo SHA1=\"$SHA1\" | sed -e "s/\//$ngx_regex_dirsep/g"`
15
18
    ;;
16
19
 
17
20
    bcc)
18
21
        ngx_makefile=makefile.bcc
19
22
        ngx_opt="-DCPU_OPT=\"$CPU_OPT\" -DSHA1_ASM=$SHA1_ASM"
 
23
        ngx_sha1=`echo \-DSHA1=\"$SHA1\" | sed -e "s/\//$ngx_regex_dirsep/g"`
20
24
    ;;
21
25
 
22
26
esac
28
32
case "$NGX_PLATFORM" in
29
33
 
30
34
    win32)
31
 
        cp auto/lib/sha1/$ngx_makefile $SHA1
32
 
 
33
35
        cat << END                                        >> $NGX_MAKEFILE
34
36
 
35
37
`echo "$SHA1/sha1.lib:  $NGX_MAKEFILE" | sed -e "s/\//$ngx_regex_dirsep/g"`
36
 
        cd `echo $SHA1 | sed -e "s/\//$ngx_regex_dirsep/g"`
37
 
        \$(MAKE) -f $ngx_makefile $ngx_opt
38
 
        cd ..\\..\\..
 
38
        \$(MAKE) -f auto/lib/sha1/$ngx_makefile $ngx_opt $ngx_sha1
39
39
 
40
40
END
41
41