1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ppc64_xlf,v 1.2 2007/07/31 22:24:51 ce107 Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# tested on frost, ce107 Aug 4 2005 |
7 |
# using the following invocation: |
8 |
# ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/linux_ppc64_xlf |
9 |
|
10 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
11 |
MAKEDEPEND=makedepend |
12 |
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR' |
13 |
INCLUDES='' |
14 |
CPP='/lib/cpp -traditional -P' |
15 |
FC='xlf -q64' |
16 |
CC='xlc -q64' |
17 |
LINK='xlf -q64' |
18 |
LIBS='' |
19 |
FFLAGS='-qfixed=132' |
20 |
if test "x$IEEE" = x ; then |
21 |
# No need for IEEE-754 |
22 |
FOPTIM='-O5 -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1 -qipa=noobject:partition=large:threads' |
23 |
CFLAGS='-O5 -qinlglue -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1 -qipa=noobject:partition=large:threads' |
24 |
else |
25 |
FOPTIM='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1' |
26 |
CFLAGS='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1' |
27 |
fi |
28 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |