Refine comments to add its origin.

This commit is contained in:
Jung-uk Kim 2016-05-11 19:59:05 +00:00
parent 9615213bef
commit 82d668d29c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299479

View File

@ -44,33 +44,39 @@ SRCS+= aesni-gcm-x86_64.pl ghash-x86_64.pl
SRCS+= rc4-md5-x86_64.pl rc4-x86_64.pl
# sha
SRCS+= sha1-mb-x86_64.pl sha1-x86_64.pl sha256-mb-x86_64.pl sha512-x86_64.pl
SRCS+= sha1-mb-x86_64.pl sha1-x86_64.pl sha256-mb-x86_64.pl
# whrlpool
SRCS+= wp-x86_64.pl
ASM= ${SRCS:S/.pl/.S/}
ASM+= sha256-x86_64.S x86_64cpuid.S
# cpuid
SRCS+= x86_64cpuid.pl
SHA_ASM= sha256-x86_64 sha512-x86_64
SHA_SRC= sha512-x86_64.pl
SHA_TMP= ${SHA_ASM:S/$/.s/}
ASM= ${SRCS:R:S/$/.S/} ${SHA_ASM:S/$/.S/}
all: ${ASM}
CLEANFILES+= ${SRCS:M*.pl:S/.pl$/.cmt/} ${SRCS:M*.pl:S/.pl$/.S/}
CLEANFILES+= sha256-x86_64.cmt sha256-x86_64.S x86_64cpuid.cmt x86_64cpuid.S
.SUFFIXES: .pl .cmt
CLEANFILES= ${ASM} ${SHA_ASM:S/$/.s/}
.SUFFIXES: .pl
.pl.cmt:
( cd `dirname ${.IMPSRC}`/.. ; perl ${.IMPSRC} ${.OBJDIR}/${.TARGET} )
.pl.S:
( echo '# $$'FreeBSD'$$' ;\
echo '# Do not modify. This file is auto-generated from ${.IMPSRC:T}.' ;\
perl ${.IMPSRC} elf ) > ${.TARGET}
.cmt.S:
${SHA_TMP}: ${SHA_SRC}
perl ${.ALLSRC} elf ${.TARGET}
.for s in ${SHA_ASM}
${s}.S: ${s}.s
( echo ' # $$'FreeBSD'$$' ;\
echo ' # Do not modify. This file is auto-generated.' ;\
cat ${.IMPSRC} ) > ${.TARGET}
sha256-x86_64.cmt: sha512-x86_64.pl
( cd `dirname ${.ALLSRC}`/.. ; perl ${.ALLSRC} ${.OBJDIR}/${.TARGET} )
x86_64cpuid.cmt: x86_64cpuid.pl
( cd `dirname ${.ALLSRC}` ; perl ${.ALLSRC} ${.OBJDIR}/${.TARGET} )
echo ' # Do not modify. This file is auto-generated from ${SHA_SRC}.' ;\
cat ${s}.s ) > ${.TARGET}
.endfor
.elif ${MACHINE_CPUARCH} == "i386"
@ -129,16 +135,16 @@ SRCS+= wp-mmx.pl
# cpuid
SRCS+= x86cpuid.pl
ASM= ${SRCS:S/.pl/.S/}
ASM= ${SRCS:R:S/$/.S/}
all: ${ASM}
CLEANFILES+= ${SRCS:M*.pl:S/.pl$/.S/}
CLEANFILES= ${ASM}
.SUFFIXES: .pl
.pl.S:
( echo ' # $$'FreeBSD'$$' ;\
echo ' # Do not modify. This file is auto-generated.' ;\
( echo '# $$'FreeBSD'$$' ;\
echo '# Do not modify. This file is auto-generated from ${.IMPSRC:T}.' ;\
echo '#ifdef PIC' ;\
perl ${PERLPATH} ${.IMPSRC} elf ${CFLAGS} -fpic -DPIC ;\
echo '#else' ;\