1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/sunos_sun4u_mpf77+mpi_sunfire,v 1.1 2004/12/10 16:08:41 mlosch Exp $ |
4 |
# |
5 |
# developed and tested on |
6 |
# SunOS model 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-15000 |
7 |
# (hostname: model.awi-bremerhaven.de) |
8 |
# |
9 |
|
10 |
|
11 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
12 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
13 |
DEFINES='-DWORDLENGTH=4' |
14 |
|
15 |
MPI='true' |
16 |
AWK='gawk' |
17 |
# if regular make does not work try gmake |
18 |
#MAKE='gmake' |
19 |
MAKEDEPEND='$(TOOLSDIR)/xmakedepend' |
20 |
# compiler |
21 |
FC='mpf77' |
22 |
LINK='mpf77' |
23 |
CPP='/usr/ccs/lib/cpp -P' |
24 |
# paths |
25 |
INCLUDES='-I/opt/SUNWhpc/include -I/usr/local/include' |
26 |
LIBS='-L/opt/SUNWhpc/lib -lmpi -lthread -lsocket -lnsl -L/usr/local/lib' |
27 |
# optimization |
28 |
NOOPTFLAGS='-dalign -O0 -xarch=native' |
29 |
if test "x$IEEE" = x ; then |
30 |
# No need for IEEE-754 |
31 |
FFLAGS='-stackvar -e -u -xtypemap=real:64,double:64,integer:32' |
32 |
FOPTIM='-dalign -O4 -xarch=native -fsimple=2' |
33 |
CFLAGS='-dalign -xO4 -xarch=native' |
34 |
else |
35 |
# Try to follow IEEE-754 |
36 |
FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0' |
37 |
FOPTIM='-O0' |
38 |
CFLAGS='-xO0' |
39 |
fi |