1 |
# Set-ups to compile the netcdf library with gfortran and g95. |
2 |
# Compatible with build options files darwin_ia32_gfortan and darwin_ia32_g95. |
3 |
# Tested on MacBookPro. |
4 |
|
5 |
wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.0-p1.tar.gz |
6 |
tar -xzvf netcdf-3.6.0-p1.tar.gz |
7 |
cd netcdf-3.6.0-p1/src |
8 |
|
9 |
###### GFORTRAN |
10 |
|
11 |
export FLIBS=-L/usr/local/lib/ |
12 |
export FC=gfortran |
13 |
export FC90=gfortran |
14 |
export FFLAGS='-fsecond-underscore' |
15 |
export F90FLAGS='-fsecond-underscore' |
16 |
export CPPFLAGS='-Df2cFortran' |
17 |
|
18 |
./configure --prefix=../gfortran |
19 |
make |
20 |
make check |
21 |
make install |
22 |
|
23 |
###### GFORTRAN |
24 |
|
25 |
export FC=g95 |
26 |
export FC90=g95 |
27 |
export FFLAGS='-O2' |
28 |
export F90FLAGS='-O2' |
29 |
export CPPFLAGS='-Df2cFortran' |
30 |
|
31 |
./configure --prefix=../g95 |
32 |
make |
33 |
make check |
34 |
make install |