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 |
# For pgf95 version 6 |
5 |
|
|
|
COMPILE.f = $(FC) $(F90FLAGS) -c |
|
6 |
FC = pgf95 |
FC = pgf95 |
7 |
|
|
8 |
# Include flags: |
netcdf_inc_dir = /usr/local/netcdf-pgi/include |
9 |
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 |
netcdf_lib_dir = /usr/local/netcdf-pgi/lib |
10 |
|
|
11 |
|
numer_rec_dir = /home/guez_local/lib/Numer_Rec_Lionel/o |
12 |
|
netcdf95_dir = /home/guez_local/lib/NetCDF95/pgf95 |
13 |
|
IOIPSL_dir = /home/guez_local/lib/IOIPSL_Lionel/ad |
14 |
|
|
15 |
# On Duke: |
# Include flags: |
16 |
## -I/usr/local/netcdf/amd64/include |
inc_flags = $(addprefix -I, ${libf_dir} ${libf_dir}/phylmd ${netcdf_inc_dir} ${numer_rec_dir} ${netcdf95_dir} ${IOIPSL_dir}) |
17 |
|
|
18 |
# Other flags which do not affect run time performance: |
# Other flags which do not affect run time performance: |
19 |
lang_flags = -Mstandard -Mfree |
lang_flags = -Mstandard -Minform=inform -Mfree -Minfo=all -Mallocatable=95 -Mbackslash |
20 |
|
|
21 |
# Flags which affect run time performance: |
# Flags which affect run time performance: |
22 |
perf_flags = -fastsse -O3 |
perf_flags = -g -Kieee -Ktrap=fp -Mbounds -Mchkfpstk -Mchkptr -Mpgicoff |
23 |
|
##-fastsse -O3 |
24 |
|
|
25 |
FFLAGS = ${inc_flags} ${perf_flags} |
FFLAGS = ${inc_flags} ${perf_flags} |
26 |
F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags} |
F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags} |
27 |
LDFLAGS = |
LDFLAGS = -g |
|
|
|
|
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 |
|
28 |
|
|
29 |
# On Duke: |
LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_dir} ${netcdf95_dir} ${IOIPSL_dir}) -lioipsl -lnetcdf95 -lnetcdf -lnumer_rec |
|
## -L/usr/local/netcdf/amd64/lib |
|