Build: use attributes to indicate installed script classes
[openssl.git] / apps / build.info
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    "" -}
14 IF[{- !$disabled{apps} -}]
15   LIBS{noinst}=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
25 IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
26   GENERATE[openssl.rc]=../util/mkrc.pl openssl
27   SOURCE[openssl]=openssl.rc
28 ENDIF
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{misc}=CA.pl
36   SOURCE[CA.pl]=CA.pl.in
37   # linkname tells build files that a symbolic link or copy of this script
38   # without extension must be installed as well.  Unix or Unix lookalike only.
39   SCRIPTS{misc,linkname=tsget}=tsget.pl
40   SOURCE[tsget.pl]=tsget.in
41 ENDIF