1 |
# These are machine dependent macros, meant to be included in the |
# These are compiler dependent macros, meant to be included in the |
2 |
# LMDZE makefile |
# makefile for LMDZE. |
3 |
|
|
4 |
# For pgf95 6.1-4 |
netcdf_inc_dir = /opt/netcdf3/pgf/include |
5 |
|
netcdf_lib_dir = /opt/netcdf3/pgf/lib |
6 |
|
|
7 |
COMPILE.f = $(FC) $(F90FLAGS) -c |
numer_rec_95_dir = /data/guez/lib/Numer_Rec_95_pgf95_debug |
8 |
FC = pgf95 |
nr_util_dir = /data/guez/lib/NR_util_pgf95_debug |
9 |
|
netcdf95_dir = /data/guez/lib/NetCDF95_pgf95_debug |
10 |
|
jumble_dir = /data/guez/lib/Jumble_pgf95_debug |
11 |
|
|
12 |
# Include flags: |
# Include flags: |
13 |
inc_flags = -I${libf_dir} -I${libf_dir}/dyn3d -I${libf_dir}/phylmd -I${libf_dir}/filtrez -I/usr/local/netcdf-pgi/include -I/home/guez/lib/IOIPSL_Lionel/ag -I/home/guez/lib/Numer_Rec_Lionel/d |
FFLAGS = $(addprefix -I, ${netcdf_inc_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir}) |
14 |
|
|
15 |
# On Duke: |
# Overall options: |
16 |
## -I/usr/local/netcdf/amd64/include |
FFLAGS += -Minform=inform |
17 |
|
|
18 |
# Other flags which do not affect run time performance: |
# Optimization options: |
19 |
lang_flags = -Mstandard -Mfree |
FFLAGS += -Mframe |
20 |
|
|
21 |
# Flags which affect run time performance: |
# Debugging options: |
22 |
perf_flags = -fastsse -O3 |
FFLAGS += -g -gopt -Mchkfpstk -Mchkptr -Mpgicoff |
23 |
|
# "-Mbounds" gives an error in module "mathelp", procedure "trans_buff", |
24 |
|
# for a "gcm" run. |
25 |
|
|
26 |
FFLAGS = ${inc_flags} ${perf_flags} |
# Language options: |
27 |
F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags} |
FFLAGS += -Mstandard -Mallocatable=95 -Mbackslash -Mdefaultunit -Mrecursive |
|
LDFLAGS = |
|
28 |
|
|
29 |
LDLIBS = -L/home/guez/lib/IOIPSL_Lionel/ag -L/usr/local/netcdf-pgi/lib -L/home/guez/lib/Numer_Rec_Lionel/d -lioipsl -lnetcdf -lnumer_rec |
# Target-specific Options: |
30 |
|
FFLAGS += -Kieee -Ktrap=fp |
31 |
|
|
32 |
# On Duke: |
F90FLAGS = ${FFLAGS} |
33 |
## -L/usr/local/netcdf/amd64/lib |
LDFLAGS = -g |
34 |
|
|
35 |
|
LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir}) -ljumble -lnetcdf95 -lnetcdf -lnumer_rec_95 -lnr_util |
36 |
|
|
37 |
|
version_flag = -V |