/[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.264 by jmc, Sat Jan 25 18:25:49 2014 UTC revision 1.265 by jmc, Fri Apr 4 21:34:01 2014 UTC
# Line 2973  links: \$(F77_SRC_FILES) \$(C_SRC_FILES) Line 2973  links: \$(F77_SRC_FILES) \$(C_SRC_FILES)
2973    
2974  small_f: \$(F77_PP_SRC_FILES) \$(F90_PP_SRC_FILES)  small_f: \$(F77_PP_SRC_FILES) \$(F90_PP_SRC_FILES)
2975    
2976  output.txt: \$(EXECUTABLE)  # output.txt: \$(EXECUTABLE)
2977          @printf 'running ... '  #       @printf 'running ... '
2978          @\$(EXECUTABLE) > \$@  #       @\$(EXECUTABLE) > \$@
2979    
2980  # remove most of the files that "make" generates  # remove most of the files that "make" generates
2981  clean:  clean:
# Line 3255  if test "x$OPENAD" != x ; then Line 3255  if test "x$OPENAD" != x ; then
3255  # ============ begin OpenAD specific section ==============  # ============ begin OpenAD specific section ==============
3256    
3257  cat >>$MAKEFILE <<EOF  cat >>$MAKEFILE <<EOF
3258    # ... OpenAD ...
3259    
3260  # all the source files linked from the various locations:  # all the source files linked from the various locations:
3261  ALL_LINKED_FILES= \  ALL_LINKED_FILES= \
# Line 3308  rm -f $TMP.adSrcFiles Line 3309  rm -f $TMP.adSrcFiles
3309    
3310  cat >>$MAKEFILE <<EOF  cat >>$MAKEFILE <<EOF
3311    
3312  adAll: \$(EXE_AD)  adAll: ad_exe_target
3313  .PHONY: adAll  .PHONY: adAll
3314    
3315    ad_exe_target:
3316            @echo Update AD_CONFIG.h and make \$(EXE_AD)
3317            @$BASH\$(TOOLSDIR)/convert_cpp_cmd2defines "Adjoint version" -bAD_CONFIG_H -DALLOW_ADJOINT_RUN -UALLOW_TANGENTLINEAR_RUN > ad_config.template
3318            @cmp ad_config.template AD_CONFIG.h || cat ad_config.template > AD_CONFIG.h
3319            @-rm -f ad_config.template
3320            \$(MAKE) -f \$(MAKEFILE) \$(EXE_AD)
3321    
3322  CB2M_F90_PP_SRC_FILES=\$(addsuffix _mod.f$FS90, \$(CB2M_F90_SRC_NAMES))  CB2M_F90_PP_SRC_FILES=\$(addsuffix _mod.f$FS90, \$(CB2M_F90_SRC_NAMES))
3323    
3324  .PRECIOUS: \$(CB2M_F90_PP_SRC_FILES) \$(NON_AD_F77_SRC_FILES:.F=_cb2m.f$FS90)  .PRECIOUS: \$(CB2M_F90_PP_SRC_FILES) \$(NON_AD_F77_SRC_FILES:.F=_cb2m.f$FS90)
# Line 3368  AD_OBJ_FILES_S2=\$(AD_OBJ_FILES_S1) \$(N Line 3376  AD_OBJ_FILES_S2=\$(AD_OBJ_FILES_S1) \$(N
3376  small_f: \$(CB2M_F90_PP_SRC_FILES)  small_f: \$(CB2M_F90_PP_SRC_FILES)
3377  .PHONY: small_f  .PHONY: small_f
3378    
3379  ad_output.txt: \$(EXE_AD)  # ad_output.txt: \$(EXE_AD)
3380          @printf 'linking data files ... '  #       @printf 'linking data files ... '
3381          \$(LN) -f ../input_ad/data* ../input_ad/eedata .  #       \$(LN) -f ../input_ad/data* ../input_ad/eedata .
3382          \$(LN) -f ../../global_ocean.90x40x15/input/*.bin .  #       \$(LN) -f ../../global_ocean.90x40x15/input/*.bin .
3383          @printf 'running ... '  #       @printf 'running ... '
3384          @./\$(EXE_AD) > \$@  #       @./\$(EXE_AD) > \$@
3385    
3386  ad_input_code.f$FS90:  \$(CB2M_AD_FILES)  ad_input_code.f$FS90:  \$(CB2M_AD_FILES)
3387          cat \$^ > \$@          cat \$^ > \$@

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

  ViewVC Help
Powered by ViewVC 1.1.22