[MITgcm-cvs] MITgcm/tools CVS Commit
Alistair Adcroft
adcroft at mitgcm.org
Mon Nov 24 09:54:12 EST 2003
Update of /u/gcmpack/MITgcm/tools
In directory forge:/tmp/cvs-serv28273
Modified Files:
genmake2
Added Files:
adjoint_sed convert_cpp_cmd2defines
Log Message:
o Created mechanism for make makefile to use $TOOLSDIR variable of Makefile
- previously it recorded the actual invocation of genmake2 which meant
that editing TOOLSDIR was not sufficient to be able to move the set-up
o In addition to everything else, we now record the pkg configuration in
the Makefile
- previously the configuration was only recorded in PACKAGES_CONFIG.h
and gm_state
o Created targets for Makefile:
PACKAGES_CONFIG.h: this allows "make" to create the pkg config file
given the configuration state that is now recorded
in Makefile
AD_CONFIG.h: creates the appropriate null adj config file for
compiling the forward model
o The switching of AD_CONFIG.h is unchanged but the files used for comparison
of the state are now created only briefly by make and only for the duration
of the comparison
- previously these files were left in place and an inadvertent deletion
required a new invocation of genmake2
o Added new "generic" script for converting cmd-line cpp options to cpp
statements in a file
o Created a file in tools/adjoint_sed containing the sed commands needed
to patch back myThid in adjoint code. This file used to be created in
the CWD by genmake2
Comments:
o genmake2, make now works without the make depend phase
- this is necessary (and was an old feature) for occasions when makedepend
is not available and xmakedepend doesn't work or is too slow to be useful
o make clean now deletes all temporary files (except FC_NAMEMANGLE.h) so
that make CLEAN only leaves the Makefile and the Makefile now contains
sufficient information to rebuild everything. This was a capability of
the old genmake.
More information about the MITgcm-cvs
mailing list