Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/sunos_amd64_f77_awi 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
39cd7a3553 Mart*0001 #!/bin/bash
                0002 #
                0003 #
                0004 # tested on 
                0005 # SunOS testopt2 5.10 Generic_118855-19 i86pc i386 i86pc
                0006 # with f77: Sun Fortran 95 8.2 Patch 121019-01 2005/11/22
                0007 
                0008 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
                0009 S64='$(TOOLSDIR)/set64bitConst.sh'
                0010 DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'
                0011 #AWK='gawk'
                0012 MAKEDEPEND='$(TOOLSDIR)/cyrus-imapd-makedepend/makedepend'
                0013 #MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
                0014 #MAKE='gmake'
                0015 CPP='/usr/ccs/lib/cpp -P'
                0016 # this one works, too
                0017 #CPP='/opt/sfw/bin/cpp -traditional -P'
                0018 FC='f77'
                0019 # This is an example of how to specify where your 
                0020 # netcdf libraries and include files are; 
                0021 # in this particular example, they are in 
                0022 # /usr/local/libs and /usr/local/include and the netcdf libraries in
                0023 # /opt/netcdf/Sun-cc
                0024 INCLUDES='-I/usr/local/include -I/opt/netcdf/Sun-cc/include'
                0025 LIBS='-L/usr/local/lib -L/opt/netcdf/Sun-cc/lib'
                0026 
                0027 if test "x$IEEE" = x ; then
                0028     #  No need for IEEE-754
                0029     FFLAGS='-stackvar -explicitpar -vpara -e -u -noautopar -xtypemap=real:64,double:64,integer:32'
                0030     FOPTIM='-dalign -O4 -xarch=native -fsimple=2'
                0031     CFLAGS='-dalign -xO4 -xarch=native'
                0032 else
                0033     #  Try to follow IEEE-754
                0034     FFLAGS='-e -u -xtypemap=real:64,double:64,integer:32 -fsimple=0'
                0035     FOPTIM='-O0'
                0036     CFLAGS='-xO0'
                0037 fi
                0038 NOOPTFLAGS='-dalign -O0'