]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - secure/lib/libcrypto/Makefile.asm
This commit was generated by cvs2svn to compensate for changes in r98567,
[FreeBSD/FreeBSD.git] / secure / lib / libcrypto / Makefile.asm
1 # $FreeBSD$
2 # Use this to help generate the asm *.s files after an import.  It is not
3 # perfect by any means, but does what is needed.
4 # Do a 'make -f Makefile.asm all' and it will generate *.s.  Move them
5 # to the i386 subdir, and correct any exposed paths and $FreeBSD$ tags.
6
7 .if ${MACHINE_ARCH} == "i386"
8
9 .include "Makefile.inc"
10
11 .PATH:  ${LCRYPTO_SRC}/rc4/asm ${LCRYPTO_SRC}/rc5/asm \
12         ${LCRYPTO_SRC}/des/asm ${LCRYPTO_SRC}/cast/asm \
13         ${LCRYPTO_SRC}/sha/asm ${LCRYPTO_SRC}/bn/asm \
14         ${LCRYPTO_SRC}/bf/asm ${LCRYPTO_SRC}/md5/asm \
15         ${LCRYPTO_SRC}/ripemd/asm
16 PERLPATH=       ${LCRYPTO_SRC}/des/asm:${LCRYPTO_SRC}/perlasm
17
18 SRCS=
19
20 # blowfish
21 SRCS+=  bf-686.pl
22 SRCS+=  bf-586.pl
23
24 # bn
25 SRCS+=  bn-586.pl co-586.pl
26
27 # cast
28 SRCS+=  cast-586.pl
29
30 # des
31 SRCS+=  des-586.pl crypt586.pl
32
33 # md5
34 SRCS+=  md5-586.pl
35
36 # rc4
37 SRCS+=  rc4-586.pl
38
39 # rc5
40 SRCS+=  rc5-586.pl
41
42 # ripemd
43 SRCS+=  rmd-586.pl
44
45 # sha
46 SRCS+=  sha1-586.pl
47
48 ASM=    ${SRCS:S/.pl/.s/}
49
50 all:    ${ASM}
51
52 CLEANFILES+=    ${SRCS:M*.pl:S/.pl$/.cmt/} ${SRCS:M*.pl:S/.pl$/.s/}
53 .SUFFIXES:      .pl .cmt
54
55 .pl.cmt:
56         perl -I${PERLPATH} ${.IMPSRC} elf ${CPUTYPE:Mi386:S/i//} > ${.TARGET}
57
58 .cmt.s:
59         tr -d "'" < ${.IMPSRC} > ${.TARGET}
60
61
62 .include <bsd.prog.mk>
63 .endif