1#!/usr/local/bin/perl 2# 3# linux.pl - the standard unix makefile stuff. 4# 5 6$o='/'; 7$cp='/bin/cp'; 8$rm='/bin/rm -f'; 9 10# C compiler stuff 11 12$cc='cc'; 13if ($debug) 14 { $cflags="-g -DREF_CHECK -DCRYPTO_MDEBUG"; } 15else 16 { $cflags="-O2"; } 17 18$cflags.=" -std1 -DL_ENDIAN"; 19 |
20if (!$no_asm) |
21 { 22 $bn_asm_obj='$(OBJ_D)/mips1.o'; 23 $bn_asm_src='crypto/bn/asm/mips1.s'; 24 } 25 26sub do_link_rule 27 { |
28 local($target,$files,$dep_libs,$libs)=@_; |
29 local($ret,$_); 30 31 $file =~ s/\//$o/g if $o ne '/'; 32 $n=&bname($target); 33 $ret.="$target: $files $dep_libs\n"; |
34 $ret.="\t\$(LINK) ${efile}$target \$(LFLAGS) $files $libs\n\n"; |
35 return($ret); 36 } 37 381; |