2 |
|
|
3 |
# $Header$ |
# $Header$ |
4 |
# |
# |
5 |
# cc-compiler is available only with the Apple Developer Tools, |
# tested on MacBook Pro |
6 |
# so make sure that those are installed |
# on 28-Nov-2006 |
|
# |
|
7 |
|
|
8 |
CPP='/usr/bin/cpp -traditional -P -xassembler-with-cpp' |
CPP='/usr/bin/cpp -traditional -P' |
9 |
FC=gfortran |
FC=gfortran |
10 |
|
###CC=gcc |
11 |
LINK=gfortran |
LINK=gfortran |
12 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
13 |
|
|
15 |
#EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend' |
#EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend' |
16 |
#EH3 MAKEDEPEND=makedepend |
#EH3 MAKEDEPEND=makedepend |
17 |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_TERMINATOR' |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_TERMINATOR' |
18 |
INCLUDES='-I/Users/davidferreira/Documents/netcdf-3.6.1/gfortran/include' |
INCLUDEDIRS='/sw/include' |
19 |
LIBS='-L/Users/davidferreira/Documents/netcdf-3.6.1/gfortran/lib' |
INCLUDES='-I/sw/include' |
20 |
|
LIBS='-L/sw/lib -lnetcdf' |
21 |
|
|
22 |
|
##INCLUDEDIRS='/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include' |
23 |
|
##INCLUDES='-I/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include' |
24 |
|
##LIBS='-L/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/lib -lnetcdf' |
25 |
|
|
26 |
|
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) _ ## X ## _" |
27 |
|
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |
28 |
|
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
29 |
|
|
30 |
# For IEEE, use the "-ffloat-store" option |
# For IEEE, use the "-ffloat-store" option |
31 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
32 |
# FFLAGS='-Wunused -Wuninitialized -fsecond-underscore' |
FFLAGS='-Wunused -Wuninitialized -fsecond-underscore' |
|
FFLAGS='-Wunused -Wuninitialized' |
|
33 |
FOPTIM='-O3 -funroll-loops' |
FOPTIM='-O3 -funroll-loops' |
|
# FOPTIM='-O3 -malign-double -funroll-loops' |
|
34 |
else |
else |
35 |
FFLAGS='-Wunused -ffloat-store -fsecond-underscore' |
FFLAGS='-Wunused -ffloat-store -fsecond-underscore' |
36 |
FOPTIM='-O0' |
FOPTIM='-O0' |