/[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.265 by jmc, Fri Apr 4 21:34:01 2014 UTC revision 1.268 by jmc, Sun Aug 10 16:46:04 2014 UTC
# Line 1083  EOF Line 1083  EOF
1083  }  }
1084    
1085  check_lapack_libs()  {  check_lapack_libs()  {
1086      if test ! "x$SKIP_LAPACK_CHECK" = x ; then      if test "x$CHECK_FOR_LAPACK" = xf ; then return ; fi
         return  
     fi  
1087      echo >> $LOGFILE      echo >> $LOGFILE
1088      echo "running: check_lapack_libs()" >> $LOGFILE      echo "running: check_lapack_libs()" >> $LOGFILE
1089      cat <<EOF > genmake_tla.F      cat <<EOF > genmake_tla.F
# Line 1281  GSL= Line 1279  GSL=
1279  DEVEL=  DEVEL=
1280  HAVE_TEST_L=  HAVE_TEST_L=
1281    
1282  # comment this line out to enable lapack test  # set this to "t" to enable lapack test
1283  SKIP_LAPACK_CHECK=t  CHECK_FOR_LAPACK=f
1284    
1285  # DEFINES checked by test compilation or command-line  # DEFINES checked by test compilation or command-line
1286  HAVE_SYSTEM=  HAVE_SYSTEM=
# Line 1413  for ac_option in "$@" ; do Line 1411  for ac_option in "$@" ; do
1411              OPTFILE=$ac_optarg ;;              OPTFILE=$ac_optarg ;;
1412    
1413          -oad | --oad)          -oad | --oad)
1414              OPENAD="true" ;;              OPENAD="true" ; ALWAYS_USE_F90=1 ;;
1415          -adoptfile | --adoptfile | -adof | --adof)          -adoptfile | --adoptfile | -adof | --adof)
1416              ac_prev=AD_OPTFILE ;;              ac_prev=AD_OPTFILE ;;
1417          -adoptfile=* | --adoptfile=* | -adof=* | --adof=*)          -adoptfile=* | --adoptfile=* | -adof=* | --adof=*)
# Line 2633  if test "x$OPENAD" != x ; then Line 2631  if test "x$OPENAD" != x ; then
2631      OAD_CB2M_FILES="/dev/null"      OAD_CB2M_FILES="/dev/null"
2632      OADTOOLS="$TOOLSDIR/OAD_support"      OADTOOLS="$TOOLSDIR/OAD_support"
2633      echo "  looking for dontCompile file:  "      echo "  looking for dontCompile file:  "
2634      for i in "." $MODS ; do      for i in "." $MODS $OADTOOLS ; do
2635          if test -r $i"/dontCompile" ; then          if test -r $i"/dontCompile" ; then
2636              OAD_DONT_COMPILE=$i"/dontCompile"              OAD_DONT_COMPILE=$i"/dontCompile"
2637              echo "     found $OAD_DONT_COMPILE"              echo "     found $OAD_DONT_COMPILE"
# Line 2641  if test "x$OPENAD" != x ; then Line 2639  if test "x$OPENAD" != x ; then
2639          fi          fi
2640      done      done
2641      echo "  looking for dontTransform file:  "      echo "  looking for dontTransform file:  "
2642      for i in "." $MODS ; do      for i in "." $MODS $OADTOOLS ; do
2643          if test -r $i"/dontTransform" ; then          if test -r $i"/dontTransform" ; then
2644              OAD_DONT_TRANSFORM=$i"/dontTransform"              OAD_DONT_TRANSFORM=$i"/dontTransform"
2645              echo "     found $OAD_DONT_TRANSFORM"              echo "     found $OAD_DONT_TRANSFORM"
# Line 2649  if test "x$OPENAD" != x ; then Line 2647  if test "x$OPENAD" != x ; then
2647          fi          fi
2648      done      done
2649      echo "  looking for keepOriginal file:  "      echo "  looking for keepOriginal file:  "
2650      for i in "." $MODS ; do      for i in "." $MODS $OADTOOLS ; do
2651          if test -r $i"/keepOriginal" ; then          if test -r $i"/keepOriginal" ; then
2652              OAD_KEEP_ORIGINAL=$i"/keepOriginal"              OAD_KEEP_ORIGINAL=$i"/keepOriginal"
2653              echo "     found $OAD_KEEP_ORIGINAL"              echo "     found $OAD_KEEP_ORIGINAL"
# Line 2657  if test "x$OPENAD" != x ; then Line 2655  if test "x$OPENAD" != x ; then
2655          fi          fi
2656      done      done
2657      echo "  looking for cb2mFiles:  "      echo "  looking for cb2mFiles:  "
2658      for i in "." $MODS ; do      for i in "." $MODS $OADTOOLS ; do
2659          if test -r $i"/cb2mFiles" ; then          if test -r $i"/cb2mFiles" ; then
2660              OAD_CB2M_FILES=$i"/cb2mFiles"              OAD_CB2M_FILES=$i"/cb2mFiles"
2661              echo "     found $OAD_CB2M_FILES"              echo "     found $OAD_CB2M_FILES"
# Line 2973  links: \$(F77_SRC_FILES) \$(C_SRC_FILES) Line 2971  links: \$(F77_SRC_FILES) \$(C_SRC_FILES)
2971    
2972  small_f: \$(F77_PP_SRC_FILES) \$(F90_PP_SRC_FILES)  small_f: \$(F77_PP_SRC_FILES) \$(F90_PP_SRC_FILES)
2973    
 # output.txt: \$(EXECUTABLE)  
 #       @printf 'running ... '  
 #       @\$(EXECUTABLE) > \$@  
   
2974  # remove most of the files that "make" generates  # remove most of the files that "make" generates
2975  clean:  clean:
2976          -rm -rf *.p *.$FS90 *.mod ${RMFILES} work.{pc,pcl} *.template          -rm -rf *.p *.$FS90 *.mod ${RMFILES} work.{pc,pcl} *.template
# Line 3376  AD_OBJ_FILES_S2=\$(AD_OBJ_FILES_S1) \$(N Line 3370  AD_OBJ_FILES_S2=\$(AD_OBJ_FILES_S1) \$(N
3370  small_f: \$(CB2M_F90_PP_SRC_FILES)  small_f: \$(CB2M_F90_PP_SRC_FILES)
3371  .PHONY: small_f  .PHONY: small_f
3372    
 # ad_output.txt: \$(EXE_AD)  
 #       @printf 'linking data files ... '  
 #       \$(LN) -f ../input_ad/data* ../input_ad/eedata .  
 #       \$(LN) -f ../../global_ocean.90x40x15/input/*.bin .  
 #       @printf 'running ... '  
 #       @./\$(EXE_AD) > \$@  
   
3373  ad_input_code.f$FS90:  \$(CB2M_AD_FILES)  ad_input_code.f$FS90:  \$(CB2M_AD_FILES)
3374          cat \$^ > \$@          cat \$^ > \$@
3375    

Legend:
Removed from v.1.265  
changed lines
  Added in v.1.268

  ViewVC Help
Powered by ViewVC 1.1.22