summaryrefslogtreecommitdiff
path: root/math/lapack95/files/patch-make.inc
blob: 977a9bcf6152b4ef3eb05da9d03653862c951370 (plain) (blame)
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
--- make.inc.orig	2000-11-30 14:18:37.000000000 +0100
+++ make.inc	2015-01-05 23:43:55.000000000 +0100
@@ -3,8 +3,8 @@
 #     UNI-C, Denmark; Univ. of Tennessee, USA; NAG Ltd., UK
 #     August 5, 2000
 #
-FC	 = f95 -free
-FC1      = f95 -fixed
+FC	 = %%FC%%
+FC1      = %%FC%%
 # -dcfuns  Enable recognition of non-standard double
 #          precision  complex intrinsic functions
 # -dusty   Allows the compilation and execution of "legacy"
@@ -13,27 +13,27 @@
 # -ieee=full enables all IEEE arithmetic facilities
 #          including non-stop arithmetic.
 
-OPTS0    = -u -V -dcfuns -dusty -ieee=full
+OPTS0    = %%FFLAGS%% #-u -V -dcfuns -dusty -ieee=full
 MODLIB   = -I./../lapack95_modules
 OPTS1    = -c $(OPTS0)
 OPTS3    = $(OPTS1) $(MODLIB)
 OPTL     = -o 
-OPTLIB   =
+OPTLIB   = %%LDFLAGS%%
 
-LAPACK_PATH = /usr/local/lib/LAPACK3/
+LAPACK_PATH = -L%%LOCALBASE%%/lib -L%%PREFIX%%/lib
 
-LAPACK95 = ../lapack95.a
-LAPACK77 = $(LAPACK_PATH)/lapack.a
-TMG77    = $(LAPACK_PATH)/tmglib.a
-BLAS     = $(LAPACK_PATH)/blas.a
+LAPACK95 = -llapack95
+LAPACK77 = %%LAPACK%%
+TMG77    = -ltmglib
+BLAS     = %%BLAS%%
 
-LIBS     = $(LAPACK95) $(TMG77) $(LAPACK77) $(BLAS)
+LIBS     = $(LAPACK_PATH) $(LAPACK95) $(LAPACK77) $(TMG77) $(BLAS)
 SUF      = f90
 
 XX = 'rm' -f $@; \
         'rm' -f $@.res; \
 	$(FC) $(OPTS0) -o $@ $(MODLIB) $@.$(SUF) $(OPTLIB) $(LIBS); \
-        $@ < $@.dat > $@.res; \
+        ./$@ < $@.dat > $@.res; \
         'rm' -f $@
 
 YY = $(FC) $(OPTS0) -o $@ $(MODLIB) $@.$(SUF) $(OPTLIB) $(LIBS)