Makefile.avl.patch 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. --- bin/Makefile.gfortran 2017-02-12 14:25:41.000000000 -0500
  2. +++ bin/Makefile.gfortran.new 2017-04-12 12:51:21.829538710 -0400
  3. @@ -3,9 +3,7 @@
  4. # H.Youngren 2/8/17
  5. #
  6. -#BINDIR = .
  7. -BINDIR = /home/codes/bin/
  8. -INSTALLCMD = install -s
  9. +BINDIR = $(DESTDIR)/usr/bin/
  10. SRC = ../src
  11. @@ -21,85 +19,24 @@
  12. second.o
  13. # libraries needed
  14. -PLTOBJ = ../plotlib/libPlt.a
  15. -EIGOBJ = ../eispack/eispack.a
  16. +PLTOBJ = ../plotlib/libPlt_gDP.a
  17. +EIGOBJ = ../eispack/eispack_gDP.a
  18. ## EIGOBJ = eispack.o
  19. -###================================================
  20. -### Default compilers and flags
  21. -FC = f77
  22. -FFLAGS = -O
  23. -DP =
  24. -DBG =
  25. -LFLG =
  26. -
  27. -PLTLIB = -lX11
  28. -FTNLIB =
  29. -#Subroutine SECOND source file
  30. -SECOND = second_g77.f
  31. -
  32. -##--------------------------
  33. -
  34. -# Uncomment flags for desired machine...
  35. -
  36. -
  37. -##--------------------------
  38. -### Intel Fortran Compiler
  39. -#FC = ifort
  40. -#OPT = -O
  41. -##OPT = -O0 -g
  42. -#ACHK =
  43. -#PLTLIB = -L/usr/X11R6/lib -lX11
  44. -#SECOND = second_ifc.f
  45. -#FTNLIB = -Vaxlib
  46. -#PLTOBJ = ../plotlib/libPlt.a
  47. -#EIGOBJ = ../eispack/libeispack.a
  48. -#DP =
  49. -##--------------------------
  50. -### double-precision (also need double precision eispack and libPlt)
  51. -#DP = -r8
  52. -#PLTOBJ = ../plotlib/libPltDP.a
  53. -#FFLAGS = $(OPT) $(ACHK) $(DP)
  54. -
  55. -
  56. -##---------------------------------------
  57. -## Uncomment for gfortran
  58. +# Compiler and flags
  59. FC = gfortran
  60. -OPT = -O
  61. -DP =
  62. -ACHK =
  63. -
  64. -PLTLIB = -L/usr/X11R6/lib -lX11
  65. SECOND = second_g77.f
  66. -# debug
  67. -#OPT = -O0
  68. -#DBG= -g
  69. -#ACHK = -fbounds-check -finit-real=inf
  70. -#ACHK = -fbounds-check -finit-real=inf -ffpe-trap=invalid,zero,denormal
  71. -
  72. -PLTOBJ = ../plotlib/libPlt_gSP.a
  73. -EIGOBJ = ../eispack/libeispack.a
  74. -
  75. -##--------------------------
  76. -# double precision (compile appropriate eispack and libPlt)
  77. -#DP = -fdefault-real-8
  78. -#PLTOBJ = ../plotlib/libPlt_gDP.a
  79. -#EIGOBJ = ../eispack/libeispackDP.a
  80. -##--------------------------
  81. -
  82. -# use -m32 for 32-bit binary, -m64 for 64-bit (check your system!)
  83. -#FFLAGS = $(OPT) -m32 $(ACHK) $(DP)
  84. -FFLAGS = $(OPT) -m64 $(ACHK) $(DP)
  85. -# to make static executable
  86. -#LFLG = -static
  87. -##---------------------------------------
  88. -
  89. -
  90. +ACHK =
  91. +PLTLIB=-lX11
  92. +FTNLIB=
  93. +DP = -fdefault-real-8
  94. +FFLAGS = -O2 $(ACHK) $(DP)
  95. all: $(PROGS)
  96. install: $(PROGS)
  97. - $(INSTALLCMD) $(PROGS) $(BINDIR)
  98. + install -d -m 0755 $(BINDIR)
  99. + install -m 0755 $(PROGS) $(BINDIR)
  100. clean:
  101. -/bin/rm $(PROGS)
  102. @@ -110,7 +47,6 @@
  103. avl: $(AOBJS)
  104. $(FC) -o avl $(AOBJS) $(ALIBS) $(PLTOBJ) $(EIGOBJ) $(PLTLIB) $(FTNLIB) $(LFLG)
  105. - $(INSTALLCMD) avl $(BINDIR)
  106. dtest: dtest.o
  107. $(FC) -o dtest dtest.o $(LFLG)