Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/sunos_i86pc_f95 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
59dc3b5aa5 Mart*0001 #!/bin/bash
                0002 #
                0003 #
                0004 # tested on 
                0005 # uname -a: SunOS solasrv4 5.10 Generic_127128-11 i86pc i386 i86pc
                0006 # with f95: Sun Fortran 95 8.3 SunOS_i386 Patch 127002-04 2008/04/16
                0007 
                0008 
                0009 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
                0010 S64='$(TOOLSDIR)/set64bitConst.sh'
                0011 DEFINES='-DWORDLENGTH=4'
                0012 #AWK='gawk'
                0013 MAKEDEPEND='$(TOOLSDIR)/cyrus-imapd-makedepend/makedepend'
                0014 #MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
                0015 #MAKE='gmake'
                0016 CPP='/usr/ccs/lib/cpp -P'
                0017 FC='f95'
                0018 # This is an example of how to specify where your 
                0019 # netcdf libraries and include files are; 
                0020 # in this particular example, they are in 
4f501bf0c0 Mart*0021 # /opt/netCDF_util-1.1/include and /opt/netCDF_util-1.1/include.
                0022 INCLUDES='-I/opt/netCDF_util-1.1/include'
                0023 LIBS='-L/opt/netCDF_util-1.1/lib'
59dc3b5aa5 Mart*0024 
                0025 if test "x$IEEE" = x ; then
                0026     #  No need for IEEE-754
fb36f70024 Mart*0027     FFLAGS='-e -u -xfilebyteorder=big16:%all'
59dc3b5aa5 Mart*0028     FFLAGS=$FFLAGS' -xtypemap=real:64,double:64,integer:32'
                0029     FOPTIM='-dalign -O4 -xarch=native -fsimple=2'
                0030     CFLAGS='-dalign -xO4 -xarch=native'
                0031 else
                0032     #  Try to follow IEEE-754
fb36f70024 Mart*0033     FFLAGS='-e -u -xfilebyteorder=big16:%all'
59dc3b5aa5 Mart*0034     FFLAGS=$FFLAGS' -xtypemap=real:64,double:64,integer:32'
fb36f70024 Mart*0035     FOPTIM='-O0 -fsimple=0'
59dc3b5aa5 Mart*0036     CFLAGS='-xO0'
                0037 fi
                0038 NOOPTFLAGS='-dalign -O0'
                0039