1 # This file automatically generates the asm .s files after importing a new
2 # version of OpenSSL. You need to run it with MACHINE_ARCH=i386 and x86_64
3 # to get everything generated properly.
5 OPENSSL_SRC= ../../../../crypto/openssl
7 .PATH: ${OPENSSL_SRC}/crypto \
8 ${OPENSSL_SRC}/crypto/aes/asm \
9 ${OPENSSL_SRC}/crypto/bf/asm \
10 ${OPENSSL_SRC}/crypto/bn/asm \
11 ${OPENSSL_SRC}/crypto/camellia/asm \
12 ${OPENSSL_SRC}/crypto/des/asm \
13 ${OPENSSL_SRC}/crypto/md5/asm \
14 ${OPENSSL_SRC}/crypto/perlasm \
15 ${OPENSSL_SRC}/crypto/rc4/asm \
16 ${OPENSSL_SRC}/crypto/ripemd/asm \
17 ${OPENSSL_SRC}/crypto/sha/asm \
18 ${OPENSSL_SRC}/crypto/whrlpool/asm
20 .if ${MACHINE_ARCH} == "i386"
31 SRCS+= bn-586.pl co-586.pl x86-mont.pl
37 SRCS+= des-586.pl crypt586.pl
49 SRCS+= sha1-586.pl sha256-586.pl sha512-586.pl
56 .elif ${MACHINE_ARCH} == "x86_64"
76 SRCS+= sha1-x86_64.pl sha256-x86_64.s sha512-x86_64.pl
84 all: ${SRCS:S/.pl$/.s/}
86 CLEANFILES+= ${SRCS:S/.pl$/.s/}
89 sha{256,512}-x86_64.s: ${OPENSSL_SRC}/crypto/sha/asm/sha512-x86_64.pl
90 perl ${.ALLSRC} elf ${.TARGET}
93 perl ${.IMPSRC} elf ${PERLFLAGS} > ${.TARGET}
95 .include <bsd.prog.mk>