2019-08-29 04:27:47 +08:00
|
|
|
SUBDIRS=lib
|
|
|
|
|
2019-06-16 18:56:21 +08:00
|
|
|
# Program init source, that don't have direct linkage with the rest of the
|
|
|
|
# source, and can therefore not be part of a library.
|
|
|
|
IF[{- !$disabled{uplink} -}]
|
|
|
|
$INITSRC=../ms/applink.c
|
|
|
|
ENDIF
|
|
|
|
IF[{- $config{target} =~ /^vms-/ -}]
|
|
|
|
$INITSRC=vms_decc_init.c
|
|
|
|
ENDIF
|
|
|
|
|
|
|
|
# Source for the 'openssl' program
|
2019-08-29 04:27:47 +08:00
|
|
|
$OPENSSLSRC=\
|
|
|
|
openssl.c progs.c \
|
2020-02-12 18:05:29 +08:00
|
|
|
asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c dgst.c \
|
2020-03-05 05:52:22 +08:00
|
|
|
enc.c errstr.c \
|
|
|
|
genpkey.c kdf.c mac.c nseq.c passwd.c pkcs7.c \
|
2020-02-12 13:03:51 +08:00
|
|
|
pkcs8.c pkey.c pkeyparam.c pkeyutl.c prime.c rand.c req.c \
|
|
|
|
s_client.c s_server.c s_time.c sess_id.c smime.c speed.c \
|
2020-03-05 05:52:22 +08:00
|
|
|
spkac.c verify.c version.c x509.c rehash.c storeutl.c \
|
2019-08-29 04:27:47 +08:00
|
|
|
list.c info.c provider.c fipsinstall.c
|
2020-03-05 05:52:22 +08:00
|
|
|
IF[{- !$disabled{'des'} -}]
|
|
|
|
$OPENSSLSRC=$OPENSSLSRC pkcs12.c
|
|
|
|
ENDIF
|
|
|
|
IF[{- !$disabled{'ec'} -}]
|
|
|
|
$OPENSSLSRC=$OPENSSLSRC ec.c ecparam.c
|
|
|
|
ENDIF
|
|
|
|
IF[{- !$disabled{'ocsp'} -}]
|
|
|
|
$OPENSSLSRC=$OPENSSLSRC ocsp.c
|
|
|
|
ENDIF
|
|
|
|
IF[{- !$disabled{'srp'} -}]
|
|
|
|
$OPENSSLSRC=$OPENSSLSRC srp.c
|
|
|
|
ENDIF
|
|
|
|
IF[{- !$disabled{'ts'} -}]
|
|
|
|
$OPENSSLSRC=$OPENSSLSRC ts.c
|
|
|
|
ENDIF
|
2020-04-17 19:50:50 +08:00
|
|
|
IF[{- !$disabled{'dh'} -}]
|
|
|
|
$OPENSSLSRC=$OPENSSLSRC dhparam.c
|
|
|
|
ENDIF
|
|
|
|
IF[{- !$disabled{'dsa'} -}]
|
|
|
|
$OPENSSLSRC=$OPENSSLSRC dsa.c dsaparam.c gendsa.c
|
|
|
|
ENDIF
|
|
|
|
IF[{- !$disabled{'engine'} -}]
|
|
|
|
$OPENSSLSRC=$OPENSSLSRC engine.c
|
|
|
|
ENDIF
|
|
|
|
IF[{- !$disabled{'rsa'} -}]
|
|
|
|
$OPENSSLSRC=$OPENSSLSRC rsa.c genrsa.c
|
|
|
|
ENDIF
|
2020-02-26 21:39:16 +08:00
|
|
|
IF[{- !$disabled{'deprecated-3.0'} -}]
|
2020-03-05 05:52:22 +08:00
|
|
|
IF[{- !$disabled{'rsa'} -}]
|
2020-04-17 19:50:50 +08:00
|
|
|
$OPENSSLSRC=$OPENSSLSRC rsautl.c
|
2020-03-05 05:52:22 +08:00
|
|
|
ENDIF
|
2020-02-26 21:39:16 +08:00
|
|
|
ENDIF
|
2020-03-10 17:29:46 +08:00
|
|
|
IF[{- !$disabled{'cmp'} -}]
|
2020-04-03 16:43:58 +08:00
|
|
|
$OPENSSLSRC=$OPENSSLSRC cmp.c cmp_mock_srv.c
|
2020-03-10 17:29:46 +08:00
|
|
|
ENDIF
|
2019-06-16 18:56:21 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
IF[{- !$disabled{apps} -}]
|
|
|
|
PROGRAMS=openssl
|
2019-06-16 18:56:21 +08:00
|
|
|
SOURCE[openssl]=$INITSRC $OPENSSLSRC
|
Move libapps headers into their own directory
This got triggered by test/testutil.h including ../apps/opt.h.
Some compilers do all inclusions from the directory of the C file
being compiled, so when a C file includes a header file with a
relative file spec, and that header file also includes another header
file with a relative file spec, the compiler no longer follows.
As a specific example, test/testutil/basic_output.c included
../testutil.h. Fine so far, but then, test/testutil.h includes
../apps/opt.h, and the compiler ends up trying to include (seen from
the source top) test/apps/opt.h rather than apps/opt.h, and fails.
The solution could have been to simply add apps/ as an inclusion
directory. However, that directory also has header files that have
nothing to do with libapps, so we take this a bit further, create
apps/include and move libapps specific headers there, and then add
apps/include as inclusion directory in the build.info files where
needed.
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
(Merged from https://github.com/openssl/openssl/pull/8210)
2019-02-12 18:37:43 +08:00
|
|
|
INCLUDE[openssl]=.. ../include include
|
2018-01-31 21:15:52 +08:00
|
|
|
DEPEND[openssl]=libapps.a ../libssl
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2020-02-26 21:39:16 +08:00
|
|
|
DEPEND[${OPENSSLSRC/.c/.o}]=progs.h
|
|
|
|
GENERATE[progs.c]=progs.pl -C $(APPS_OPENSSL)
|
|
|
|
GENERATE[progs.h]=progs.pl -H $(APPS_OPENSSL)
|
|
|
|
# progs.pl tries to read all 'openssl' sources, including progs.c, so we make
|
|
|
|
# sure things are generated in the correct order.
|
|
|
|
DEPEND[progs.h]=progs.c
|
|
|
|
|
2019-06-16 18:56:21 +08:00
|
|
|
IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
|
|
|
|
GENERATE[openssl.rc]=../util/mkrc.pl openssl
|
|
|
|
SOURCE[openssl]=openssl.rc
|
|
|
|
ENDIF
|
2018-03-22 22:21:33 +08:00
|
|
|
|
Build: use attributes to indicate installed script classes
We have two classes of scripts to be installed, those that are
installed as "normal" programs, and those that are installed as "misc"
scripts. These classes are installed in different locations, so the
build file templates must pay attention.
Because we didn't have the tools to indicate what scripts go where, we
had these scripts hard coded in the build template files, with the
maintenance issues that may cause. Now that we have attributes, those
can be used to classify the installed scripts, and have the build file
templates simply check the attributes to know what's what.
Furthermore, the 'tsget.pl' script exists both as 'tsget.pl' and
'tsget', which is done by installing a symbolic link (or copy). This
link name is now given through an attribute, which results in even
less hard coding in the Unix Makefile template.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7581)
2018-11-07 18:05:17 +08:00
|
|
|
SCRIPTS{misc}=CA.pl
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[CA.pl]=CA.pl.in
|
Build: use attributes to indicate installed script classes
We have two classes of scripts to be installed, those that are
installed as "normal" programs, and those that are installed as "misc"
scripts. These classes are installed in different locations, so the
build file templates must pay attention.
Because we didn't have the tools to indicate what scripts go where, we
had these scripts hard coded in the build template files, with the
maintenance issues that may cause. Now that we have attributes, those
can be used to classify the installed scripts, and have the build file
templates simply check the attributes to know what's what.
Furthermore, the 'tsget.pl' script exists both as 'tsget.pl' and
'tsget', which is done by installing a symbolic link (or copy). This
link name is now given through an attribute, which results in even
less hard coding in the Unix Makefile template.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7581)
2018-11-07 18:05:17 +08:00
|
|
|
# linkname tells build files that a symbolic link or copy of this script
|
|
|
|
# without extension must be installed as well. Unix or Unix lookalike only.
|
|
|
|
SCRIPTS{misc,linkname=tsget}=tsget.pl
|
2018-07-23 19:25:45 +08:00
|
|
|
SOURCE[tsget.pl]=tsget.in
|
2016-04-14 20:44:15 +08:00
|
|
|
ENDIF
|