SPARCv9 assembly pack: unify build rules and argument handling.
[openssl.git] / crypto / camellia / asm / cmllt4-sparcv9.pl
index a813168b42ec47b4b0af702fab6d15ea55ecedf6..fac53623a7bca21cb992841fe0412d0964dee31f 100644 (file)
@@ -46,7 +46,8 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
 push(@INC,"${dir}","${dir}../../perlasm");
 require "sparcv9_modes.pl";
 
-&asm_init(@ARGV);
+$output = pop;
+open STDOUT,">$output";
 
 $::evp=1;      # if $evp is set to 0, script generates module with
 # Camellia_[en|de]crypt, Camellia_set_key and Camellia_cbc_encrypt
@@ -59,6 +60,8 @@ $::evp=1;     # if $evp is set to 0, script generates module with
 my ($inp,$out,$key,$rounds,$tmp,$mask)=map("%o$_",(0..5));
 
 $code=<<___;
+#include "sparc_arch.h"
+
 .text
 
 .globl cmll_t4_encrypt