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

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