Get closer to a working single Makefile with test support.
[openssl.git] / util / mkfiles.pl
index 2d77a82b0c8194eab9d29a3efdc5376e8b7c2661..7dff4a695d9ce89cb631c668c77143fe26f4ab57 100755 (executable)
@@ -63,11 +63,14 @@ my @dirs = (
 "crypto/pqueue",
 "crypto/whrlpool",
 "crypto/ts",
+"crypto/srp",
 "fips",
 "fips/aes",
+"fips/cmac",
 "fips/des",
 "fips/dsa",
 "fips/dh",
+"fips/ecdh",
 "fips/ecdsa",
 "fips/hmac",
 "fips/rand",
@@ -84,7 +87,10 @@ my @dirs = (
 
 %top;
 
+my $fipscanisteronly = 0;
+
 foreach (@dirs) {
+       next if ($fipscanisteronly && !(-d $_));
        &files_dir ($_, "Makefile");
 }
 
@@ -150,4 +156,8 @@ if ($dir eq "." && defined($sym{"BUILDENV"}))
 print "RELATIVE_DIRECTORY=\n";
 
 close (IN);
+if ($dir eq "." && $sym{FIPSCANISTERONLY} eq "y")
+       {
+       $fipscanisteronly = 1;
+       }
 }