--- MITgcm/tools/genmake2 2003/10/24 05:52:05 1.23 +++ MITgcm/tools/genmake2 2003/10/30 19:11:45 1.26 @@ -1,6 +1,6 @@ #!/bin/bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.23 2003/10/24 05:52:05 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.26 2003/10/30 19:11:45 heimbach Exp $ # # Makefile generator for MITgcm UV codes # created by cnh 03/98 @@ -72,7 +72,8 @@ tmp1=`uname`"_"`uname -m` tmp2=`echo $tmp1 | sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` - PLATFORM=`echo $tmp2 | sed -e 's/i[3-6]86/ia32/' | sed -e 's/athlon/ia32/'` + tmp3=`echo $tmp2 | sed -e 's/power macintosh/ppc/'` + PLATFORM=`echo $tmp3 | sed -e 's/i[3-6]86/ia32/' | sed -e 's/athlon/ia32/'` OFLIST=`(cd $ROOTDIR/tools/build_options; ls | grep "^$PLATFORM")` echo " The platform appears to be: $PLATFORM" # if test "x$OFLIST" = x ; then @@ -104,7 +105,7 @@ fi # look for possible fortran compilers - tmp="$MITGCM_FC $FC g77 f77 pgf77 pgf95 ifc f90 f95 mpif77 mpf77 mpxlf95" + tmp="$MITGCM_FC $FC efc g77 f77 pgf77 pgf95 ifc f90 f95 mpif77 mpf77 mpxlf95" p_FC= for c in $tmp ; do rm -f ./hello.f ./hello @@ -1369,7 +1370,7 @@ adtaf: ad_taf_output.f adtamc: ad_tamc_output.f -ad_input_code.f: \$(SRCFILES) \$(HEADERFILES) +ad_input_code.f: \$(AD_FILES) \$(HEADERFILES) cmp ad_config.template AD_CONFIG.h || cat ad_config.template > AD_CONFIG.h @make \$(F77FILES) @make \$(AD_FLOW_FILES) @@ -1395,7 +1396,7 @@ ftltaf: ftl_taf_output.f ftltamc: ftl_tamc_output.f -ftl_input_code.f: \$(SRCFILES) +ftl_input_code.f: \$(AD_FILES) \$(HEADERFILES) cmp ftl_config.template AD_CONFIG.h || cat ftl_config.template > AD_CONFIG.h @make \$(F77FILES) @make \$(AD_FLOW_FILES)