summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2011-10-21 19:34:48 +0000
committerAndy Polyakov <appro@openssl.org>2011-10-21 19:34:48 +0000
commit16190a71ff1df692f17c5a6ebf48de216463e272 (patch)
treeebc2f152ff6375277e36cd0ee1479e50ba1787b9 /util
parent8d742dd5616a18885e716e2df20f8eb04560fdd3 (diff)
mk1mk.pl: cleanup engines' handling and make fips build work on WIN64I.
Diffstat (limited to 'util')
-rwxr-xr-xutil/mk1mf.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl
index e27e81b610..af039c78ac 100755
--- a/util/mk1mf.pl
+++ b/util/mk1mf.pl
@@ -906,9 +906,9 @@ $defs.=&do_defs("E_SHLIB",$engines . $otherlibs,"\$(ENG_D)",$shlibp);
foreach (split(/\s+/,$engines))
{
my $engine = $_;
- my @objs = grep(/$engine/,@engines_obj);
+ my @objs = grep {/e_$engine/} @engines_obj;
$rules.=&do_compile_rule("\$(OBJ_D)",join(" ",@objs),$lib);
- map {$_=~s/[^\/]*\/*([^\/]+)/\$(OBJ_D)${o}$1.obj/} @objs;
+ map {$_=~s/.*\/([^\/]+)$/\$(OBJ_D)${o}$1$obj/} @objs;
$rules.= &do_lib_rule(join(" ",@objs),"\$(ENG_D)$o$engine$shlibp","",$shlib,"");
}
@@ -1223,7 +1223,9 @@ sub Sasm_compile_target
$bname =~ s/(.*)\.[^\.]$/$1/;
$ret ="\$(TMP_D)$o$bname.asm: $source\n";
- $ret.="\t\$(CC) -E \$(CFLAG) $source >\$\@\n\n";
+ $ret.="\t\$(CC) -E \$(CFLAG) $source >\$\@\n";
+ $ret.="\t\$(PERL) util\\fipsas.pl . \$@ norunasm \$(CFLAG)\n" if $fipscanisteronly;
+ $ret.="\n";
$ret.="$target: \$(TMP_D)$o$bname.asm\n";
$ret.="\t\$(ASM) $afile\$\@ \$(TMP_D)$o$bname.asm\n\n";
return($ret);