| 1 |
#!/bin/bash |
| 2 |
# |
| 3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/sp4+mpi,v 1.3 2005/12/22 01:38:05 ce107 Exp $ |
| 4 |
# $Name: $ |
| 5 |
|
| 6 |
# tested on bluesky, ce107 Dec 2005 |
| 7 |
# using the following invocation: |
| 8 |
# ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/sp4 -make=gmake |
| 9 |
|
| 10 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
| 11 |
MAKEDEPEND=makedepend |
| 12 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_AIX -DWORDLENGTH=4' |
| 13 |
|
| 14 |
INCLUDES='-I/usr/lpp/ppe.poe/include/thread64 -I/usr/local/include' |
| 15 |
CPP='/lib/cpp -P' |
| 16 |
CC='mpcc_r -q64' |
| 17 |
FC='mpxlf95_r -q64' |
| 18 |
LINK='mpxlf95_r -q64' |
| 19 |
LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib64/r4i4' |
| 20 |
FFLAGS='-qfixed=132' |
| 21 |
if test "x$IEEE" = x ; then |
| 22 |
# No need for IEEE-754 |
| 23 |
FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
| 24 |
CFLAGS='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
| 25 |
else |
| 26 |
# Try to follow IEEE-754 |
| 27 |
FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
| 28 |
CFLAGS='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
| 29 |
fi |
| 30 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |