de4fb434c7
Generate asm files with Makefile rules.
From:
- 0d9a86c7cb
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8351)
20 lines
776 B
Text
20 lines
776 B
Text
LIBS=../../libcrypto
|
|
SOURCE[../../libcrypto]={- $target{chacha_asm_src} -}
|
|
|
|
GENERATE[chacha-x86.s]=asm/chacha-x86.pl \
|
|
$(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR)
|
|
GENERATE[chacha-x86_64.s]=asm/chacha-x86_64.pl $(PERLASM_SCHEME)
|
|
GENERATE[chacha-ppc.s]=asm/chacha-ppc.pl $(PERLASM_SCHEME)
|
|
GENERATE[chacha-armv4.S]=asm/chacha-armv4.pl $(PERLASM_SCHEME)
|
|
INCLUDE[chacha-armv4.o]=..
|
|
GENERATE[chacha-armv8.S]=asm/chacha-armv8.pl $(PERLASM_SCHEME)
|
|
INCLUDE[chacha-armv8.o]=..
|
|
GENERATE[chacha-s390x.S]=asm/chacha-s390x.pl $(PERLASM_SCHEME)
|
|
INCLUDE[chacha-s390x.o]=..
|
|
|
|
BEGINRAW[Makefile(unix)]
|
|
##### CHACHA assembler implementations
|
|
|
|
{- $builddir -}/chacha-%.S: {- $sourcedir -}/asm/chacha-%.pl
|
|
CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
|
ENDRAW[Makefile(unix)]
|