1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
edhill |
1.6 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifc,v 1.5 2004/09/24 17:06:59 jmc Exp $ |
4 |
edhill |
1.3 |
# $Name: $ |
5 |
edhill |
1.1 |
# |
6 |
|
|
|
7 |
edhill |
1.3 |
FC=ifc |
8 |
|
|
CC=gcc |
9 |
|
|
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4' |
10 |
|
|
CPP='cpp -traditional -P' |
11 |
edhill |
1.6 |
INCLUDES='-I/usr/include/netcdf' |
12 |
jmc |
1.5 |
LIBS='-lPEPCF90' |
13 |
|
|
NOOPTFLAGS='-O0' |
14 |
edhill |
1.1 |
|
15 |
|
|
# Note that the -mp switch is for ieee "maintain precision" and is |
16 |
|
|
# roughly equivalent to -ieee |
17 |
|
|
if test "x$IEEE" = x ; then |
18 |
jmc |
1.5 |
FOPTIM='-O3 -align' |
19 |
edhill |
1.3 |
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
20 |
|
|
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
21 |
jmc |
1.5 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB' |
22 |
edhill |
1.1 |
else |
23 |
edhill |
1.3 |
# FOPTIM='-O0 -noalign' |
24 |
|
|
FOPTIM='-O0 -noalign -CA -CB -CU -CV -CS' |
25 |
edhill |
1.1 |
FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
26 |
|
|
fi |
27 |
|
|
|
28 |
jmc |
1.5 |
NOOPTFILES='mdsio_byteswapr8.F mdsio_byteswapr4.F' |
29 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
30 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F' |
31 |
edhill |
1.1 |
|