2
0

ultrix.pl 616 B

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