X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=util%2Fmkfiles.pl;h=d668316d697de59ca5cf6de8c093700edfb6693c;hp=55a313cdb0ec3de02ddfdf9b4fbbd63e240cd58a;hb=c86ddbe61323e371f6ac88728581481a1aa6f0e6;hpb=eef0c1f34c7b7d6a38e02f3294eb509aef081749 diff --git a/util/mkfiles.pl b/util/mkfiles.pl index 55a313cdb0..d668316d69 100755 --- a/util/mkfiles.pl +++ b/util/mkfiles.pl @@ -26,14 +26,14 @@ my @dirs = ( "crypto/aes", "crypto/camellia", "crypto/seed", +"crypto/modes", +"crypto/cmac", "crypto/bn", "crypto/rsa", "crypto/dsa", "crypto/dso", "crypto/dh", "crypto/ec", -"crypto/ecdh", -"crypto/ecdsa", "crypto/buffer", "crypto/bio", "crypto/stack", @@ -46,7 +46,9 @@ my @dirs = ( "crypto/pem", "crypto/x509", "crypto/x509v3", +"crypto/cms", "crypto/conf", +"crypto/jpake", "crypto/txt_db", "crypto/pkcs7", "crypto/pkcs12", @@ -54,20 +56,28 @@ my @dirs = ( "crypto/engine", "crypto/ocsp", "crypto/ui", -"crypto/krb5", -"crypto/store", -"crypto/pqueue", +#"crypto/store", "crypto/whrlpool", "crypto/ts", +"crypto/srp", +"crypto/ct", +"crypto/async", +"crypto/chacha", +"crypto/poly1305", +"crypto/kdf", "ssl", "apps", "engines", -"engines/ccgost", "test", "tools" ); +%top; + +my $fipscanisteronly = 0; + foreach (@dirs) { + next if ($fipscanisteronly && !(-d $_)); &files_dir ($_, "Makefile"); } @@ -87,7 +97,7 @@ while () { chop; s/#.*//; - if (/^(\S+)\s*=\s*(.*)$/) + if (/^([^\s=]+)\s*=\s*(.*)$/) { $o=""; ($s,$b)=($1,$2); @@ -110,8 +120,8 @@ while () $o =~ s/\s+$//; $o =~ s/\s+/ /g; - $o =~ s/\$[({]([^)}]+)[)}]/$sym{$1}/g; - $sym{$s}=$o; + $o =~ s/\$[({]([^)}]+)[)}]/$top{$1} or $sym{$1}/ge; + $sym{$s}=($top{$s} or $o); } } @@ -121,7 +131,20 @@ foreach (sort keys %sym) { print "$_=$sym{$_}\n"; } +if ($dir eq "." && defined($sym{"BUILDENV"})) + { + foreach (split(' ',$sym{"BUILDENV"})) + { + /^(.+)=/; + $top{$1}=$sym{$1}; + } + } + print "RELATIVE_DIRECTORY=\n"; close (IN); +if ($dir eq "." && $sym{FIPSCANISTERONLY} eq "y") + { + $fipscanisteronly = 1; + } }