-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile_complex.in
52 lines (38 loc) · 930 Bytes
/
makefile_complex.in
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
SHELL = /bin/sh
.SUFFIXES:
.SUFFIXES: .c .o .f .F
# C compiler
CC = mpicc
# optimization flags
COPTFLAGS = -O3 -Wall -g #
# other compile options
CFLAGS = -DUSE_MPI -DREAL=double -DDBL_CMPLX -DHAS_BLAS
#CFLAGS = -DUSE_MPI -DREAL=double -DDBL -DHAS_BLAS
CFFLAGS = -DFORTRAN_UNDERSCORE -DVOID_POINTER_SIZE_8
# FORTRAN compiler
FC = mpif77
F90 = mpif90
# FORTRAN compile options
FFLAGS = -O3 -DVOID_POINTER_SIZE_8 -DDBL_CMPLX -DHAS_BLAS -g
#FFLAGS = -O3 -DVOID_POINTER_SIZE_8 -DDBL -DHAS_BLAS -g #
# linker and options
LINKER = ${FC}
F90LINKER = ${F90}
CLINKFLAGS = ${FFLAGS}
FLINKFLAGS = ${FFLAGS}
#
RM = rm
RMFLAGS = -rf
# archive and options
AR = ar
ARFLAGS = -cr
EXTFLAGS = -x
# MPI library
MPI_LIB_DIR =
MPI_LIB =
# LAPACK, BLAS library
LAPACK_BLAS_LIB_DIR =
LAPACK_BLAS_LIB = -llapack -lblas -ldl
# general math libary
MATH_LIB_DIR =
MATH_LIB = -lm