-
Notifications
You must be signed in to change notification settings - Fork 1
/
make.extralibs
95 lines (73 loc) · 2.27 KB
/
make.extralibs
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
#
SHELL = /bin/sh
BIL_EXTRALIBS :=
# The file "EXTRALIBS" may set the full paths to the libraries:
# BLAS, LAPACK, SUPERLU, UEL (see EXTRALIBS).
# If the path is not set the library will not be included.
sinclude EXTRALIBS
# Do you use the library SUPERLU?
# -------------------------------
ifdef SUPERLU
ifeq (${shell test -f ${SUPERLU} && echo -n yes},yes)
SUPERLU_DIR = ${shell dirname ${SUPERLU}}
BIL_EXTRALIBS += -Wl,-rpath=${SUPERLU_DIR} ${SUPERLU}
endif
endif
# Do you use the library SUPERLUMT?
# ---------------------------------
ifdef SUPERLUMT
ifeq (${shell test -f ${SUPERLUMT} && echo -n yes},yes)
SUPERLUMT_DIR = ${shell dirname ${SUPERLUMT}}
BIL_EXTRALIBS += -Wl,-rpath=${SUPERLUMT_DIR} ${SUPERLUMT}
endif
endif
# Do you use the library GSLCBLAS?
# --------------------------------
ifdef GSLCBLAS
ifeq (${shell test -f ${GSLCBLAS} && echo -n yes},yes)
GSLCBLAS_DIR = ${shell dirname ${GSLCBLAS}}
BIL_EXTRALIBS += -Wl,-rpath=${GSLCBLAS_DIR} ${GSLCBLAS}
endif
endif
# Do you use the library GSL?
# ---------------------------
ifdef GSL
ifeq (${shell test -f ${GSL} && echo -n yes},yes)
GSL_DIR = ${shell dirname ${GSL}}
BIL_EXTRALIBS += -Wl,-rpath=${GSL_DIR} ${GSL}
endif
endif
# Do you use the library UEL?
# ---------------------------
ifdef UEL
ifeq (${shell test -f ${UEL} && echo -n yes},yes)
UEL_DIR = ${shell dirname ${UEL}}
BIL_EXTRALIBS += -Wl,-rpath=${UEL_DIR} ${UEL}
endif
endif
# Do you use the library LAPACK? (LAPACK library should appear before BLAS library)
# ------------------------------
ifdef LAPACK
ifeq (${shell test -f ${LAPACK} && echo -n yes},yes)
LAPACK_DIR = ${shell dirname ${LAPACK}}
BIL_EXTRALIBS += -Wl,-rpath=${LAPACK_DIR} ${LAPACK}
endif
endif
# Do you use the library BLAS?
# ----------------------------
ifdef BLAS
ifeq (${shell test -f ${BLAS} && echo -n yes},yes)
BLAS_DIR = ${shell dirname ${BLAS}}
BIL_EXTRALIBS += -Wl,-rpath=${BLAS_DIR} ${BLAS}
endif
endif
# Do you use the library Petsc?
# -----------------------------
ifdef PETSC
ifeq (${shell test -f ${PETSC} && echo -n yes},yes)
PETSC_DIR = ${shell dirname ${PETSC}}
BIL_EXTRALIBS += -Wl,-rpath=${PETSC_DIR} ${PETSC}
endif
endif
#welcome:
# read -p "Do you use BLAS library (Y/N)?:" BLAS_USE