aboutsummaryrefslogtreecommitdiffstats
path: root/math/mumps/files/patch-Make.inc_Makefile.FREEBSD10.PAR
blob: af58b333674063d636545af4b78b45e30a3e9dfa (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
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
--- Make.inc/Makefile.FREEBSD10.PAR.orig	2019-04-03 14:40:12 UTC
+++ Make.inc/Makefile.FREEBSD10.PAR
@@ -20,7 +20,7 @@
 #
 
 #SCOTCHDIR  = ${HOME}/scotch_6.0
-#ISCOTCH    = -I$(SCOTCHDIR)/include
+ISCOTCH    = -I@LOCALBASE@/include
 #
 # You have to choose one among the following two lines depending on
 # the type of analysis you want to perform. If you want to perform only
@@ -28,16 +28,16 @@
 # variable below); for both parallel and sequential analysis choose the second 
 # line (remember to add -Dptscotch in the ORDERINGSF variable below)
 
-#LSCOTCH    = -L$(SCOTCHDIR)/lib -lesmumps -lscotch -lscotcherr
-#LSCOTCH    = -L$(SCOTCHDIR)/lib -lptesmumps -lptscotch -lptscotcherr
+#LSCOTCH    = -L@LOCALBASE@/lib -lesmumps -lscotch -lscotcherr -lz
+LSCOTCH    = -L@LOCALBASE@/lib -lptesmumps -lscotch -lptscotch -lptscotcherr -lz
 
 
 LPORDDIR = $(topdir)/PORD/lib/
 IPORD    = -I$(topdir)/PORD/include/
 LPORD    = -L$(LPORDDIR) -lpord
 
-#LMETISDIR = /opt/metis-5.1.0/build/Linux-x86_64/libmetis
-#IMETIS    = /opt/metis-5.1.0/include
+LMETISDIR = @LOCALBASE@/lib/parmetis
+IMETIS    = @LOCALBASE@/include/parmetis
 
 # You have to choose one among the following two lines depending on
 # the type of analysis you want to perform. If you want to perform only
@@ -46,7 +46,7 @@ LPORD    = -L$(LPORDDIR) -lpord
 # line (remember to add -Dparmetis in the ORDERINGSF variable below)
 
 #LMETIS    = -L$(LMETISDIR) -lmetis
-#LMETIS    = -L$(LMETISDIR) -lparmetis -lmetis
+LMETIS    = -L$(LMETISDIR) -lparmetis -lmetis
 
 # The following variables will be used in the compilation process.
 # Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
@@ -66,34 +66,34 @@ IORDERINGSC = $(IMETIS) $(IPORD) $(ISCOTCH)
 
 PLAT    =
 LIBEXT  = .a
-OUTC    = -o ""
-OUTF    = -o ""
+OUTC    = -o 
+OUTF    = -o 
 RM      = /bin/rm -f
-CC      = cc
-FC      = gfortran48
-FL      = gfortran48
+CC      = @CC@
+FC      = @FC@
+FL      = @FC@
 #      keep a space at the end if options have to be separated from lib name
-AR      = ar -vr "" 
+AR      = ar -vr 
 RANLIB  = ranlib
 LAPACK  = -llapack
-SCALAP  = -lscalapack -lblacs
+SCALAP  = -L@LOCALBASE@/lib -lscalapack -lexecinfo
 
 INCPAR  = -I/usr/local/include
-LIBPAR  = $(SCALAP) $(LAPACK) -L/usr/local/lib -lmpi
+LIBPAR  = -L@LOCALBASE@/lib -lfmpich -lmpich -lmpl $(SCALAP)
 
 INCSEQ  = -I$(topdir)/libseq
 LIBSEQ  = $(LAPACK) -L$(topdir)/libseq -lmpiseq
-LIBBLAS = -lblas
-LIBOTHERS = -lpthread
+LIBBLAS = -L@LOCALBASE@/lib @LAPACK_LIBS@ @BLAS_LIBS@
+LIBOTHERS = -lpthread @GCCLIBDIR@ @FORTRANLIBS@
 
 #Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
-CDEFS   = -DAdd_
+CDEFS   ?= -DAdd_
 
 #Begin Optimized options
 # uncomment -fopenmp in lines below to benefit from OpenMP
-OPTF    = -O #-fopenmp
+OPTF    = @FCFLAGS@ #-fopenmp
 OPTL    = -O #-fopenmp
-OPTC    = -O -I. #-fopenmp
+OPTC    = @CFLAGS@ -I. #-fopenmp
 #End Optimized options