X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=util%2Fmkfiles.pl;h=55dfbc64e376acd12a77adeaf3c3df7d5d4b4f4e;hb=ce3d25d3e5a7e82fd59fd30dff7acc39baed8b5e;hp=35e5073d744afdbcf1f47ff48ca16451df0a81c2;hpb=14056ee2ee2507b2fbc9ebb985259b5ff79b269e;p=oweals%2Fopenssl.git diff --git a/util/mkfiles.pl b/util/mkfiles.pl index 35e5073d74..55dfbc64e3 100755 --- a/util/mkfiles.pl +++ b/util/mkfiles.pl @@ -23,7 +23,11 @@ my @dirs = ( "crypto/idea", "crypto/bf", "crypto/cast", -"crypto/rijndael", +"crypto/aes", +"crypto/camellia", +"crypto/seed", +"crypto/modes", +"crypto/cmac", "crypto/bn", "crypto/rsa", "crypto/dsa", @@ -42,7 +46,9 @@ my @dirs = ( "crypto/pem", "crypto/x509", "crypto/x509v3", +"crypto/cms", "crypto/conf", +"crypto/jpake", "crypto/txt_db", "crypto/pkcs7", "crypto/pkcs12", @@ -50,14 +56,29 @@ my @dirs = ( "crypto/engine", "crypto/ocsp", "crypto/ui", +#"crypto/store", +"crypto/whrlpool", +"crypto/ts", +"crypto/srp", +"crypto/ct", +"crypto/async", +"crypto/chacha", +"crypto/poly1305", +"crypto/kdf", "ssl", "apps", +"engines", "test", "tools" ); +%top; + +my $fipscanisteronly = 0; + foreach (@dirs) { - &files_dir ($_, "Makefile.ssl"); + next if ($fipscanisteronly && !(-d $_)); + &files_dir ($_, "Makefile"); } exit(0); @@ -74,9 +95,9 @@ my $s=""; while () { - chop; + s|\R$||; s/#.*//; - if (/^(\S+)\s*=\s*(.*)$/) + if (/^([^\s=]+)\s*=\s*(.*)$/) { $o=""; ($s,$b)=($1,$2); @@ -84,10 +105,10 @@ while () { if ($b =~ /\\$/) { - chop($b); + $b=$`; $o.=$b." "; - $b=; - chop($b); + $b = "" unless defined($b = ); + $b =~ s{\R$}{}; } else { @@ -99,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); } } @@ -110,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; + } }