home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / lib / mathlib / libblas / test / makeblat2 < prev    next >
Encoding:
Text File  |  1994-08-02  |  2.6 KB  |  97 lines

  1. FORTRAN  = f77
  2. OPTS     = 
  3. LOADER   = f77
  4. LOADOPTS =
  5. BLAS     = 
  6.  
  7. #######################################################################
  8. #  This makefile creates the test programs for the BLAS 2 routines.
  9. #  The test files are grouped as follows:
  10. #       ABLAT2 -- Test routines called from more than one program
  11. #       SBLAT2 -- Single precision real test routines
  12. #       CBLAT2 -- Single precision complex test routines
  13. #       DBLAT2 -- Double precision real test routines
  14. #       ZBLAT2 -- Double precision complex test routines
  15. #
  16. #  Test programs can be generated for all or some of the four different
  17. #  precisions.  First, modify the FORTRAN and OPTS definitions to refer
  18. #  to the compiler and desired compiler options for your machine, and
  19. #  define LOADER and LOADOPTS to refer to the loader and desired load
  20. #  options for your machine.  Also replace the definition for BLAS with 
  21. #  the name of the BLAS library on your system. 
  22. #  Then to create the test programs, enter make followed by one or more
  23. #  of the precisions desired.  Some examples:
  24. #       make single
  25. #       make single complex
  26. #       make single double complex complex16
  27. #  Alternatively, the command
  28. #       make
  29. #  without any arguments creates all four test programs.
  30. #  The executable files which are created are called
  31. #       xblat2s, xblat2d, xblat2c, and xblat2z
  32. #
  33. #  To remove the object files after the executable files have been
  34. #  created, enter
  35. #       make clean
  36. #  To force the source files to be recompiled, enter, for example,
  37. #       make single FRC=FRC
  38. #
  39. #---------------------------------------------------------------------
  40. #
  41. #  Edward Anderson
  42. #  Math and Computer Science Division
  43. #  Argonne National Laboratory
  44. #  9700 S. Cass Ave.
  45. #  Argonne, IL  60439
  46. #  (312) 972-6646
  47. #
  48. #######################################################################
  49.  
  50. ABLAT2 = lsame.o 
  51.  
  52. SBLAT2 = sblat2.o 
  53.  
  54. CBLAT2 = cblat2.o 
  55.  
  56. DBLAT2 = dblat2.o 
  57.  
  58. ZBLAT2 = zblat2.o
  59.  
  60. all:  single double complex complex16
  61.  
  62. single: xblat2s
  63. double: xblat2d
  64. complex: xblat2c
  65. complex16: xblat2z
  66.  
  67. xblat2s: $(ABLAT2) $(SBLAT2) $(BLAS)
  68.     $(LOADER) $(LOADOPTS)  $(ABLAT2) $(SBLAT2) \
  69.         $(BLAS)  -o xblat2s
  70.  
  71. xblat2c: $(ABLAT2) $(CBLAT2)  $(BLAS)
  72.     $(LOADER) $(LOADOPTS)  $(ABLAT2) $(CBLAT2) \
  73.         $(BLAS)  -o xblat2c
  74.  
  75. xblat2d: $(ABLAT2) $(DBLAT2)  $(BLAS)
  76.     $(LOADER) $(LOADOPTS)  $(ABLAT2) $(DBLAT2) \
  77.         $(BLAS)  -o xblat2d
  78.  
  79. xblat2z: $(ABLAT2) $(ZBLAT2)  $(BLAS)
  80.     $(LOADER) $(LOADOPTS)  $(ABLAT2) $(ZBLAT2) \
  81.         $(BLAS)  -o xblat2z
  82.  
  83. $(ABLAT2): $(FRC)
  84. $(SBLAT2): $(FRC)
  85. $(CBLAT2): $(FRC)
  86. $(DBLAT2): $(FRC)
  87. $(ZBLAT2): $(FRC)
  88.  
  89. FRC:
  90.     @FRC=$(FRC)
  91.  
  92. clean:
  93.     rm -f *.o
  94.  
  95. .f.o: 
  96.     $(FORTRAN) $(OPTS) $*.f
  97.