Warning, /tools/build_options/sunos_sun4u_mpf77+mpi_sunfire is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
f9719963ff Mart*0001 #!/bin/bash
0002 #
6144427bd2 Jean*0003 # developed and tested on
f9719963ff Mart*0004 # SunOS model 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-15000
0005 # (hostname: model.awi-bremerhaven.de)
0006 #
0007
0008 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
0009 S64='$(TOOLSDIR)/set64bitConst.sh'
0010 DEFINES='-DWORDLENGTH=4'
0011
0012 MPI='true'
0013 AWK='gawk'
b086fd5347 Mart*0014 # if regular make does not work try gmake
0015 #MAKE='gmake'
3008d3e9c7 Mart*0016 MAKEDEPEND='$(TOOLSDIR)/cyrus-imapd-makedepend/makedepend'
0017 #MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
f9719963ff Mart*0018 # compiler
0019 FC='mpf77'
0020 LINK='mpf77'
0021 CPP='/usr/ccs/lib/cpp -P'
0022 # paths
0023 INCLUDES='-I/opt/SUNWhpc/include -I/usr/local/include'
0024 LIBS='-L/opt/SUNWhpc/lib -lmpi -lthread -lsocket -lnsl -L/usr/local/lib'
0025 # optimization
45f753b968 Mart*0026 NOOPTFLAGS='-dalign -O2 -xarch=native'
0027 NOOPTFILES='solve_for_pressure.F'
0028 #NOOPTFILES='solve_for_pressure.F barrier.F different_multiple.F external_fields_load.F ini_vertic
f9719963ff Mart*0029 if test "x$IEEE" = x ; then
0030 # No need for IEEE-754
0031 FFLAGS='-stackvar -e -u -xtypemap=real:64,double:64,integer:32'
0032 FOPTIM='-dalign -O4 -xarch=native -fsimple=2'
0033 CFLAGS='-dalign -xO4 -xarch=native'
0034 else
0035 # Try to follow IEEE-754
0036 FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0'
0037 FOPTIM='-O0'
0038 CFLAGS='-xO0'
0039 fi