1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/sp4-64bit,v 1.1 2005/01/13 00:16:31 ce107 Exp $ |
4 |
# |
5 |
|
6 |
# tested on bluesky, ce107 Jan 2005 |
7 |
|
8 |
|
9 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
10 |
MAKEDEPEND=makedepend |
11 |
DEFINES='-DTARGET_AIX -DWORDLENGTH=4' |
12 |
|
13 |
CPP='/lib/cpp -P' |
14 |
CC='cc_r -q64' |
15 |
FC='xlf95_r -q64' |
16 |
LINK='mpxlf95_r -q64' |
17 |
LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib64/r4i4' |
18 |
FFLAGS='-qfixed=132' |
19 |
if test "x$IEEE" = x ; then |
20 |
# No need for IEEE-754 |
21 |
FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
22 |
CFLAGS='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
23 |
else |
24 |
# Try to follow IEEE-754 |
25 |
FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
26 |
CFLAGS='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
27 |
fi |
28 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |