build.info 2.3 KB
Newer Older
1
{- our @apps_openssl_src =
2
       qw(openssl.c
H
HJ 已提交
3 4 5 6
          asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c dgst.c
          enc.c errstr.c
          genpkey.c nseq.c passwd.c pkcs7.c pkcs8.c
          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
H
HJ 已提交
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 12
         split(/\s+/, $target{apps_aux_src}) );
   our @apps_init_src = split(/\s+/, $target{apps_init_src});
13
   "" -}
H
HJ 已提交
14

M
Matt Caswell 已提交
15
IF[{- !$disabled{apps} -}]
16 17 18 19
  LIBS_NO_INST=libapps.a
  SOURCE[libapps.a]={- join(" ", @apps_lib_src) -}
  INCLUDE[libapps.a]=.. ../include

M
Matt Caswell 已提交
20
  PROGRAMS=openssl
21
  SOURCE[openssl]={- join(" ", @apps_init_src) -}
R
Richard Levitte 已提交
22
  SOURCE[openssl]={- join(" ", @apps_openssl_src) -}
23
  INCLUDE[openssl]=.. ../include
24
  DEPEND[openssl]=libapps.a ../libssl
H
HJ 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
  IF[{- !$disabled{'des'} -}]
    SOURCE[openssl]=pkcs12.c
    DEPEND[pkcs12.o]=progs.h
  ENDIF
  IF[{- !$disabled{'ec'} -}]
    SOURCE[openssl]=ec.c ecparam.c
    DEPEND[ec.o]=progs.h
    DEPEND[ecparam.o]=progs.h
  ENDIF
  IF[{- !$disabled{'ocsp'} -}]
    SOURCE[openssl]=ocsp.c
    DEPEND[ocsp.o]=progs.h
  ENDIF
  IF[{- !$disabled{'srp'} -}]
    SOURCE[openssl]=srp.c
    DEPEND[srp.o]=progs.h
  ENDIF
  IF[{- !$disabled{'ts'} -}]
    SOURCE[openssl]=ts.c
    DEPEND[ts.o]=progs.h
  ENDIF
  IF[{- !$disabled{'dh'} -}]
    SOURCE[openssl]=dhparam.c
    DEPEND[dhparam.o]=progs.h
  ENDIF
  IF[{- !$disabled{'dsa'} -}]
    SOURCE[openssl]=dsa.c dsaparam.c gendsa.c
    DEPEND[dsa.o]=progs.h
    DEPEND[dsaparam.o]=progs.h
    DEPEND[gendsa.o]=progs.h
  ENDIF
  IF[{- !$disabled{'engine'} -}]
    SOURCE[openssl]=engine.c
    DEPEND[engine.o]=progs.h
  ENDIF
  IF[{- !$disabled{'rsa'} -}]
    SOURCE[openssl]=rsa.c rsautl.c genrsa.c
    DEPEND[rsa.o]=progs.h
    DEPEND[rsautl.o]=progs.h
    DEPEND[genrsa.o]=progs.h
  ENDIF
  IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
    GENERATE[openssl.rc]=../util/mkrc.pl openssl
    SOURCE[openssl]=openssl.rc
  ENDIF
R
Rich Salz 已提交
70

R
Richard Levitte 已提交
71 72 73 74 75
  {- join("\n  ", map { (my $x = $_) =~ s|\.c$|.o|; "DEPEND[$x]=progs.h" }
                  @apps_openssl_src) -}
  GENERATE[progs.h]=progs.pl $(APPS_OPENSSL)
  DEPEND[progs.h]=../configdata.pm

76
  SCRIPTS=CA.pl tsget.pl
M
Matt Caswell 已提交
77
  SOURCE[CA.pl]=CA.pl.in
78
  SOURCE[tsget.pl]=tsget.in
M
Matt Caswell 已提交
79
ENDIF