]> git.ipfire.org Git - thirdparty/openssl.git/blob - crypto/sha/build.info
Pass $(CC) to perlasm scripts via the environment
[thirdparty/openssl.git] / crypto / sha / build.info
1 LIBS=../../libcrypto
2 SOURCE[../../libcrypto]=\
3 sha1dgst.c sha1_one.c sha256.c sha512.c {- $target{sha1_asm_src} -}
4
5 BEGINRAW[Makefile]
6 ##### SHA assembler implementations
7
8 {- $builddir -}/sha1-586.s: {- $sourcedir -}/asm/sha1-586.pl {- $sourcetop -}/crypto/perlasm/x86asm.pl
9 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha1-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
10 {- $builddir -}/sha256-586.s: {- $sourcedir -}/asm/sha256-586.pl {- $sourcetop -}/crypto/perlasm/x86asm.pl
11 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha256-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
12 {- $builddir -}/sha512-586.s: {- $sourcedir -}/asm/sha512-586.pl {- $sourcetop -}/crypto/perlasm/x86asm.pl
13 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
14
15 {- $builddir -}/sha1-ia64.s: {- $sourcedir -}/asm/sha1-ia64.pl
16 (cd asm; CC="$(CC)" $(PERL) sha1-ia64.pl ../$@ $(CFLAGS))
17 {- $builddir -}/sha256-ia64.s: {- $sourcedir -}/asm/sha512-ia64.pl
18 (cd asm; CC="$(CC)" $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
19 {- $builddir -}/sha512-ia64.s: {- $sourcedir -}/asm/sha512-ia64.pl
20 (cd asm; CC="$(CC)" $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
21
22 {- $builddir -}/sha256-armv4.S: {- $sourcedir -}/asm/sha256-armv4.pl
23 CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
24
25 {- $builddir -}/sha1-alpha.s: {- $sourcedir -}/asm/sha1-alpha.pl
26 (preproc=$$$$.$@.S; trap "rm $$preproc" INT; \
27 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha1-alpha.pl > $$preproc && \
28 $(CC) -E -P $$preproc > $@ && rm $$preproc)
29
30 # Solaris make has to be explicitly told
31 {- $builddir -}/sha1-x86_64.s: {- $sourcedir -}/asm/sha1-x86_64.pl
32 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@
33 {- $builddir -}/sha1-mb-x86_64.s: {- $sourcedir -}/asm/sha1-mb-x86_64.pl
34 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha1-mb-x86_64.pl $(PERLASM_SCHEME) > $@
35 {- $builddir -}/sha256-x86_64.s:{- $sourcedir -}/asm/sha512-x86_64.pl
36 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@
37 {- $builddir -}/sha256-mb-x86_64.s: {- $sourcedir -}/asm/sha256-mb-x86_64.pl
38 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha256-mb-x86_64.pl $(PERLASM_SCHEME) > $@
39 {- $builddir -}/sha512-x86_64.s:{- $sourcedir -}/asm/sha512-x86_64.pl
40 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@
41 {- $builddir -}/sha1-sparcv9.S: {- $sourcedir -}/asm/sha1-sparcv9.pl
42 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha1-sparcv9.pl $@ $(CFLAGS)
43 {- $builddir -}/sha256-sparcv9.S:{- $sourcedir -}/asm/sha512-sparcv9.pl
44 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-sparcv9.pl $@ $(CFLAGS)
45 {- $builddir -}/sha512-sparcv9.S:{- $sourcedir -}/asm/sha512-sparcv9.pl
46 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-sparcv9.pl $@ $(CFLAGS)
47
48 {- $builddir -}/sha1-ppc.s: {- $sourcedir -}/asm/sha1-ppc.pl
49 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha1-ppc.pl $(PERLASM_SCHEME) $@
50 {- $builddir -}/sha256-ppc.s: {- $sourcedir -}/asm/sha512-ppc.pl
51 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
52 {- $builddir -}/sha512-ppc.s: {- $sourcedir -}/asm/sha512-ppc.pl
53 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
54 {- $builddir -}/sha256p8-ppc.s: {- $sourcedir -}/asm/sha512p8-ppc.pl
55 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512p8-ppc.pl $(PERLASM_SCHEME) $@
56 {- $builddir -}/sha512p8-ppc.s: {- $sourcedir -}/asm/sha512p8-ppc.pl
57 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512p8-ppc.pl $(PERLASM_SCHEME) $@
58
59 {- $builddir -}/sha1-parisc.s: {- $sourcedir -}/asm/sha1-parisc.pl
60 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha1-parisc.pl $(PERLASM_SCHEME) $@
61 {- $builddir -}/sha256-parisc.s:{- $sourcedir -}/asm/sha512-parisc.pl
62 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
63 {- $builddir -}/sha512-parisc.s:{- $sourcedir -}/asm/sha512-parisc.pl
64 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
65
66 {- $builddir -}/sha1-mips.S: {- $sourcedir -}/asm/sha1-mips.pl
67 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha1-mips.pl $(PERLASM_SCHEME) $@
68 {- $builddir -}/sha256-mips.S: {- $sourcedir -}/asm/sha512-mips.pl
69 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-mips.pl $(PERLASM_SCHEME) $@
70 {- $builddir -}/sha512-mips.S: {- $sourcedir -}/asm/sha512-mips.pl
71 CC="$(CC)" $(PERL) {- $sourcedir -}/asm/sha512-mips.pl $(PERLASM_SCHEME) $@
72
73 # GNU make "catch all"
74 {- $builddir -}/sha1-%.S: {- $sourcedir -}/asm/sha1-%.pl
75 CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
76 {- $builddir -}/sha256-%.S: {- $sourcedir -}/asm/sha512-%.pl
77 CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
78 {- $builddir -}/sha512-%.S: {- $sourcedir -}/asm/sha512-%.pl
79 CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
80 ENDRAW[Makefile]