make.inc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # -- LAPACK95 interface driver routine (version 2.0) --
  3. # UNI-C, Denmark; Univ. of Tennessee, USA; NAG Ltd., UK
  4. # August 5, 2000
  5. #
  6. FC = gfortran -ffree-form
  7. FC1 = gfortran -ffixed-form
  8. # -dcfuns Enable recognition of non-standard double
  9. # precision complex intrinsic functions
  10. # -dusty Allows the compilation and execution of "legacy"
  11. # software by downgrading the category of common
  12. # errors found in such software from "Error" to
  13. # -ieee=full enables all IEEE arithmetic facilities
  14. # including non-stop arithmetic.
  15. OPTS0 =
  16. MODLIB = -I./../lapack95_modules
  17. OPTS1 = -c $(OPTS0)
  18. OPTS3 = $(OPTS1) $(MODLIB)
  19. OPTL = -o
  20. OPTLIB =
  21. LAPACK_PATH = @LIBDIR@
  22. LAPACK95 = ../lapack95.a
  23. LAPACK77 = $(LAPACK_PATH)/liblapack.a
  24. TMG77 = $(LAPACK_PATH)/libtmglib.a
  25. BLAS = $(LAPACK_PATH)/libblas.a
  26. LIBS = $(LAPACK95) $(TMG77) $(LAPACK77) $(BLAS)
  27. SUF = f90
  28. XX = 'rm' -f $@; \
  29. 'rm' -f $@.res; \
  30. $(FC) $(OPTS0) -o $@ $(MODLIB) $@.$(SUF) $(OPTLIB) $(LIBS); \
  31. $@ < $@.dat > $@.res; \
  32. 'rm' -f $@
  33. YY = $(FC) $(OPTS0) -o $@ $(MODLIB) $@.$(SUF) $(OPTLIB) $(LIBS)
  34. .SUFFIXES: .f90 .f .o
  35. .$(SUF).o:
  36. $(FC) $(OPTS3) $<
  37. .f.o:
  38. $(FC1) $(OPTS3) $<