1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/bgl_gnu_ncar,v 1.1 2005/08/05 23:34:01 ce107 Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# tested on frost, ce107 Aug 5 2005, will work when IBM/NCAR provides an MPI library for g77 |
7 |
# using the following invocation: |
8 |
# ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/bgl_gnu_ncar |
9 |
|
10 |
|
11 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
12 |
MAKEDEPEND=makedepend |
13 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DTARGET_BGL' |
14 |
|
15 |
INCLUDES='-I/bgl/BlueLight/ppcfloor/bglsys/include' |
16 |
CPP='/lib/cpp -traditional -P' |
17 |
FC='/bgl/BlueLight/DRV100_2005-050311PM/ppc/toolchain/gnu/build-powerpc-bgl-blrts-gnu/gcc-3.2-build/gcc/g77' |
18 |
CC='/bgl/BlueLight/DRV202_2005-050606-SLES8/ppc/blrts-gnu/powerpc-bgl-blrts-gnu/bin/gcc' |
19 |
LINK='/bgl/BlueLight/DRV100_2005-050311PM/ppc/toolchain/gnu/build-powerpc-bgl-blrts-gnu/gcc-3.2-build/gcc/g77' |
20 |
LIBS='-L/bgl/BlueLight/ppcfloor/bglsys/lib -lmpich.rts -lmsglayer.rts -lrts.rts -ldevices.rts' |
21 |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
22 |
if test "x$IEEE" = x ; then |
23 |
# No need for IEEE-754 |
24 |
FOPTIM='-O3 -funroll-loops -ffast-math' |
25 |
CFLAGS='-O3 -funroll-loops -ffast-math' |
26 |
else |
27 |
FOPTIM='-g -O0' |
28 |
CFLAGS='-g -O0' |
29 |
fi |
30 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X # __" |