Initial import from FreeBSD RELENG_4:
[dragonfly.git] / secure / lib / libcrypto / Makefile.asm
1 # $FreeBSD: src/secure/lib/libcrypto/Makefile.asm,v 1.3.2.1 2003/02/14 22:38:14 nectar Exp $
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: src/secure/lib/libcrypto/Makefile.asm,v 1.3.2.1 2003/02/14 22:38:14 nectar Exp $ tags.
6
7 .if ${MACHINE_ARCH} == "i386"
8
9 .include "Makefile.inc"
10
11 .PATH: ${LCRYPTO_SRC}/crypto/rc4/asm ${LCRYPTO_SRC}/crypto/rc5/asm \
12        ${LCRYPTO_SRC}/crypto/des/asm ${LCRYPTO_SRC}/crypto/cast/asm \
13        ${LCRYPTO_SRC}/crypto/sha/asm ${LCRYPTO_SRC}/crypto/bn/asm \
14        ${LCRYPTO_SRC}/crypto/bf/asm ${LCRYPTO_SRC}/crypto/md5/asm \
15        ${LCRYPTO_SRC}/crypto/ripemd/asm
16
17 PERLPATH=       ${LCRYPTO_SRC}/crypto/des/asm:${LCRYPTO_SRC}/crypto/perlasm
18
19 # blowfish
20 SRCS=   bf-686.pl bf-586.pl
21
22 # bn
23 SRCS+=  bn-586.pl co-586.pl
24
25 # cast
26 SRCS+=  cast-586.pl
27
28 # des
29 SRCS+=  des-586.pl crypt586.pl
30
31 # md5
32 SRCS+=  md5-586.pl
33
34 # rc4
35 SRCS+=  rc4-586.pl
36
37 # rc5
38 SRCS+=  rc5-586.pl
39
40 # ripemd
41 SRCS+=  rmd-586.pl
42
43 # sha
44 SRCS+=  sha1-586.pl
45
46 ASM=    ${SRCS:S/.pl/.s/}
47
48 all:    ${ASM}
49
50 CLEANFILES+=    ${SRCS:M*.pl:S/.pl$/.cmt/} ${SRCS:M*.pl:S/.pl$/.s/}
51 .SUFFIXES:      .pl .cmt
52
53 .pl.cmt:
54         perl -I${PERLPATH} ${.IMPSRC} elf ${CPUTYPE:Mi386:S/i//} > ${.TARGET}
55
56 .cmt.s:
57         tr -d "'" < ${.IMPSRC} > ${.TARGET}
58
59 .include <bsd.prog.mk>
60 .endif