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.
8 .if ${MACHINE_ARCH} == "i386"
10 .include "Makefile.inc"
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
18 PERLPATH= ${LCRYPTO_SRC}/crypto/des/asm:${LCRYPTO_SRC}/crypto/perlasm
21 SRCS= bf-686.pl bf-586.pl
24 SRCS+= bn-586.pl co-586.pl
30 SRCS+= des-586.pl crypt586.pl
47 ASM= ${SRCS:S/.pl/.s/}
51 CLEANFILES+= ${SRCS:M*.pl:S/.pl$/.cmt/} ${SRCS:M*.pl:S/.pl$/.s/}
55 perl -I${PERLPATH} ${.IMPSRC} elf ${CPUTYPE:Mi386:S/i//} > ${.TARGET}
58 tr -d "'" < ${.IMPSRC} > ${.TARGET}
60 .include <bsd.prog.mk>