1 | LIBS=../../libcrypto
|
---|
2 | SOURCE[../../libcrypto]=\
|
---|
3 | sha1dgst.c sha1_one.c sha256.c sha512.c {- $target{sha1_asm_src} -} \
|
---|
4 | {- $target{keccak1600_asm_src} -}
|
---|
5 |
|
---|
6 | GENERATE[sha1-586.s]=asm/sha1-586.pl \
|
---|
7 | $(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR)
|
---|
8 | DEPEND[sha1-586.s]=../perlasm/x86asm.pl
|
---|
9 | GENERATE[sha256-586.s]=asm/sha256-586.pl \
|
---|
10 | $(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR)
|
---|
11 | DEPEND[sha256-586.s]=../perlasm/x86asm.pl
|
---|
12 | GENERATE[sha512-586.s]=asm/sha512-586.pl \
|
---|
13 | $(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR)
|
---|
14 | DEPEND[sha512-586.s]=../perlasm/x86asm.pl
|
---|
15 |
|
---|
16 | GENERATE[sha1-ia64.s]=asm/sha1-ia64.pl $(LIB_CFLAGS) $(LIB_CPPFLAGS)
|
---|
17 | GENERATE[sha256-ia64.s]=asm/sha512-ia64.pl $(LIB_CFLAGS) $(LIB_CPPFLAGS)
|
---|
18 | GENERATE[sha512-ia64.s]=asm/sha512-ia64.pl $(LIB_CFLAGS) $(LIB_CPPFLAGS)
|
---|
19 |
|
---|
20 | GENERATE[sha1-alpha.S]=asm/sha1-alpha.pl $(PERLASM_SCHEME)
|
---|
21 |
|
---|
22 | GENERATE[sha1-x86_64.s]=asm/sha1-x86_64.pl $(PERLASM_SCHEME)
|
---|
23 | GENERATE[sha1-mb-x86_64.s]=asm/sha1-mb-x86_64.pl $(PERLASM_SCHEME)
|
---|
24 | GENERATE[sha256-x86_64.s]=asm/sha512-x86_64.pl $(PERLASM_SCHEME)
|
---|
25 | GENERATE[sha256-mb-x86_64.s]=asm/sha256-mb-x86_64.pl $(PERLASM_SCHEME)
|
---|
26 | GENERATE[sha512-x86_64.s]=asm/sha512-x86_64.pl $(PERLASM_SCHEME)
|
---|
27 | GENERATE[keccak1600-x86_64.s]=asm/keccak1600-x86_64.pl $(PERLASM_SCHEME)
|
---|
28 |
|
---|
29 | GENERATE[sha1-sparcv9.S]=asm/sha1-sparcv9.pl $(PERLASM_SCHEME)
|
---|
30 | INCLUDE[sha1-sparcv9.o]=..
|
---|
31 | GENERATE[sha256-sparcv9.S]=asm/sha512-sparcv9.pl $(PERLASM_SCHEME)
|
---|
32 | INCLUDE[sha256-sparcv9.o]=..
|
---|
33 | GENERATE[sha512-sparcv9.S]=asm/sha512-sparcv9.pl $(PERLASM_SCHEME)
|
---|
34 | INCLUDE[sha512-sparcv9.o]=..
|
---|
35 |
|
---|
36 | GENERATE[sha1-ppc.s]=asm/sha1-ppc.pl $(PERLASM_SCHEME)
|
---|
37 | GENERATE[sha256-ppc.s]=asm/sha512-ppc.pl $(PERLASM_SCHEME)
|
---|
38 | GENERATE[sha512-ppc.s]=asm/sha512-ppc.pl $(PERLASM_SCHEME)
|
---|
39 | GENERATE[sha256p8-ppc.s]=asm/sha512p8-ppc.pl $(PERLASM_SCHEME)
|
---|
40 | GENERATE[sha512p8-ppc.s]=asm/sha512p8-ppc.pl $(PERLASM_SCHEME)
|
---|
41 | GENERATE[keccak1600-ppc64.s]=asm/keccak1600-ppc64.pl $(PERLASM_SCHEME)
|
---|
42 |
|
---|
43 | GENERATE[sha1-parisc.s]=asm/sha1-parisc.pl $(PERLASM_SCHEME)
|
---|
44 | GENERATE[sha256-parisc.s]=asm/sha512-parisc.pl $(PERLASM_SCHEME)
|
---|
45 | GENERATE[sha512-parisc.s]=asm/sha512-parisc.pl $(PERLASM_SCHEME)
|
---|
46 |
|
---|
47 | GENERATE[sha1-mips.S]=asm/sha1-mips.pl $(PERLASM_SCHEME)
|
---|
48 | INCLUDE[sha1-mips.o]=..
|
---|
49 | GENERATE[sha256-mips.S]=asm/sha512-mips.pl $(PERLASM_SCHEME)
|
---|
50 | INCLUDE[sha256-mips.o]=..
|
---|
51 | GENERATE[sha512-mips.S]=asm/sha512-mips.pl $(PERLASM_SCHEME)
|
---|
52 | INCLUDE[sha512-mips.o]=..
|
---|
53 |
|
---|
54 | GENERATE[sha1-armv4-large.S]=asm/sha1-armv4-large.pl $(PERLASM_SCHEME)
|
---|
55 | INCLUDE[sha1-armv4-large.o]=..
|
---|
56 | GENERATE[sha256-armv4.S]=asm/sha256-armv4.pl $(PERLASM_SCHEME)
|
---|
57 | INCLUDE[sha256-armv4.o]=..
|
---|
58 | GENERATE[sha512-armv4.S]=asm/sha512-armv4.pl $(PERLASM_SCHEME)
|
---|
59 | INCLUDE[sha512-armv4.o]=..
|
---|
60 | GENERATE[keccak1600-armv4.S]=asm/keccak1600-armv4.pl $(PERLASM_SCHEME)
|
---|
61 | INCLUDE[keccak1600-armv4.o]=..
|
---|
62 |
|
---|
63 | GENERATE[sha1-armv8.S]=asm/sha1-armv8.pl $(PERLASM_SCHEME)
|
---|
64 | INCLUDE[sha1-armv8.o]=..
|
---|
65 | GENERATE[sha256-armv8.S]=asm/sha512-armv8.pl $(PERLASM_SCHEME)
|
---|
66 | INCLUDE[sha256-armv8.o]=..
|
---|
67 | GENERATE[sha512-armv8.S]=asm/sha512-armv8.pl $(PERLASM_SCHEME)
|
---|
68 | INCLUDE[sha512-armv8.o]=..
|
---|
69 | GENERATE[keccak1600-armv8.S]=asm/keccak1600-armv8.pl $(PERLASM_SCHEME)
|
---|
70 |
|
---|
71 | GENERATE[sha1-s390x.S]=asm/sha1-s390x.pl $(PERLASM_SCHEME)
|
---|
72 | INCLUDE[sha1-s390x.o]=..
|
---|
73 | GENERATE[sha256-s390x.S]=asm/sha512-s390x.pl $(PERLASM_SCHEME)
|
---|
74 | INCLUDE[sha256-s390x.o]=..
|
---|
75 | GENERATE[sha512-s390x.S]=asm/sha512-s390x.pl $(PERLASM_SCHEME)
|
---|
76 | INCLUDE[sha512-s390x.o]=..
|
---|
77 | GENERATE[keccak1600-s390x.S]=asm/keccak1600-s390x.pl $(PERLASM_SCHEME)
|
---|
78 |
|
---|
79 | BEGINRAW[Makefile(unix)]
|
---|
80 | ##### SHA assembler implementations
|
---|
81 |
|
---|
82 | # GNU make "catch all"
|
---|
83 | {- $builddir -}/sha1-%.S: {- $sourcedir -}/asm/sha1-%.pl
|
---|
84 | CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
---|
85 | {- $builddir -}/sha256-%.S: {- $sourcedir -}/asm/sha512-%.pl
|
---|
86 | CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
---|
87 | {- $builddir -}/sha512-%.S: {- $sourcedir -}/asm/sha512-%.pl
|
---|
88 | CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
---|
89 | ENDRAW[Makefile(unix)]
|
---|