--- MITgcm/tools/genmake2 2013/08/11 05:01:47 1.257 +++ MITgcm/tools/genmake2 2013/08/16 16:36:32 1.258 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.257 2013/08/11 05:01:47 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.258 2013/08/16 16:36:32 jmc Exp $ # $Name: $ # # Makefile generator for MITgcm UV codes @@ -3134,6 +3134,7 @@ cat \$(FLOWFILES) \$(AD_FILES) | sed -f \$(TOOLSDIR)/remove_comments_sed > ad_input_code.$FS ad_taf_output.$FS: ad_input_code.$FS + @-rm -f ad_input_code_ad.$FS \$(TAF) \$(AD_TAF_FLAGS) \$(TAF_EXTRA) ad_input_code.$FS ls -l ad_input_code_ad.$FS cat ad_input_code_ad.$FS | sed -f \$(TOOLSDIR)/adjoint_sed > ad_taf_output.$FS @@ -3159,7 +3160,7 @@ adtrick: patch < \$(TOOLSDIR)/ad_taf_output.f.adtrick.diff -adobj: ad_taf_output.o \$(OBJFILES) +adobj: ad_taf_output.o \$(NON_AD_F77_SRC_FILES:.F=.o) \$(F90_SRC_FILES:.F90=.o) \$(C_SRC_FILES:.c=.o) # ... FTL ... ftlall: ftl_exe_target @@ -3182,6 +3183,7 @@ cat \$(AD_FLOW_FILES) \$(AD_FILES) | sed -f \$(TOOLSDIR)/remove_comments_sed > ftl_input_code.$FS ftl_taf_output.$FS: ftl_input_code.$FS + @-rm -f ftl_input_code_tl.$FS \$(TAF) \$(FTL_TAF_FLAGS) \$(TAF_EXTRA) ftl_input_code.$FS ls -l ftl_input_code_tl.$FS cat ftl_input_code_tl.$FS | sed -f \$(TOOLSDIR)/adjoint_sed > ftl_taf_output.$FS