summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/util/mkfiles.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/util/mkfiles.pl')
-rw-r--r--src/lib/libcrypto/util/mkfiles.pl32
1 files changed, 19 insertions, 13 deletions
diff --git a/src/lib/libcrypto/util/mkfiles.pl b/src/lib/libcrypto/util/mkfiles.pl
index 67fb8694c8..6d15831450 100644
--- a/src/lib/libcrypto/util/mkfiles.pl
+++ b/src/lib/libcrypto/util/mkfiles.pl
@@ -26,6 +26,7 @@ my @dirs = (
26"crypto/aes", 26"crypto/aes",
27"crypto/camellia", 27"crypto/camellia",
28"crypto/seed", 28"crypto/seed",
29"crypto/modes",
29"crypto/bn", 30"crypto/bn",
30"crypto/rsa", 31"crypto/rsa",
31"crypto/dsa", 32"crypto/dsa",
@@ -46,6 +47,7 @@ my @dirs = (
46"crypto/pem", 47"crypto/pem",
47"crypto/x509", 48"crypto/x509",
48"crypto/x509v3", 49"crypto/x509v3",
50"crypto/cms",
49"crypto/conf", 51"crypto/conf",
50"crypto/jpake", 52"crypto/jpake",
51"crypto/txt_db", 53"crypto/txt_db",
@@ -56,25 +58,20 @@ my @dirs = (
56"crypto/ocsp", 58"crypto/ocsp",
57"crypto/ui", 59"crypto/ui",
58"crypto/krb5", 60"crypto/krb5",
59"crypto/store", 61#"crypto/store",
60"crypto/pqueue", 62"crypto/pqueue",
61"crypto/cms", 63"crypto/whrlpool",
62"fips", 64"crypto/ts",
63"fips/aes",
64"fips/des",
65"fips/dsa",
66"fips/dh",
67"fips/hmac",
68"fips/rand",
69"fips/rsa",
70"fips/sha",
71"ssl", 65"ssl",
72"apps", 66"apps",
73"engines", 67"engines",
68"engines/ccgost",
74"test", 69"test",
75"tools" 70"tools"
76); 71);
77 72
73%top;
74
78foreach (@dirs) { 75foreach (@dirs) {
79 &files_dir ($_, "Makefile"); 76 &files_dir ($_, "Makefile");
80} 77}
@@ -118,8 +115,8 @@ while (<IN>)
118 $o =~ s/\s+$//; 115 $o =~ s/\s+$//;
119 $o =~ s/\s+/ /g; 116 $o =~ s/\s+/ /g;
120 117
121 $o =~ s/\$[({]([^)}]+)[)}]/$sym{$1}/g; 118 $o =~ s/\$[({]([^)}]+)[)}]/$top{$1} or $sym{$1}/ge;
122 $sym{$s}=$o; 119 $sym{$s}=($top{$s} or $o);
123 } 120 }
124 } 121 }
125 122
@@ -129,6 +126,15 @@ foreach (sort keys %sym)
129 { 126 {
130 print "$_=$sym{$_}\n"; 127 print "$_=$sym{$_}\n";
131 } 128 }
129if ($dir eq "." && defined($sym{"BUILDENV"}))
130 {
131 foreach (split(' ',$sym{"BUILDENV"}))
132 {
133 /^(.+)=/;
134 $top{$1}=$sym{$1};
135 }
136 }
137
132print "RELATIVE_DIRECTORY=\n"; 138print "RELATIVE_DIRECTORY=\n";
133 139
134close (IN); 140close (IN);