1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: $ |
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 |
MAKE='gmake' |
18 |
MAKEDEPEND='makedepend' |
19 |
# compiler |
20 |
FC='mpf77' |
21 |
LINK='mpf77' |
22 |
CPP='/usr/ccs/lib/cpp -P' |
23 |
# paths |
24 |
INCLUDES='-I/opt/SUNWhpc/include -I/usr/local/include' |
25 |
LIBS='-L/opt/SUNWhpc/lib -lmpi -lthread -lsocket -lnsl -L/usr/local/lib' |
26 |
# optimization |
27 |
NOOPTFLAGS='-dalign -O0 -xarch=native' |
28 |
if test "x$IEEE" = x ; then |
29 |
# No need for IEEE-754 |
30 |
FFLAGS='-stackvar -e -u -xtypemap=real:64,double:64,integer:32' |
31 |
FOPTIM='-dalign -O4 -xarch=native -fsimple=2' |
32 |
CFLAGS='-dalign -xO4 -xarch=native' |
33 |
else |
34 |
# Try to follow IEEE-754 |
35 |
FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0' |
36 |
FOPTIM='-O0' |
37 |
CFLAGS='-xO0' |
38 |
fi |