1 |
#!/bin/bash |
#!/bin/bash |
|
|
|
|
# $Header$ |
|
2 |
# |
# |
3 |
# tested on MacBook Pro |
# $Header$ |
4 |
# on 28-Nov-2006 |
# $Name$ |
5 |
|
|
6 |
|
# tested on MacBook Pro with Snow Leopard |
7 |
|
# on 20-Nov-2009 |
8 |
|
# gcc and gfortran obtained from |
9 |
|
# http://hpc.sourceforge.net/ |
10 |
|
# http://prdownloads.sourceforge.net/hpc/gcc-snwleo-intel-bin.tar.gz?download |
11 |
|
# http://prdownloads.sourceforge.net/hpc/gfortran-snwleo-intel-bin.tar.gz?download |
12 |
|
|
13 |
CPP='/usr/bin/cpp -traditional -P' |
CPP='/usr/bin/cpp -traditional -P' |
|
#FC=/usr/local/bin/gfortran |
|
14 |
FC=gfortran |
FC=gfortran |
15 |
###CC=gcc |
###CC=gcc |
16 |
#LINK=/usr/local/bin/gfortran |
#Following flag is needed when using 32-bit gfortran with 64-bit gcc, |
17 |
|
#as can be the case right after switching to Snow Leopard. |
18 |
|
#CFLAGS='-arch i386' |
19 |
LINK=gfortran |
LINK=gfortran |
20 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
21 |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
27 |
INCLUDEDIRS='/sw/include' |
INCLUDEDIRS='/sw/include' |
28 |
INCLUDES='-I/sw/include' |
INCLUDES='-I/sw/include' |
29 |
LIBS='-L/sw/lib' |
LIBS='-L/sw/lib' |
|
INCLUDEDIRS='/usr/local/include' |
|
|
INCLUDES='-I/usr/local/include' |
|
|
LIBS='-L/usr/local/lib' |
|
30 |
|
|
31 |
##INCLUDEDIRS='/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include' |
##INCLUDEDIRS='/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include' |
32 |
##INCLUDES='-I/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include' |
##INCLUDES='-I/Users/heimbach/NetCDF/netcdf-3.6.0-p1/gfortran/include' |