Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/sunos_sun4u_g77 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
36402a0053 Ed H*0001 #!/bin/bash
                0002 #
                0003 #
b11b683e5a Mart*0004 # tested without NetCDF support on
4328b11eca Mart*0005 # SunOS model.awi-bremerhaven.de 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-15000
                0006 # SunOS tphs14.awi-bremerhaven.de 5.8 Generic_117350-08 sun4u sparc SUNW,Sun-Blade-1000
aef158c620 Mart*0007 # with g77 version 2.95.3 20010315 (release) (from FSF-g77 version 0.5.25 20010315 (release))
36402a0053 Ed H*0008 
4f2622f734 Mart*0009 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
7a8d0b199d Jean*0010 DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77'
36402a0053 Ed H*0011 AWK='gawk'
3008d3e9c7 Mart*0012 MAKEDEPEND='$(TOOLSDIR)/cyrus-imapd-makedepend/makedepend'
                0013 #MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
4328b11eca Mart*0014 #MAKE='gmake'
b11b683e5a Mart*0015 CPP='/usr/ccs/lib/cpp -P'
4328b11eca Mart*0016 # this one works, too
                0017 #CPP='/opt/sfw/bin/cpp -traditional -P'
7a8d0b199d Jean*0018 
b11b683e5a Mart*0019 FC=g77
4328b11eca Mart*0020 CC=gcc
7a8d0b199d Jean*0021 EXTENDED_SRC_FLAG='-ffixed-line-length-132'
                0022 GET_FC_VERSION="--version"
                0023 
                0024 # This is an example of how to specify where your
                0025 # netcdf libraries and include files are;
                0026 # in this particular example, they are in
b11b683e5a Mart*0027 # /usr/local/libs and /usr/local/include.
                0028 # For g77, it is  probably necessary to use libraries
                0029 # that have been compiled with g77 as well.
4328b11eca Mart*0030 #INCLUDES='-I/usr/local/include'
                0031 #LIBS='-L/usr/local/lib -lnetcdf'
36402a0053 Ed H*0032 
b11b683e5a Mart*0033 NOOPTFLAGS='-O0'
36402a0053 Ed H*0034 #  For IEEE, use the "-ffloat-store" option
                0035 if test "x$IEEE" = x ; then
                0036     FFLAGS='-Wimplicit -Wunused -Wuninitialized'
f555e55ade Ed H*0037     FOPTIM='-O3 -funroll-loops'
36402a0053 Ed H*0038 else
                0039     FFLAGS='-Wimplicit -Wunused -ffloat-store'
f555e55ade Ed H*0040     FOPTIM='-O0'
36402a0053 Ed H*0041 fi
                0042