Commit 04e2a527 authored by Richard Levitte's avatar Richard Levitte
Browse files

Generate apps/progs.h on the fly

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent a45d7d53
Loading
Loading
Loading
Loading
+1 −12
Changes for Configurations/unix-Makefile.tmpl: 1 added line, 12 removed lines.
Original line number Diff line number Diff line
@@ -617,7 +617,7 @@ generate: generate_apps generate_crypto_bn generate_crypto_objects
lint:
	lint -DLINT $(INCLUDES) $(SRCS)

generate_apps: $(SRCDIR)/apps/openssl-vms.cnf $(SRCDIR)/apps/progs.h
generate_apps: $(SRCDIR)/apps/openssl-vms.cnf

generate_crypto_bn: $(SRCDIR)/crypto/bn/bn_prime.h

@@ -695,17 +695,6 @@ $(SRCDIR)/apps/openssl-vms.cnf: $(SRCDIR)/apps/openssl.cnf
	$(PERL) $(SRCDIR)/VMS/VMSify-conf.pl \
                < $(SRCDIR)/apps/openssl.cnf > $(SRCDIR)/apps/openssl-vms.cnf

{- # because the program apps/openssl has object files as sources, and
   # they then have the corresponding C files as source, we need to chain
   # the lookups in %unified_info
   my $apps_openssl = catfile("apps","openssl");
   our @openssl_source = map { @{$unified_info{sources}->{$_}} }
                         @{$unified_info{sources}->{$apps_openssl}};
   ""; -}
$(SRCDIR)/apps/progs.h:
	$(RM) $@
	$(PERL) $(SRCDIR)/apps/progs.pl {- join(" ", @openssl_source) -} > $@

$(SRCDIR)/crypto/bn/bn_prime.h: $(SRCDIR)/crypto/bn/bn_prime.pl
	$(PERL) $(SRCDIR)/crypto/bn/bn_prime.pl > $(SRCDIR)/crypto/bn/bn_prime.h

+18 −7
Changes for apps/build.info: 18 added lines, 7 removed lines.
Original line number Diff line number Diff line
{- use File::Spec::Functions qw/catdir rel2abs/; -}
{- use File::Spec::Functions qw/catdir rel2abs/;
   our @cmd_srcs = (
        "asn1pars.c", "ca.c", "ciphers.c", "cms.c", "crl.c", "crl2p7.c",
        "dgst.c", "dhparam.c", "dsa.c", "dsaparam.c", "ec.c", "ecparam.c",
        "enc.c", "engine.c", "errstr.c", "gendsa.c", "genpkey.c", "genrsa.c",
        "nseq.c", "ocsp.c", "passwd.c", "pkcs12.c", "pkcs7.c", "pkcs8.c",
        "pkey.c", "pkeyparam.c", "pkeyutl.c", "prime.c", "rand.c", "req.c",
        "rsa.c", "rsautl.c", "s_client.c", "s_server.c", "s_time.c",
        "sess_id.c", "smime.c", "speed.c", "spkac.c", "srp.c", "ts.c",
        "verify.c", "version.c", "x509.c", "rehash.c",
   );
   "";
 -}
PROGRAMS=openssl
SOURCE[openssl]=\
        openssl.c \
        asn1pars.c ca.c ciphers.c cms.c crl.c crl2p7.c dgst.c dhparam.c \
        dsa.c dsaparam.c ec.c ecparam.c enc.c engine.c errstr.c gendsa.c \
        genpkey.c genrsa.c nseq.c ocsp.c passwd.c pkcs12.c pkcs7.c pkcs8.c \
        pkey.c pkeyparam.c pkeyutl.c prime.c rand.c req.c rsa.c rsautl.c \
        s_client.c s_server.c s_time.c sess_id.c smime.c speed.c spkac.c \
        srp.c ts.c verify.c version.c x509.c rehash.c \
        {- join(" ", @cmd_srcs); -} \
        apps.c opt.c s_cb.c s_socket.c \
        app_rand.c \
        {- $target{apps_aux_src} -}
DEPEND[openssl.o]=progs.h
DEPEND[progs.h]={- join(" ", @cmd_srcs); -} ../configdata.pm
GENERATE[progs.h]=progs.pl {- join(" ", map { catdir($sourcedir, $_) } @cmd_srcs); -}

INCLUDE[openssl]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
DEPEND[openssl]=../libssl

−428

File deleted.