/[MITgcm]/MITgcm/tools/genmake2
ViewVC logotype

Diff of /MITgcm/tools/genmake2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.92 by edhill, Fri Jul 30 15:59:33 2004 UTC revision 1.96 by edhill, Mon Aug 9 02:28:51 2004 UTC
# Line 520  Usage: "$0" [OPTIONS] Line 520  Usage: "$0" [OPTIONS]
520            Include MPI header files and link to MPI libraries            Include MPI header files and link to MPI libraries
521      -mpi=PATH | --mpi=PATH      -mpi=PATH | --mpi=PATH
522            Include MPI header files and link to MPI libraries using MPI_ROOT            Include MPI header files and link to MPI libraries using MPI_ROOT
523            set to PATH. i.e. Include files from $PATH/include, link to libraries            set to PATH. i.e. Include files from \$PATH/include, link to libraries
524            from $PATH/lib and use binaries from $PATH/bin.            from \$PATH/lib and use binaries from \$PATH/bin.
525    
526      -bash NAME      -bash NAME
527            Explicitly specify the Bourne or BASH shell to use            Explicitly specify the Bourne or BASH shell to use
# Line 689  check_netcdf_libs()  { Line 689  check_netcdf_libs()  {
689        IF (iret .NE. NF_NOERR) write(*,*) NF_STRERROR(iret)        IF (iret .NE. NF_NOERR) write(*,*) NF_STRERROR(iret)
690        end        end
691  EOF  EOF
692      #echo "$CPP $DEFINES $INCLUDES"      #echo "$CPP $DEFINES $INCLUDES genmake_tnc.for > genmake_tnc.f"
693        #echo "$FC $FFLAGS $FOPTIM -c genmake_tnc.f"
694        #echo "$LINK -o genmake_tnc.o $LIBS"
695      $CPP $DEFINES $INCLUDES genmake_tnc.for > genmake_tnc.f 2>/dev/null  \      $CPP $DEFINES $INCLUDES genmake_tnc.for > genmake_tnc.f 2>/dev/null  \
696          &&  $FC $FFLAGS $FOPTIM -o genmake_tnc genmake_tnc.f $LIBS >> genmake_tnc.log 2>&1          &&  $FC $FFLAGS $FOPTIM -c genmake_tnc.f  \
697            &&  $LINK -o genmake_tnc genmake_tnc.o $LIBS >> genmake_tnc.log 2>&1
698      RET_COMPILE=$?      RET_COMPILE=$?
699      test -x ./genmake_tnc  &&  ./genmake_tnc >> genmake_tnc.log 2>&1      test -x ./genmake_tnc  &&  ./genmake_tnc >> genmake_tnc.log 2>&1
700      RETVAL=$?      RETVAL=$?
# Line 729  LN= Line 732  LN=
732  S64=  S64=
733  KPP=  KPP=
734  FC=  FC=
735  CC=  #CC=gcc
736  CPP=  CPP=
737  LINK=  LINK=
738  DEFINES=  DEFINES=
# Line 1138  EOF Line 1141  EOF
1141      exit 1      exit 1
1142  fi  fi
1143  if test "x$CC" = x ; then  if test "x$CC" = x ; then
1144      cat <<EOF 1>&2      CC=cc
1145    #     cat <<EOF 1>&2
1146  Error: no C compiler: please specify using one of the following:  # Error: no C compiler: please specify using one of the following:
1147    1) within the options file ("CC=...") as specified by "-of=OPTFILE"  #   1) within the options file ("CC=...") as specified by "-of=OPTFILE"
1148    2) the "-cc=XXX" command-line option  #   2) the "-cc=XXX" command-line option
1149    3) the "./genmake_local" file  #   3) the "./genmake_local" file
1150  EOF  # EOF
1151      exit 1  #     exit 1
1152  fi  fi
1153  if test "x$LINK" = x ; then  if test "x$LINK" = x ; then
1154      LINK=$FC      LINK=$FC
# Line 1850  MAKEDEPEND = ${MAKEDEPEND} Line 1853  MAKEDEPEND = ${MAKEDEPEND}
1853  # Special preprocessor (KAP on DECs, FPP on Crays)  # Special preprocessor (KAP on DECs, FPP on Crays)
1854  KPP = ${KPP}  KPP = ${KPP}
1855  # Fortran compiler  # Fortran compiler
1856  FC = ${FC} in  FC = ${FC}
1857  # Fortran compiler  # Fortran compiler
1858  F90C = ${F90C}  F90C = ${F90C}
1859  # C compiler  # C compiler

Legend:
Removed from v.1.92  
changed lines
  Added in v.1.96

  ViewVC Help
Powered by ViewVC 1.1.22