summaryrefslogtreecommitdiff
path: root/academic/avl/Makefile_patches/Makefile.avl.patch
blob: 72f218e36de71e0a5365ab291b11955da65bcaa3 (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
118
119
120
121
122
123
--- bin/Makefile	2013-10-06 19:34:54.000000000 -0400
+++ bin/Makefile.avl	2016-09-27 21:49:02.000000000 -0400
@@ -2,8 +2,7 @@
 # Makefile for AVL
 #
 
-BINDIR = /home/codes/bin/
-INSTALLCMD = install -s
+BINDIR = $(DESTDIR)/usr/bin/
 
 SRC = ../src
 
@@ -18,92 +17,27 @@
 matrix.o spline.o sgutil.o \
 second.o
 
-PLTOBJ = ../plotlib/libPlt.a
-EIGOBJ = ../eispack/eispack.a
-## EIGOBJ = eispack.o
-
-###================================================
-###  Default compilers and flags
-FC = f77
-FFLAGS = -O
-PLTLIB = -lX11
-FTNLIB =
+PLTOBJ = ../plotlib/libPlt_gDP.a
+EIGOBJ = ../eispack/eispack_gDP.a
 
-#Subroutine SECOND source file
-SECOND = second_g77.f
-
-##--------------------------
-
-# Uncomment flags for desired machine...
-
-##--------------------------
-### DEC Alpha with OSF and DEC f77/f90 compiler
-#FC = f77
-#FFLAGS  = -fast -O4 -tune host
-##--------------------------
-### SGI setup
-#FC = f77
-#FFLAGS  = -O2
-##--------------------------
-##  Uncomment for RS/6000
-#FFLAGS  = -O -qextname
-##--------------------------
-##  Uncomment for HP-9000
-#FFLAGS  = -O +ppu
-#FTNLIB  = -U77
-##--------------------------
-### Absoft Linux f77
-#FC = f77
-#FFLAGS  = -O -f -s -W -B108 -N34
-##--------------------------
-### f2c/gcc compiler driver 
-#FC = fort77
-#FFLAGS  =  -O2 -fomit-frame-pointer
-##--------------------------
-### GNU g77
-#FC = g77
-#FFLAGS = -O3
-##--------------------------
-### Intel Fortran Compiler 8.x
-FC = ifort
-FFLAGS = -O 
-PLTLIB = -L/usr/X11R6/lib -lX11
-SECOND = second_ifc.f
-#FTNLIB = -Vaxlib
-##--------------------------
-### double-precision option (also need double precision Eispack and libPlt)
-FFLAGS = -O -r8
-PLTOBJ = ../plotlib/libPltDP.a
-
-##---------------------------------------
-##  Uncomment for Mac OSX gfortran
 FC = gfortran
 
-ACHK = -fbounds-check -finit-real=inf -ffpe-trap=invalid,zero,denormal
-#ACHK =
-
+#ACHK = -fbounds-check -finit-real=inf -ffpe-trap=invalid,zero,denormal
+ACHK = 
+PLTLIB=-lX11
+FTNLIB=
 
-#FTNLIB = -Vaxlib
-FTNLIB = 
 SECOND = second_g77.f
 
-DP =
-PLTOBJ = ../plotlib/libPlt_gSP.a
-EIGOBJ = ../eispack/eispack_gSP.a
-
-#DP = -fdefault-real-8
-#PLTOBJ = ../plotlib/libPltDP.a
-#EIGOBJ = ../eispack/eispack_gDP.a
-
-FFLAGS = -O -m64 $(ACHK) $(DP)
-##---------------------------------------
-
+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)
@@ -114,7 +48,6 @@
 
 avl: $(AOBJS)
 	$(FC) -o avl $(AOBJS)  $(ALIBS) $(PLTOBJ) $(EIGOBJ) $(PLTLIB) $(FTNLIB)
-	$(INSTALLCMD) avl $(BINDIR)
 
 dtest: dtest.o
 	$(FC) -o dtest dtest.o