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