xref: /freebsd/crypto/openssl/apps/build.info (revision f6a3b357e9be4c6423c85eff9a847163a0d307c8)
1{- our @apps_openssl_src =
2       qw(openssl.c
3          asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c dgst.c dhparam.c
4          dsa.c dsaparam.c ec.c ecparam.c enc.c engine.c errstr.c gendsa.c
5          genpkey.c genrsa.c nseq.c ocsp.c passwd.c pkcs12.c pkcs7.c pkcs8.c
6          pkey.c pkeyparam.c pkeyutl.c prime.c rand.c req.c rsa.c rsautl.c
7          s_client.c s_server.c s_time.c sess_id.c smime.c speed.c spkac.c
8          srp.c ts.c verify.c version.c x509.c rehash.c storeutl.c);
9   our @apps_lib_src =
10       ( qw(apps.c opt.c s_cb.c s_socket.c app_rand.c bf_prefix.c),
11         split(/\s+/, $target{apps_aux_src}) );
12   our @apps_init_src = split(/\s+/, $target{apps_init_src});
13   "" -}
14IF[{- !$disabled{apps} -}]
15  LIBS_NO_INST=libapps.a
16  SOURCE[libapps.a]={- join(" ", @apps_lib_src) -}
17  INCLUDE[libapps.a]=.. ../include
18
19  PROGRAMS=openssl
20  SOURCE[openssl]={- join(" ", @apps_init_src) -}
21  SOURCE[openssl]={- join(" ", @apps_openssl_src) -}
22  INCLUDE[openssl]=.. ../include
23  DEPEND[openssl]=libapps.a ../libssl
24
25IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
26  GENERATE[openssl.rc]=../util/mkrc.pl openssl
27  SOURCE[openssl]=openssl.rc
28ENDIF
29
30  {- join("\n  ", map { (my $x = $_) =~ s|\.c$|.o|; "DEPEND[$x]=progs.h" }
31                  @apps_openssl_src) -}
32  GENERATE[progs.h]=progs.pl $(APPS_OPENSSL)
33  DEPEND[progs.h]=../configdata.pm
34
35  SCRIPTS=CA.pl tsget.pl
36  SOURCE[CA.pl]=CA.pl.in
37  SOURCE[tsget.pl]=tsget.in
38ENDIF
39