1 |
ce107 |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
jmc |
1.2 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ppc64_xlf+mth,v 1.1 2007/07/31 22:24:51 ce107 Exp $ |
4 |
|
|
# $Name: $ |
5 |
ce107 |
1.1 |
|
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 |
|
|
|
11 |
|
|
S64='$(TOOLSDIR)/set64bitConst.sh' |
12 |
|
|
MAKEDEPEND=makedepend |
13 |
|
|
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR -DUSE_OMP_THREADING' |
14 |
|
|
INCLUDES='' |
15 |
|
|
CPP='/lib/cpp -traditional -P' |
16 |
|
|
FC='xlf_r -q64' |
17 |
|
|
CC='xlc_r -q64' |
18 |
|
|
LINK='xlf_r -q64' |
19 |
|
|
LIBS='' |
20 |
|
|
FFLAGS='-qfixed=132' |
21 |
|
|
if test "x$IEEE" = x ; then |
22 |
|
|
# No need for IEEE-754 |
23 |
|
|
FOPTIM='-O5 -qsmp=omp -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1 -qipa=noobject:partition=large:threads' |
24 |
|
|
CFLAGS='-O5 -qsmp=omp -qinlglue -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1 -qipa=noobject:partition=large:threads' |
25 |
|
|
else |
26 |
|
|
FOPTIM='-O3 -qsmp=omp -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1' |
27 |
|
|
CFLAGS='-O3 -qsmp=omp -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1' |
28 |
|
|
fi |
29 |
|
|
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |