2016-01-29 22:33:10 +00:00
|
|
|
LIBS=../../libcrypto
|
|
|
|
SOURCE[../../libcrypto]=\
|
2017-07-16 21:36:54 +00:00
|
|
|
sha1dgst.c sha1_one.c sha256.c sha512.c {- $target{sha1_asm_src} -} \
|
2018-04-22 08:42:59 +00:00
|
|
|
{- $target{keccak1600_asm_src} -}
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2018-01-23 12:54:55 +00:00
|
|
|
GENERATE[sha1-586.s]=asm/sha1-586.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:49:53 +00:00
|
|
|
DEPEND[sha1-586.s]=../perlasm/x86asm.pl
|
2018-01-23 12:54:55 +00:00
|
|
|
GENERATE[sha256-586.s]=asm/sha256-586.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:49:53 +00:00
|
|
|
DEPEND[sha256-586.s]=../perlasm/x86asm.pl
|
2018-01-23 12:54:55 +00:00
|
|
|
GENERATE[sha512-586.s]=asm/sha512-586.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:49:53 +00:00
|
|
|
DEPEND[sha512-586.s]=../perlasm/x86asm.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
|
|
|
GENERATE[sha1-ia64.s]=asm/sha1-ia64.pl $(LIB_CFLAGS) $(LIB_CPPFLAGS)
|
|
|
|
GENERATE[sha256-ia64.s]=asm/sha512-ia64.pl $(LIB_CFLAGS) $(LIB_CPPFLAGS)
|
|
|
|
GENERATE[sha512-ia64.s]=asm/sha512-ia64.pl $(LIB_CFLAGS) $(LIB_CPPFLAGS)
|
2016-03-07 14:49:53 +00:00
|
|
|
|
2016-05-03 11:17:30 +00:00
|
|
|
GENERATE[sha1-alpha.S]=asm/sha1-alpha.pl $(PERLASM_SCHEME)
|
2016-03-07 14:49:53 +00:00
|
|
|
|
|
|
|
GENERATE[sha1-x86_64.s]=asm/sha1-x86_64.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[sha1-mb-x86_64.s]=asm/sha1-mb-x86_64.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[sha256-x86_64.s]=asm/sha512-x86_64.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[sha256-mb-x86_64.s]=asm/sha256-mb-x86_64.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[sha512-x86_64.s]=asm/sha512-x86_64.pl $(PERLASM_SCHEME)
|
2018-04-22 10:56:31 +00:00
|
|
|
GENERATE[keccak1600-x86_64.s]=asm/keccak1600-x86_64.pl $(PERLASM_SCHEME)
|
2016-03-07 14:49:53 +00:00
|
|
|
|
|
|
|
GENERATE[sha1-sparcv9.S]=asm/sha1-sparcv9.pl $(PERLASM_SCHEME)
|
2016-03-10 19:05:52 +00:00
|
|
|
INCLUDE[sha1-sparcv9.o]=..
|
2016-03-07 14:49:53 +00:00
|
|
|
GENERATE[sha256-sparcv9.S]=asm/sha512-sparcv9.pl $(PERLASM_SCHEME)
|
2016-03-10 19:05:52 +00:00
|
|
|
INCLUDE[sha256-sparcv9.o]=..
|
2016-03-07 14:49:53 +00:00
|
|
|
GENERATE[sha512-sparcv9.S]=asm/sha512-sparcv9.pl $(PERLASM_SCHEME)
|
2016-03-10 19:05:52 +00:00
|
|
|
INCLUDE[sha512-sparcv9.o]=..
|
2016-03-07 14:49:53 +00:00
|
|
|
|
|
|
|
GENERATE[sha1-ppc.s]=asm/sha1-ppc.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[sha256-ppc.s]=asm/sha512-ppc.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[sha512-ppc.s]=asm/sha512-ppc.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[sha256p8-ppc.s]=asm/sha512p8-ppc.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[sha512p8-ppc.s]=asm/sha512p8-ppc.pl $(PERLASM_SCHEME)
|
2018-04-22 11:45:12 +00:00
|
|
|
GENERATE[keccak1600-ppc64.s]=asm/keccak1600-ppc64.pl $(PERLASM_SCHEME)
|
2016-03-07 14:49:53 +00:00
|
|
|
|
|
|
|
GENERATE[sha1-parisc.s]=asm/sha1-parisc.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[sha256-parisc.s]=asm/sha512-parisc.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[sha512-parisc.s]=asm/sha512-parisc.pl $(PERLASM_SCHEME)
|
|
|
|
|
|
|
|
GENERATE[sha1-mips.S]=asm/sha1-mips.pl $(PERLASM_SCHEME)
|
2016-09-01 08:39:15 +00:00
|
|
|
INCLUDE[sha1-mips.o]=..
|
2016-03-07 14:49:53 +00:00
|
|
|
GENERATE[sha256-mips.S]=asm/sha512-mips.pl $(PERLASM_SCHEME)
|
2016-09-01 08:39:15 +00:00
|
|
|
INCLUDE[sha256-mips.o]=..
|
2016-03-07 14:49:53 +00:00
|
|
|
GENERATE[sha512-mips.S]=asm/sha512-mips.pl $(PERLASM_SCHEME)
|
2016-09-01 08:39:15 +00:00
|
|
|
INCLUDE[sha512-mips.o]=..
|
2016-03-07 14:49:53 +00:00
|
|
|
|
2016-03-11 12:44:46 +00:00
|
|
|
GENERATE[sha1-armv4-large.S]=asm/sha1-armv4-large.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[sha1-armv4-large.o]=..
|
|
|
|
GENERATE[sha256-armv4.S]=asm/sha256-armv4.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[sha256-armv4.o]=..
|
|
|
|
GENERATE[sha512-armv4.S]=asm/sha512-armv4.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[sha512-armv4.o]=..
|
2018-04-22 12:08:28 +00:00
|
|
|
GENERATE[keccak1600-armv4.S]=asm/keccak1600-armv4.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[keccak1600-armv4.o]=..
|
2016-03-11 12:44:46 +00:00
|
|
|
|
|
|
|
GENERATE[sha1-armv8.S]=asm/sha1-armv8.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[sha1-armv8.o]=..
|
|
|
|
GENERATE[sha256-armv8.S]=asm/sha512-armv8.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[sha256-armv8.o]=..
|
|
|
|
GENERATE[sha512-armv8.S]=asm/sha512-armv8.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[sha512-armv8.o]=..
|
2018-04-22 11:00:28 +00:00
|
|
|
GENERATE[keccak1600-armv8.S]=asm/keccak1600-armv8.pl $(PERLASM_SCHEME)
|
2016-03-11 12:44:46 +00:00
|
|
|
|
2017-10-02 09:24:02 +00:00
|
|
|
GENERATE[sha1-s390x.S]=asm/sha1-s390x.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[sha1-s390x.o]=..
|
|
|
|
GENERATE[sha256-s390x.S]=asm/sha512-s390x.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[sha256-s390x.o]=..
|
|
|
|
GENERATE[sha512-s390x.S]=asm/sha512-s390x.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[sha512-s390x.o]=..
|
2018-04-22 11:09:49 +00:00
|
|
|
GENERATE[keccak1600-s390x.S]=asm/keccak1600-s390x.pl $(PERLASM_SCHEME)
|
2017-10-02 09:24:02 +00:00
|
|
|
|
2016-03-07 14:49:53 +00:00
|
|
|
BEGINRAW[Makefile(unix)]
|
2016-01-30 02:25:40 +00:00
|
|
|
##### SHA assembler implementations
|
|
|
|
|
|
|
|
# GNU make "catch all"
|
|
|
|
{- $builddir -}/sha1-%.S: {- $sourcedir -}/asm/sha1-%.pl
|
2016-02-13 18:15:52 +00:00
|
|
|
CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
2016-01-30 02:25:40 +00:00
|
|
|
{- $builddir -}/sha256-%.S: {- $sourcedir -}/asm/sha512-%.pl
|
2016-02-13 18:15:52 +00:00
|
|
|
CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
2016-01-30 02:25:40 +00:00
|
|
|
{- $builddir -}/sha512-%.S: {- $sourcedir -}/asm/sha512-%.pl
|
2016-02-13 18:15:52 +00:00
|
|
|
CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
2016-03-07 14:49:53 +00:00
|
|
|
ENDRAW[Makefile(unix)]
|