Move the code for 'openssl list' to its own translation unit.
[openssl.git] / apps / build.info
1 # Program init source, that don't have direct linkage with the rest of the
2 # source, and can therefore not be part of a library.
3 IF[{- !$disabled{uplink} -}]
4   $INITSRC=../ms/applink.c
5 ENDIF
6 IF[{- $config{target} =~ /^vms-/ -}]
7   $INITSRC=vms_decc_init.c
8 ENDIF
9
10 # Auxilliary program source
11 IF[{- $config{target} =~ /^(?:VC-|mingw)/ -}]
12   # It's called 'init', but doesn't have much 'init' in it...
13   $AUXLIBAPPSSRC=win32_init.c
14 ENDIF
15 IF[{- $config{target} =~ /^vms-/ -}]
16   $AUXLIBAPPSSRC=vms_term_sock.c vms_decc_argv.c
17 ENDIF
18
19 # Source for the 'openssl' program
20 # We need the perl variable for the DEPEND generator further down.
21 $OPENSSLSRC={-
22    our @opensslsrc =
23        qw(openssl.c progs.c
24           asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c dgst.c dhparam.c
25           dsa.c dsaparam.c ec.c ecparam.c enc.c engine.c errstr.c gendsa.c
26           genpkey.c genrsa.c kdf.c mac.c nseq.c ocsp.c passwd.c pkcs12.c pkcs7.c
27           pkcs8.c pkey.c pkeyparam.c pkeyutl.c prime.c rand.c req.c rsa.c
28           rsautl.c s_client.c s_server.c s_time.c sess_id.c smime.c speed.c
29           spkac.c srp.c ts.c verify.c version.c x509.c rehash.c storeutl.c
30           list.c info.c);
31    join(' ', @opensslsrc); -}
32 # Source for libapps
33 $LIBAPPSSRC=apps.c apps_ui.c opt.c fmt.c s_cb.c s_socket.c app_rand.c \
34         bf_prefix.c columns.c
35
36 IF[{- !$disabled{apps} -}]
37   LIBS{noinst}=libapps.a
38   SOURCE[libapps.a]=$LIBAPPSSRC $AUXLIBAPPSSRC
39   INCLUDE[libapps.a]=.. ../include include
40
41   PROGRAMS=openssl
42   SOURCE[openssl]=$INITSRC $OPENSSLSRC
43   INCLUDE[openssl]=.. ../include include
44   DEPEND[openssl]=libapps.a ../libssl
45
46   IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
47     GENERATE[openssl.rc]=../util/mkrc.pl openssl
48     SOURCE[openssl]=openssl.rc
49   ENDIF
50
51   SCRIPTS{misc}=CA.pl
52   SOURCE[CA.pl]=CA.pl.in
53   # linkname tells build files that a symbolic link or copy of this script
54   # without extension must be installed as well.  Unix or Unix lookalike only.
55   SCRIPTS{misc,linkname=tsget}=tsget.pl
56   SOURCE[tsget.pl]=tsget.in
57 ENDIF