xref: /freebsd/crypto/openssl/apps/build.info (revision faf25f48d601ae39f5752602f3020e2e92605625)
1{- our @apps_openssl_src =
2       qw(openssl.c
3          asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c dgst.c
4          enc.c errstr.c
5          genpkey.c nseq.c passwd.c pkcs7.c pkcs8.c
6          pkey.c pkeyparam.c pkeyutl.c prime.c rand.c req.c
7          s_client.c s_server.c s_time.c sess_id.c smime.c speed.c spkac.c
8          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
15IF[{- !$disabled{apps} -}]
16  LIBS_NO_INST=libapps.a
17  SOURCE[libapps.a]={- join(" ", @apps_lib_src) -}
18  INCLUDE[libapps.a]=.. ../include
19
20  PROGRAMS=openssl
21  SOURCE[openssl]={- join(" ", @apps_init_src) -}
22  SOURCE[openssl]={- join(" ", @apps_openssl_src) -}
23  INCLUDE[openssl]=.. ../include
24  DEPEND[openssl]=libapps.a ../libssl
25  IF[{- !$disabled{'des'} -}]
26    SOURCE[openssl]=pkcs12.c
27    DEPEND[pkcs12.o]=progs.h
28  ENDIF
29  IF[{- !$disabled{'ec'} -}]
30    SOURCE[openssl]=ec.c ecparam.c
31    DEPEND[ec.o]=progs.h
32    DEPEND[ecparam.o]=progs.h
33  ENDIF
34  IF[{- !$disabled{'ocsp'} -}]
35    SOURCE[openssl]=ocsp.c
36    DEPEND[ocsp.o]=progs.h
37  ENDIF
38  IF[{- !$disabled{'srp'} -}]
39    SOURCE[openssl]=srp.c
40    DEPEND[srp.o]=progs.h
41  ENDIF
42  IF[{- !$disabled{'ts'} -}]
43    SOURCE[openssl]=ts.c
44    DEPEND[ts.o]=progs.h
45  ENDIF
46  IF[{- !$disabled{'dh'} -}]
47    SOURCE[openssl]=dhparam.c
48    DEPEND[dhparam.o]=progs.h
49  ENDIF
50  IF[{- !$disabled{'dsa'} -}]
51    SOURCE[openssl]=dsa.c dsaparam.c gendsa.c
52    DEPEND[dsa.o]=progs.h
53    DEPEND[dsaparam.o]=progs.h
54    DEPEND[gendsa.o]=progs.h
55  ENDIF
56  IF[{- !$disabled{'engine'} -}]
57    SOURCE[openssl]=engine.c
58    DEPEND[engine.o]=progs.h
59  ENDIF
60  IF[{- !$disabled{'rsa'} -}]
61    SOURCE[openssl]=rsa.c rsautl.c genrsa.c
62    DEPEND[rsa.o]=progs.h
63    DEPEND[rsautl.o]=progs.h
64    DEPEND[genrsa.o]=progs.h
65  ENDIF
66  IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
67    GENERATE[openssl.rc]=../util/mkrc.pl openssl
68    SOURCE[openssl]=openssl.rc
69  ENDIF
70
71  {- join("\n  ", map { (my $x = $_) =~ s|\.c$|.o|; "DEPEND[$x]=progs.h" }
72                  @apps_openssl_src) -}
73  GENERATE[progs.h]=progs.pl $(APPS_OPENSSL)
74  DEPEND[progs.h]=../configdata.pm
75
76  SCRIPTS=CA.pl tsget.pl
77  SOURCE[CA.pl]=CA.pl.in
78  SOURCE[tsget.pl]=tsget.in
79ENDIF
80