1 |
mlosch |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
mlosch |
1.3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/sunos_sun4u_mpf77+mpi_sunfire,v 1.2 2004/12/17 07:56:19 mlosch Exp $ |
4 |
mlosch |
1.1 |
# |
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 |
mlosch |
1.2 |
# if regular make does not work try gmake |
18 |
|
|
#MAKE='gmake' |
19 |
mlosch |
1.3 |
MAKEDEPEND='$(TOOLSDIR)/cyrus-imapd-makedepend/makedepend' |
20 |
|
|
#MAKEDEPEND='$(TOOLSDIR)/xmakedepend' |
21 |
mlosch |
1.1 |
# compiler |
22 |
|
|
FC='mpf77' |
23 |
|
|
LINK='mpf77' |
24 |
|
|
CPP='/usr/ccs/lib/cpp -P' |
25 |
|
|
# paths |
26 |
|
|
INCLUDES='-I/opt/SUNWhpc/include -I/usr/local/include' |
27 |
|
|
LIBS='-L/opt/SUNWhpc/lib -lmpi -lthread -lsocket -lnsl -L/usr/local/lib' |
28 |
|
|
# optimization |
29 |
|
|
NOOPTFLAGS='-dalign -O0 -xarch=native' |
30 |
|
|
if test "x$IEEE" = x ; then |
31 |
|
|
# No need for IEEE-754 |
32 |
|
|
FFLAGS='-stackvar -e -u -xtypemap=real:64,double:64,integer:32' |
33 |
|
|
FOPTIM='-dalign -O4 -xarch=native -fsimple=2' |
34 |
|
|
CFLAGS='-dalign -xO4 -xarch=native' |
35 |
|
|
else |
36 |
|
|
# Try to follow IEEE-754 |
37 |
|
|
FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0' |
38 |
|
|
FOPTIM='-O0' |
39 |
|
|
CFLAGS='-xO0' |
40 |
|
|
fi |