2016-01-29 22:33:10 +00:00
|
|
|
LIBS=../../libcrypto
|
|
|
|
SOURCE[../../libcrypto]=\
|
2016-12-16 22:00:43 +00:00
|
|
|
poly1305_pmeth.c \
|
|
|
|
poly1305_ameth.c \
|
2016-01-29 22:33:10 +00:00
|
|
|
poly1305.c {- $target{poly1305_asm_src} -}
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:48:25 +00:00
|
|
|
GENERATE[poly1305-sparcv9.S]=asm/poly1305-sparcv9.pl $(PERLASM_SCHEME)
|
2016-03-10 19:05:52 +00:00
|
|
|
INCLUDE[poly1305-sparcv9.o]=..
|
2018-01-23 12:54:55 +00:00
|
|
|
GENERATE[poly1305-x86.s]=asm/poly1305-x86.pl \
|
Harmonize the make variables across all known platforms families
The make variables LIB_CFLAGS, DSO_CFLAGS and so on were used in
addition to CFLAGS and so on. This works without problem on Unix and
Windows, where options with different purposes (such as -D and -I) can
appear anywhere on the command line and get accumulated as they come.
This is not necessarely so on VMS. For example, macros must all be
collected and given through one /DEFINE, and the same goes for
inclusion directories (/INCLUDE).
So, to harmonize all platforms, we repurpose make variables starting
with LIB_, DSO_ and BIN_ to be all encompassing variables that
collects the corresponding values from CFLAGS, CPPFLAGS, DEFINES,
INCLUDES and so on together with possible config target values
specific for libraries DSOs and programs, and use them instead of the
general ones everywhere.
This will, for example, allow VMS to use the exact same generators for
generated files that go through cpp as all other platforms, something
that has been impossible to do safely before now.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5357)
2018-02-13 19:32:42 +00:00
|
|
|
$(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR)
|
2016-03-07 14:48:25 +00:00
|
|
|
GENERATE[poly1305-x86_64.s]=asm/poly1305-x86_64.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[poly1305-ppc.s]=asm/poly1305-ppc.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[poly1305-ppcfp.s]=asm/poly1305-ppcfp.pl $(PERLASM_SCHEME)
|
2016-03-11 12:44:46 +00:00
|
|
|
GENERATE[poly1305-armv4.S]=asm/poly1305-armv4.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[poly1305-armv4.o]=..
|
|
|
|
GENERATE[poly1305-armv8.S]=asm/poly1305-armv8.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[poly1305-armv8.o]=..
|
2016-05-04 13:33:42 +00:00
|
|
|
GENERATE[poly1305-mips.S]=asm/poly1305-mips.pl $(PERLASM_SCHEME)
|
2016-09-01 08:39:15 +00:00
|
|
|
INCLUDE[poly1305-mips.o]=..
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:48:25 +00:00
|
|
|
BEGINRAW[Makefile(unix)]
|
2016-01-30 02:25:40 +00:00
|
|
|
{- $builddir -}/poly1305-%.S: {- $sourcedir -}/asm/poly1305-%.pl
|
2016-02-13 18:15:52 +00:00
|
|
|
CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
2016-01-30 02:25:40 +00:00
|
|
|
ENDRAW[Makefile(unix)]
|