You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 3.2 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. include ../../make.inc
  2. #######################################################################
  3. # This is the makefile to create a library of the test matrix
  4. # generators used in LAPACK. The files are organized as follows:
  5. #
  6. # SCATGEN -- Auxiliary routines called from both REAL and COMPLEX
  7. # DZATGEN -- Auxiliary routines called from both DOUBLE PRECISION
  8. # and COMPLEX*16
  9. # SMATGEN -- Single precision real matrix generation routines
  10. # CMATGEN -- Single precision complex matrix generation routines
  11. # DMATGEN -- Double precision real matrix generation routines
  12. # ZMATGEN -- Double precision complex matrix generation routines
  13. #
  14. # The library can be set up to include routines for any combination
  15. # of the four precisions. To create or add to the library, enter make
  16. # followed by one or more of the precisions desired. Some examples:
  17. # make single
  18. # make single complex
  19. # make single double complex complex16
  20. # Alternatively, the command
  21. # make
  22. # without any arguments creates a library of all four precisions.
  23. # The library is called
  24. # tmglib.a
  25. # and is created at the LAPACK directory level.
  26. #
  27. # To remove the object files after the library is created, enter
  28. # make clean
  29. # On some systems, you can force the source files to be recompiled by
  30. # entering (for example)
  31. # make single FRC=FRC
  32. #
  33. #######################################################################
  34. SCATGEN = slatm1.o slaran.o slarnd.o
  35. SMATGEN = slatms.o slatme.o slatmr.o slatmt.o \
  36. slagge.o slagsy.o slakf2.o slarge.o slaror.o slarot.o slatm2.o \
  37. slatm3.o slatm5.o slatm6.o slatm7.o slahilb.o
  38. CMATGEN = clatms.o clatme.o clatmr.o clatmt.o \
  39. clagge.o claghe.o clagsy.o clakf2.o clarge.o claror.o clarot.o \
  40. clatm1.o clarnd.o clatm2.o clatm3.o clatm5.o clatm6.o clahilb.o
  41. DZATGEN = dlatm1.o dlaran.o dlarnd.o
  42. DMATGEN = dlatms.o dlatme.o dlatmr.o dlatmt.o \
  43. dlagge.o dlagsy.o dlakf2.o dlarge.o dlaror.o dlarot.o dlatm2.o \
  44. dlatm3.o dlatm5.o dlatm6.o dlatm7.o dlahilb.o
  45. ZMATGEN = zlatms.o zlatme.o zlatmr.o zlatmt.o \
  46. zlagge.o zlaghe.o zlagsy.o zlakf2.o zlarge.o zlaror.o zlarot.o \
  47. zlatm1.o zlarnd.o zlatm2.o zlatm3.o zlatm5.o zlatm6.o zlahilb.o
  48. all: ../../$(TMGLIB)
  49. ALLOBJ = $(SMATGEN) $(CMATGEN) $(SCATGEN) $(DMATGEN) $(ZMATGEN) \
  50. $(DZATGEN)
  51. ../../$(TMGLIB): $(ALLOBJ)
  52. $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ)
  53. $(RANLIB) $@
  54. single: $(SMATGEN) $(SCATGEN)
  55. $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(SMATGEN) $(SCATGEN)
  56. $(RANLIB) ../../$(TMGLIB)
  57. complex: $(CMATGEN) $(SCATGEN)
  58. $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(CMATGEN) $(SCATGEN)
  59. $(RANLIB) ../../$(TMGLIB)
  60. double: $(DMATGEN) $(DZATGEN)
  61. $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(DMATGEN) $(DZATGEN)
  62. $(RANLIB) ../../$(TMGLIB)
  63. complex16: $(ZMATGEN) $(DZATGEN)
  64. $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(ZMATGEN) $(DZATGEN)
  65. $(RANLIB) ../../$(TMGLIB)
  66. $(SCATGEN): $(FRC)
  67. $(SMATGEN): $(FRC)
  68. $(CMATGEN): $(FRC)
  69. $(DZATGEN): $(FRC)
  70. $(DMATGEN): $(FRC)
  71. $(ZMATGEN): $(FRC)
  72. FRC:
  73. @FRC=$(FRC)
  74. clean:
  75. rm -f *.o
  76. .f.o:
  77. $(FORTRAN) $(OPTS) -c -o $@ $<
  78. slaran.o: slaran.f ; $(FORTRAN) $(NOOPT) -c -o $@ $<
  79. dlaran.o: dlaran.f ; $(FORTRAN) $(NOOPT) -c -o $@ $<