8c3bc594e0
C preprocessor flags get separated from C flags, which has the advantage that we don't get loads of macro definitions and inclusion directory specs when linking shared libraries, DSOs and programs. This is a step to add support for "make variables" when configuring. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5177)
19 lines
718 B
Text
19 lines
718 B
Text
LIBS=../../libcrypto
|
|
SOURCE[../../libcrypto]={- $target{chacha_asm_src} -}
|
|
|
|
GENERATE[chacha-x86.s]=asm/chacha-x86.pl \
|
|
$(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(CPPFLAGS) $(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]=..
|
|
|
|
BEGINRAW[Makefile(unix)]
|
|
##### CHACHA assembler implementations
|
|
|
|
{- $builddir -}/chacha-%.S: {- $sourcedir -}/asm/chacha-%.pl
|
|
CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
|
ENDRAW[Makefile(unix)]
|