Build: Generate apps/progs.c and apps/progs.h in build time
[openssl.git] / apps / build.info
1 SUBDIRS=lib
2
3 # Program init source, that don't have direct linkage with the rest of the
4 # source, and can therefore not be part of a library.
5 IF[{- !$disabled{uplink} -}]
6   $INITSRC=../ms/applink.c
7 ENDIF
8 IF[{- $config{target} =~ /^vms-/ -}]
9   $INITSRC=vms_decc_init.c
10 ENDIF
11
12 # Source for the 'openssl' program
13 $OPENSSLSRC=\
14         openssl.c progs.c \
15         asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c dgst.c \
16         ec.c ecparam.c enc.c engine.c errstr.c \
17         genpkey.c kdf.c mac.c nseq.c ocsp.c passwd.c pkcs12.c pkcs7.c \
18         pkcs8.c pkey.c pkeyparam.c pkeyutl.c prime.c rand.c req.c \
19         s_client.c s_server.c s_time.c sess_id.c smime.c speed.c \
20         spkac.c srp.c ts.c verify.c version.c x509.c rehash.c storeutl.c \
21         list.c info.c provider.c fipsinstall.c
22 IF[{- !$disabled{'deprecated-3.0'} -}]
23   $OPENSSLSRC=$OPENSSLSRC \
24         dhparam.c dsa.c dsaparam.c gendsa.c rsa.c rsautl.c genrsa.c
25 ENDIF
26
27 IF[{- !$disabled{apps} -}]
28   PROGRAMS=openssl
29   SOURCE[openssl]=$INITSRC $OPENSSLSRC
30   INCLUDE[openssl]=.. ../include include
31   DEPEND[openssl]=libapps.a ../libssl
32
33   DEPEND[${OPENSSLSRC/.c/.o}]=progs.h
34   GENERATE[progs.c]=progs.pl -C $(APPS_OPENSSL)
35   GENERATE[progs.h]=progs.pl -H $(APPS_OPENSSL)
36   # progs.pl tries to read all 'openssl' sources, including progs.c, so we make
37   # sure things are generated in the correct order.
38   DEPEND[progs.h]=progs.c
39
40   IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
41     GENERATE[openssl.rc]=../util/mkrc.pl openssl
42     SOURCE[openssl]=openssl.rc
43   ENDIF
44
45   SCRIPTS{misc}=CA.pl
46   SOURCE[CA.pl]=CA.pl.in
47   # linkname tells build files that a symbolic link or copy of this script
48   # without extension must be installed as well.  Unix or Unix lookalike only.
49   SCRIPTS{misc,linkname=tsget}=tsget.pl
50   SOURCE[tsget.pl]=tsget.in
51 ENDIF