Merge from vendor branch GCC:
[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 # $DragonFly: src/secure/lib/libcrypto/Attic/Makefile.asm,v 1.2 2003/06/17 04:27:48 dillon Exp $
3 # Use this to help generate the asm *.s files after an import.  It is not
4 # perfect by any means, but does what is needed.
5 # Do a 'make -f Makefile.asm all' and it will generate *.s.  Move them
6 # 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.
7
8 .if ${MACHINE_ARCH} == "i386"
9
10 .include "Makefile.inc"
11
12 .PATH: ${LCRYPTO_SRC}/crypto/rc4/asm ${LCRYPTO_SRC}/crypto/rc5/asm \
13        ${LCRYPTO_SRC}/crypto/des/asm ${LCRYPTO_SRC}/crypto/cast/asm \
14        ${LCRYPTO_SRC}/crypto/sha/asm ${LCRYPTO_SRC}/crypto/bn/asm \
15        ${LCRYPTO_SRC}/crypto/bf/asm ${LCRYPTO_SRC}/crypto/md5/asm \
16        ${LCRYPTO_SRC}/crypto/ripemd/asm
17
18 PERLPATH=       ${LCRYPTO_SRC}/crypto/des/asm:${LCRYPTO_SRC}/crypto/perlasm
19
20 # blowfish
21 SRCS=   bf-686.pl bf-586.pl
22
23 # bn
24 SRCS+=  bn-586.pl co-586.pl
25
26 # cast
27 SRCS+=  cast-586.pl
28
29 # des
30 SRCS+=  des-586.pl crypt586.pl
31
32 # md5
33 SRCS+=  md5-586.pl
34
35 # rc4
36 SRCS+=  rc4-586.pl
37
38 # rc5
39 SRCS+=  rc5-586.pl
40
41 # ripemd
42 SRCS+=  rmd-586.pl
43
44 # sha
45 SRCS+=  sha1-586.pl
46
47 ASM=    ${SRCS:S/.pl/.s/}
48
49 all:    ${ASM}
50
51 CLEANFILES+=    ${SRCS:M*.pl:S/.pl$/.cmt/} ${SRCS:M*.pl:S/.pl$/.s/}
52 .SUFFIXES:      .pl .cmt
53
54 .pl.cmt:
55         perl -I${PERLPATH} ${.IMPSRC} elf ${CPUTYPE:Mi386:S/i//} > ${.TARGET}
56
57 .cmt.s:
58         tr -d "'" < ${.IMPSRC} > ${.TARGET}
59
60 .include <bsd.prog.mk>
61 .endif