2 |
|
|
3 |
# $Header$ |
# $Header$ |
4 |
# |
# |
5 |
# cc-compiler is available only with the Apple Developer Tools, |
# tested on MacBook Pro with Snow Leopard |
6 |
# so make sure that those are installed |
# on 20-Nov-2009 |
7 |
# |
# gcc and gfortran obtained from |
8 |
|
# http://hpc.sourceforge.net/ |
9 |
|
# http://prdownloads.sourceforge.net/hpc/gcc-snwleo-intel-bin.tar.gz?download |
10 |
|
# http://prdownloads.sourceforge.net/hpc/gfortran-snwleo-intel-bin.tar.gz?download |
11 |
|
|
12 |
CPP='/usr/bin/cpp -traditional -P -xassembler-with-cpp' |
CPP='/usr/bin/cpp -traditional -P' |
13 |
FC=gfortran |
FC=gfortran |
14 |
|
###CC=gcc |
15 |
|
#Following flag is needed when using 32-bit gfortran with 64-bit gcc, |
16 |
|
#as can be the case right after switching to Snow Leopard. |
17 |
|
#CFLAGS='-arch i386' |
18 |
LINK=gfortran |
LINK=gfortran |
19 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
20 |
|
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
21 |
|
|
22 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
S64='$(TOOLSDIR)/set64bitConst.sh' |
23 |
#EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend' |
#EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend' |
24 |
#EH3 MAKEDEPEND=makedepend |
#EH3 MAKEDEPEND=makedepend |
25 |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_TERMINATOR' |
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR' |
26 |
INCLUDES='-I/Users/davidferreira/Documents/netcdf-3.6.1/gfortran/include' |
INCLUDEDIRS='/sw/include' |
27 |
LIBS='-L/Users/davidferreira/Documents/netcdf-3.6.1/gfortran/lib' |
INCLUDES='-I/sw/include' |
28 |
|
LIBS='-L/sw/lib' |
29 |
|
|
30 |
|
##INCLUDEDIRS='/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include' |
31 |
|
##INCLUDES='-I/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include' |
32 |
|
##LIBS='-L/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/lib' |
33 |
|
|
34 |
|
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) _ ## X ## _" |
35 |
|
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |
36 |
|
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
37 |
|
|
38 |
# For IEEE, use the "-ffloat-store" option |
# For IEEE, use the "-ffloat-store" option |
39 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
40 |
# FFLAGS='-Wunused -Wuninitialized -fsecond-underscore' |
FFLAGS='-Wunused -Wuninitialized -fsecond-underscore -fconvert=big-endian' |
|
FFLAGS='-Wunused -Wuninitialized' |
|
41 |
FOPTIM='-O3 -funroll-loops' |
FOPTIM='-O3 -funroll-loops' |
42 |
# FOPTIM='-O3 -malign-double -funroll-loops' |
NOOPTFLAGS='-O2 -funroll-loops' |
43 |
|
NOOPTFILES='gad_c4_adv_x.F gad_u3_adv_x.F' |
44 |
else |
else |
45 |
FFLAGS='-Wunused -ffloat-store -fsecond-underscore' |
FFLAGS='-Wunused -ffloat-store -fsecond-underscore -fconvert=big-endian' |
46 |
FOPTIM='-O0' |
FOPTIM='-O0' |
47 |
fi |
fi |
48 |
|
|