]>
Commit | Line | Data |
---|---|---|
777a2882 RL |
1 | LIBS=../../libcrypto |
2 | SOURCE[../../libcrypto]=\ | |
3 | bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c \ | |
4 | bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c \ | |
5 | bn_kron.c bn_sqrt.c bn_gcd.c bn_prime.c bn_err.c bn_sqr.c \ | |
6 | {- $target{bn_asm_src} -} \ | |
7 | bn_recp.c bn_mont.c bn_mpi.c bn_exp2.c bn_gf2m.c bn_nist.c \ | |
8 | bn_depr.c bn_const.c bn_x931p.c bn_intern.c bn_dh.c bn_srp.c | |
567a9e6f RL |
9 | |
10 | BEGINRAW[Makefile] | |
11 | ##### BN assembler implementations | |
12 | ||
13 | {- $builddir -}/bn-586.s: {- $sourcedir -}/asm/bn-586.pl {- $sourcetop -}/crypto/perlasm/x86asm.pl | |
14 | $(PERL) {- $sourcedir -}/asm/bn-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ | |
15 | {- $builddir -}/co-586.s: {- $sourcedir -}/asm/co-586.pl {- $sourcetop -}/crypto/perlasm/x86asm.pl | |
16 | $(PERL) {- $sourcedir -}/asm/co-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ | |
17 | {- $builddir -}/x86-mont.s: {- $sourcedir -}/asm/x86-mont.pl {- $sourcetop -}/crypto/perlasm/x86asm.pl | |
18 | $(PERL) {- $sourcedir -}/asm/x86-mont.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ | |
19 | {- $builddir -}/x86-gf2m.s: {- $sourcedir -}/asm/x86-gf2m.pl {- $sourcetop -}/crypto/perlasm/x86asm.pl | |
20 | $(PERL) {- $sourcedir -}/asm/x86-gf2m.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ | |
21 | ||
22 | {- $builddir -}/sparcv8.o: {- $sourcedir -}/asm/sparcv8.S | |
23 | $(CC) $(CFLAGS) -c {- $sourcedir -}/asm/sparcv8.S | |
24 | {- $builddir -}/bn-sparcv9.o: {- $sourcedir -}/asm/sparcv8plus.S | |
25 | $(CC) $(CFLAGS) -c -o $@ {- $sourcedir -}/asm/sparcv8plus.S | |
26 | {- $builddir -}/sparcv9a-mont.s: {- $sourcedir -}/asm/sparcv9a-mont.pl | |
27 | $(PERL) {- $sourcedir -}/asm/sparcv9a-mont.pl $(CFLAGS) > $@ | |
28 | {- $builddir -}/sparcv9-mont.s: {- $sourcedir -}/asm/sparcv9-mont.pl | |
29 | $(PERL) {- $sourcedir -}/asm/sparcv9-mont.pl $(CFLAGS) > $@ | |
30 | {- $builddir -}/vis3-mont.s: {- $sourcedir -}/asm/vis3-mont.pl | |
31 | $(PERL) {- $sourcedir -}/asm/vis3-mont.pl $(CFLAGS) > $@ | |
32 | {- $builddir -}/sparct4-mont.S: {- $sourcedir -}/asm/sparct4-mont.pl | |
33 | $(PERL) {- $sourcedir -}/asm/sparct4-mont.pl $(CFLAGS) > $@ | |
34 | {- $builddir -}/sparcv9-gf2m.S: {- $sourcedir -}/asm/sparcv9-gf2m.pl | |
35 | $(PERL) {- $sourcedir -}/asm/sparcv9-gf2m.pl $(CFLAGS) > $@ | |
36 | ||
37 | {- $builddir -}/bn-mips3.o: {- $sourcedir -}/asm/mips3.s | |
38 | @if [ "$(CC)" = "gcc" ]; then \ | |
39 | ABI=`expr "$(CFLAGS)" : ".*-mabi=\([n3264]*\)"` && \ | |
40 | as -$$ABI -O -o $@ {- $sourcedir -}/asm/mips3.s; \ | |
41 | else $(CC) -c $(CFLAGS) -o $@ {- $sourcedir -}/asm/mips3.s; fi | |
42 | ||
43 | {- $builddir -}/bn-mips.s: {- $sourcedir -}/asm/mips.pl | |
44 | $(PERL) {- $sourcedir -}/asm/mips.pl $(PERLASM_SCHEME) $@ | |
45 | {- $builddir -}/mips-mont.s: {- $sourcedir -}/asm/mips-mont.pl | |
46 | $(PERL) {- $sourcedir -}/asm/mips-mont.pl $(PERLASM_SCHEME) $@ | |
47 | ||
48 | {- $builddir -}/bn-s390x.o: {- $sourcedir -}/asm/s390x.S | |
49 | $(CC) $(CFLAGS) -c -o $@ {- $sourcedir -}/asm/s390x.S | |
50 | {- $builddir -}/s390x-gf2m.s: {- $sourcedir -}/asm/s390x-gf2m.pl | |
51 | $(PERL) {- $sourcedir -}/asm/s390x-gf2m.pl $(PERLASM_SCHEME) $@ | |
52 | ||
53 | {- $builddir -}/x86_64-mont.s: {- $sourcedir -}/asm/x86_64-mont.pl | |
54 | $(PERL) {- $sourcedir -}/asm/x86_64-mont.pl $(PERLASM_SCHEME) > $@ | |
55 | {- $builddir -}/x86_64-mont5.s: {- $sourcedir -}/asm/x86_64-mont5.pl | |
56 | $(PERL) {- $sourcedir -}/asm/x86_64-mont5.pl $(PERLASM_SCHEME) > $@ | |
57 | {- $builddir -}/x86_64-gf2m.s: {- $sourcedir -}/asm/x86_64-gf2m.pl | |
58 | $(PERL) {- $sourcedir -}/asm/x86_64-gf2m.pl $(PERLASM_SCHEME) > $@ | |
59 | {- $builddir -}/rsaz-x86_64.s: {- $sourcedir -}/asm/rsaz-x86_64.pl | |
60 | $(PERL) {- $sourcedir -}/asm/rsaz-x86_64.pl $(PERLASM_SCHEME) > $@ | |
61 | {- $builddir -}/rsaz-avx2.s: {- $sourcedir -}/asm/rsaz-avx2.pl | |
62 | $(PERL) {- $sourcedir -}/asm/rsaz-avx2.pl $(PERLASM_SCHEME) > $@ | |
63 | ||
64 | {- $builddir -}/bn-ia64.s: {- $sourcedir -}/asm/ia64.S | |
65 | $(CC) $(CFLAGS) -E {- $sourcedir -}/asm/ia64.S > $@ | |
66 | {- $builddir -}/ia64-mont.s: {- $sourcedir -}/asm/ia64-mont.pl | |
67 | $(PERL) {- $sourcedir -}/asm/ia64-mont.pl $@ $(CFLAGS) | |
68 | ||
69 | # GNU assembler fails to compile PA-RISC2 modules, insist on calling | |
70 | # vendor assembler... | |
71 | {- $builddir -}/pa-risc2W.o: {- $sourcedir -}/asm/pa-risc2W.s | |
72 | $(PERL) $(TOP)/util/fipsas.pl $(TOP) $< /usr/ccs/bin/as -o pa-risc2W.o {- $sourcedir -}/asm/pa-risc2W.s | |
73 | {- $builddir -}/pa-risc2.o: {- $sourcedir -}/asm/pa-risc2.s | |
74 | $(PERL) $(TOP)/util/fipsas.pl $(TOP) $< /usr/ccs/bin/as -o pa-risc2.o {- $sourcedir -}/asm/pa-risc2.s | |
75 | ||
76 | {- $builddir -}/parisc-mont.s: {- $sourcedir -}/asm/parisc-mont.pl | |
77 | $(PERL) {- $sourcedir -}/asm/parisc-mont.pl $(PERLASM_SCHEME) $@ | |
78 | ||
79 | # ppc - AIX, Linux, MacOS X... | |
80 | {- $builddir -}/bn-ppc.s: {- $sourcedir -}/asm/ppc.pl; $(PERL) {- $sourcedir -}/asm/ppc.pl $(PERLASM_SCHEME) $@ | |
81 | {- $builddir -}/ppc-mont.s: {- $sourcedir -}/asm/ppc-mont.pl;$(PERL) {- $sourcedir -}/asm/ppc-mont.pl $(PERLASM_SCHEME) $@ | |
82 | {- $builddir -}/ppc64-mont.s: {- $sourcedir -}/asm/ppc64-mont.pl;$(PERL) {- $sourcedir -}/asm/ppc64-mont.pl $(PERLASM_SCHEME) $@ | |
83 | ||
84 | {- $builddir -}/alpha-mont.s: {- $sourcedir -}/asm/alpha-mont.pl | |
85 | (preproc=$$$$.$@.S; trap "rm $$preproc" INT; \ | |
86 | $(PERL) {- $sourcedir -}/asm/alpha-mont.pl > $$preproc && \ | |
87 | $(CC) -E -P $$preproc > $@ && rm $$preproc) | |
88 | ||
89 | # GNU make "catch all" | |
90 | {- $builddir -}/%-mont.S: {- $sourcedir -}/asm/%-mont.pl | |
91 | $(PERL) $< $(PERLASM_SCHEME) $@ | |
92 | {- $builddir -}/%-gf2m.S: {- $sourcedir -}/asm/%-gf2m.pl | |
93 | $(PERL) $< $(PERLASM_SCHEME) $@ | |
94 | ||
95 | {- $builddir -}/armv4-mont.o: {- $builddir -}/armv4-mont.S | |
96 | {- $builddir -}/armv4-gf2m.o: {- $builddir -}/armv4-gf2m.S | |
97 | {- $builddir -}/armv8-mont.o: {- $builddir -}/armv8-mont.S | |
98 | ENDRAW[Makefile] |