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
|
---|
9 | INCLUDE[../../libcrypto]=../../crypto/include
|
---|
10 |
|
---|
11 | INCLUDE[bn_exp.o]=..
|
---|
12 |
|
---|
13 | GENERATE[bn-586.s]=asm/bn-586.pl \
|
---|
14 | $(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(PROCESSOR)
|
---|
15 | DEPEND[bn-586.s]=../perlasm/x86asm.pl
|
---|
16 | GENERATE[co-586.s]=asm/co-586.pl \
|
---|
17 | $(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(PROCESSOR)
|
---|
18 | DEPEND[co-586.s]=../perlasm/x86asm.pl
|
---|
19 | GENERATE[x86-mont.s]=asm/x86-mont.pl \
|
---|
20 | $(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(PROCESSOR)
|
---|
21 | DEPEND[x86-mont.s]=../perlasm/x86asm.pl
|
---|
22 | GENERATE[x86-gf2m.s]=asm/x86-gf2m.pl \
|
---|
23 | $(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(PROCESSOR)
|
---|
24 | DEPEND[x86-gf2m.s]=../perlasm/x86asm.pl
|
---|
25 |
|
---|
26 | GENERATE[sparcv9a-mont.S]=asm/sparcv9a-mont.pl $(PERLASM_SCHEME)
|
---|
27 | INCLUDE[sparcv9a-mont.o]=..
|
---|
28 | GENERATE[sparcv9-mont.S]=asm/sparcv9-mont.pl $(PERLASM_SCHEME)
|
---|
29 | INCLUDE[sparcv9-mont.o]=..
|
---|
30 | GENERATE[vis3-mont.S]=asm/vis3-mont.pl $(PERLASM_SCHEME)
|
---|
31 | INCLUDE[vis3-mont.o]=..
|
---|
32 | GENERATE[sparct4-mont.S]=asm/sparct4-mont.pl $(PERLASM_SCHEME)
|
---|
33 | INCLUDE[sparct4-mont.o]=..
|
---|
34 | GENERATE[sparcv9-gf2m.S]=asm/sparcv9-gf2m.pl $(PERLASM_SCHEME)
|
---|
35 | INCLUDE[sparcv9-gf2m.o]=..
|
---|
36 |
|
---|
37 | GENERATE[bn-mips.s]=asm/mips.pl $(PERLASM_SCHEME)
|
---|
38 | GENERATE[mips-mont.s]=asm/mips-mont.pl $(PERLASM_SCHEME)
|
---|
39 |
|
---|
40 | GENERATE[s390x-mont.S]=asm/s390x-mont.pl $(PERLASM_SCHEME)
|
---|
41 | GENERATE[s390x-gf2m.s]=asm/s390x-gf2m.pl $(PERLASM_SCHEME)
|
---|
42 |
|
---|
43 | GENERATE[x86_64-mont.s]=asm/x86_64-mont.pl $(PERLASM_SCHEME)
|
---|
44 | GENERATE[x86_64-mont5.s]=asm/x86_64-mont5.pl $(PERLASM_SCHEME)
|
---|
45 | GENERATE[x86_64-gf2m.s]=asm/x86_64-gf2m.pl $(PERLASM_SCHEME)
|
---|
46 | GENERATE[rsaz-x86_64.s]=asm/rsaz-x86_64.pl $(PERLASM_SCHEME)
|
---|
47 | GENERATE[rsaz-avx2.s]=asm/rsaz-avx2.pl $(PERLASM_SCHEME)
|
---|
48 |
|
---|
49 | GENERATE[bn-ia64.s]=asm/ia64.S
|
---|
50 | GENERATE[ia64-mont.s]=asm/ia64-mont.pl $(CFLAGS) $(LIB_CFLAGS)
|
---|
51 |
|
---|
52 | GENERATE[parisc-mont.s]=asm/parisc-mont.pl $(PERLASM_SCHEME)
|
---|
53 |
|
---|
54 | # ppc - AIX, Linux, MacOS X...
|
---|
55 | GENERATE[bn-ppc.s]=asm/ppc.pl $(PERLASM_SCHEME)
|
---|
56 | GENERATE[ppc-mont.s]=asm/ppc-mont.pl $(PERLASM_SCHEME)
|
---|
57 | GENERATE[ppc64-mont.s]=asm/ppc64-mont.pl $(PERLASM_SCHEME)
|
---|
58 |
|
---|
59 | GENERATE[alpha-mont.S]=asm/alpha-mont.pl $(PERLASM_SCHEME)
|
---|
60 |
|
---|
61 | GENERATE[armv4-mont.S]=asm/armv4-mont.pl $(PERLASM_SCHEME)
|
---|
62 | INCLUDE[armv4-mont.o]=..
|
---|
63 | GENERATE[armv4-gf2m.S]=asm/armv4-gf2m.pl $(PERLASM_SCHEME)
|
---|
64 | INCLUDE[armv4-gf2m.o]=..
|
---|
65 | GENERATE[armv8-mont.S]=asm/armv8-mont.pl $(PERLASM_SCHEME)
|
---|
66 |
|
---|
67 | OVERRIDES=bn-mips3.o pa-risc2W.o pa-risc2.c
|
---|
68 | BEGINRAW[Makefile]
|
---|
69 | ##### BN assembler implementations
|
---|
70 |
|
---|
71 | {- $builddir -}/bn-mips3.o: {- $sourcedir -}/asm/mips3.s
|
---|
72 | @if [ "$(CC)" = "gcc" ]; then \
|
---|
73 | ABI=`expr "$(CFLAGS)" : ".*-mabi=\([n3264]*\)"` && \
|
---|
74 | as -$$ABI -O -o $@ {- $sourcedir -}/asm/mips3.s; \
|
---|
75 | else $(CC) -c $(CFLAGS) $(LIB_CFLAGS) -o $@ {- $sourcedir -}/asm/mips3.s; fi
|
---|
76 |
|
---|
77 | # GNU assembler fails to compile PA-RISC2 modules, insist on calling
|
---|
78 | # vendor assembler...
|
---|
79 | {- $builddir -}/pa-risc2W.o: {- $sourcedir -}/asm/pa-risc2W.s
|
---|
80 | CC="$(CC)" $(PERL) $(SRCDIR)/util/fipsas.pl $(SRCDIR) $< /usr/ccs/bin/as -o pa-risc2W.o {- $sourcedir -}/asm/pa-risc2W.s
|
---|
81 | {- $builddir -}/pa-risc2.o: {- $sourcedir -}/asm/pa-risc2.s
|
---|
82 | CC="$(CC)" $(PERL) $(SRCDIR)/util/fipsas.pl $(SRCDIR) $< /usr/ccs/bin/as -o pa-risc2.o {- $sourcedir -}/asm/pa-risc2.s
|
---|
83 |
|
---|
84 | ENDRAW[Makefile]
|
---|