Harmonize the make variables across all known platforms families
authorRichard Levitte <levitte@openssl.org>
Tue, 13 Feb 2018 19:32:42 +0000 (20:32 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 14 Feb 2018 16:13:53 +0000 (17:13 +0100)
commit722c9762f2e021a9b43774fca282c9a4146d38e6
treebaa43c8cea7110fdeaea39a9697df62a2ea25628
parent7c60a968ce1a6a8290dd3a9418ae10e06327f424
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)
21 files changed:
Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl
crypto/aes/build.info
crypto/bf/build.info
crypto/bn/build.info
crypto/build.info
crypto/camellia/build.info
crypto/cast/build.info
crypto/chacha/build.info
crypto/des/build.info
crypto/ec/build.info
crypto/md5/build.info
crypto/modes/build.info
crypto/poly1305/build.info
crypto/rc4/build.info
crypto/rc5/build.info
crypto/ripemd/build.info
crypto/sha/build.info
crypto/whrlpool/build.info
engines/build.info