2016-01-30 06:14:58 +00:00
|
|
|
{- use File::Spec::Functions qw/catdir catfile/; -}
|
2016-01-29 22:33:10 +00:00
|
|
|
LIBS=../libcrypto
|
|
|
|
SOURCE[../libcrypto]=\
|
|
|
|
cryptlib.c mem.c mem_dbg.c cversion.c ex_data.c cpt_err.c \
|
2017-08-20 21:19:17 +00:00
|
|
|
ebcdic.c uid.c o_time.c o_str.c o_dir.c o_fopen.c ctype.c \
|
2015-10-25 16:43:55 +00:00
|
|
|
threads_pthread.c threads_win.c threads_none.c \
|
2016-03-02 08:34:26 +00:00
|
|
|
o_init.c o_fips.c mem_sec.c init.c {- $target{cpuid_asm_src} -} \
|
|
|
|
{- $target{uplink_aux_src} -}
|
2016-01-29 22:33:10 +00:00
|
|
|
EXTRA= ../ms/uplink-x86.pl ../ms/uplink.c ../ms/applink.c \
|
|
|
|
x86cpuid.pl x86_64cpuid.pl ia64cpuid.S \
|
|
|
|
ppccpuid.pl pariscid.pl alphacpuid.pl arm64cpuid.pl armv4cpuid.pl
|
|
|
|
|
|
|
|
DEPEND[cversion.o]=buildinf.h
|
Make "make variables" config attributes for overridable flags
With the support of "make variables" comes the possibility for the
user to override them. However, we need to make a difference between
defaults that we use (and that should be overridable by the user) and
flags that are crucial for building OpenSSL (should not be
overridable).
Typically, overridable flags are those setting optimization levels,
warnings levels, that kind of thing, while non-overridable flags are,
for example, macros that indicate aspects of how the config target
should be treated, such as L_ENDIAN and B_ENDIAN.
We do that differentiation by allowing upper case attributes in the
config targets, named exactly like the "make variables" we support,
and reserving the lower case attributes for non-overridable project
flags.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5534)
2018-03-06 19:35:30 +00:00
|
|
|
GENERATE[buildinf.h]=../util/mkbuildinf.pl "$(CC) $(CNF_CFLAGS) $(CFLAGS) $(CPPFLAGS_Q)" "$(PLATFORM)"
|
2016-03-19 00:01:07 +00:00
|
|
|
DEPEND[buildinf.h]=../configdata.pm
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:00:45 +00:00
|
|
|
GENERATE[uplink-x86.s]=../ms/uplink-x86.pl $(PERLASM_SCHEME)
|
2016-03-18 22:31:17 +00:00
|
|
|
GENERATE[uplink-x86_64.s]=../ms/uplink-x86_64.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[uplink-ia64.s]=../ms/uplink-ia64.pl $(PERLASM_SCHEME)
|
2016-01-30 06:14:58 +00:00
|
|
|
|
2018-01-23 12:54:55 +00:00
|
|
|
GENERATE[x86cpuid.s]=x86cpuid.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:00:45 +00:00
|
|
|
DEPEND[x86cpuid.s]=perlasm/x86asm.pl
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:00:45 +00:00
|
|
|
GENERATE[x86_64cpuid.s]=x86_64cpuid.pl $(PERLASM_SCHEME)
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:00:45 +00:00
|
|
|
GENERATE[ia64cpuid.s]=ia64cpuid.S
|
2016-03-13 10:07:12 +00:00
|
|
|
GENERATE[ppccpuid.s]=ppccpuid.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[pariscid.s]=pariscid.pl $(PERLASM_SCHEME)
|
2016-03-07 14:00:45 +00:00
|
|
|
GENERATE[alphacpuid.s]=alphacpuid.pl
|
|
|
|
GENERATE[arm64cpuid.S]=arm64cpuid.pl $(PERLASM_SCHEME)
|
2016-03-11 12:44:46 +00:00
|
|
|
INCLUDE[arm64cpuid.o]=.
|
2016-03-07 14:00:45 +00:00
|
|
|
GENERATE[armv4cpuid.S]=armv4cpuid.pl $(PERLASM_SCHEME)
|
2016-03-11 12:44:46 +00:00
|
|
|
INCLUDE[armv4cpuid.o]=.
|
2017-10-02 13:53:00 +00:00
|
|
|
GENERATE[s390xcpuid.S]=s390xcpuid.pl $(PERLASM_SCHEME)
|
|
|
|
INCLUDE[s390xcpuid.o]=.
|
2016-03-29 14:48:02 +00:00
|
|
|
|
|
|
|
IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
|
|
|
|
SHARED_SOURCE[../libcrypto]=dllmain.c
|
|
|
|
ENDIF
|