-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.def
More file actions
43 lines (31 loc) · 1011 Bytes
/
Makefile.def
File metadata and controls
43 lines (31 loc) · 1011 Bytes
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
SHELL=/bin/sh
COMPILE.f77 = gfortran
COMPILE.f90 = gfortran
LINK.f90 = mpif90
AR = ar -rs
OPT0 = -O0
OPT1 = -O1
OPT2 = -O2
OPT3 = -O3
OPT4 = -O4
CFLAG = ${SEARCH} -c -w ${DEBUG} -fallow-argument-mismatch
# When building standalone, define STANDALONE so ModExtras.F90 definitions are used
# When coupled, this Makefile.def file isn't used so STANDALONE won't be def'ed
# This configures which modules in ModExtras to build.
# standalone will use all, otherwise use NEEDMOD* (i.e. -DNEEDMODERRORS ...)
PreProc = -DSTANDALONE
Cflag0 = ${CFLAG} ${PRECISION} ${OPT0}
Cflag1 = ${CFLAG} ${PRECISION} ${OPT1}
Cflag2 = ${CFLAG} ${PRECISION} ${OPT2}
Cflag3 = ${CFLAG} ${PRECISION} ${OPT3}
Cflag4 = ${CFLAG} ${PRECISION} ${OPT4}
.SUFFIXES:
.SUFFIXES: .f90 .F90 .f .for .ftn .o
.f90.o:
${COMPILE.f90} ${Cflag3} $<
.F90.o:
${COMPILE.f90} ${PreProc} ${Cflag3} $<
.f.o:
${COMPILE.f77} -ffixed-line-length-132 ${Cflag3} $<
clean:
rm -f *~ core *.o *.mod fort.* a.out *.exe *.a *.so *.protex