/[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.168 by mlosch, Wed Feb 13 07:39:34 2008 UTC revision 1.186 by jmc, Sun Mar 29 19:09:24 2009 UTC
# Line 1046  INCLUDES="-I. $INCLUDES" Line 1046  INCLUDES="-I. $INCLUDES"
1046  FFLAGS=  FFLAGS=
1047  FOPTIM=  FOPTIM=
1048  FEXTRAFLAGS=  FEXTRAFLAGS=
1049    USE_EXTENDED_SRC=
1050    EXTENDED_SRC_FLAG=
1051  CFLAGS=  CFLAGS=
1052  KFLAGS1=  KFLAGS1=
1053  KFLAGS2=  KFLAGS2=
# Line 1402  if test ! -d ${ROOTDIR} ; then Line 1404  if test ! -d ${ROOTDIR} ; then
1404  fi  fi
1405    
1406  #  Find the MITgcm ${THISVER}  #  Find the MITgcm ${THISVER}
1407  if test -f "${ROOTDIR}/doc/tag-index" ; then  version_file="${ROOTDIR}/doc/tag-index"
1408      THISVER=`grep '^checkpoint' ${ROOTDIR}/doc/tag-index | head -1`  if test -f $version_file ; then
1409        THISVER=`grep '^checkpoint' $version_file | head -1`
1410    #-  remove ./BUILD_INFO.h file if older than version_file
1411        if test -f ./BUILD_INFO.h -a ./BUILD_INFO.h -ot $version_file ; then
1412            echo "  remove ./BUILD_INFO.h (older than ${version_file})"
1413            rm -f ./BUILD_INFO.h
1414        fi
1415  fi  fi
1416    
1417  if test "x$MAKEFILE" = x ; then  if test "x$MAKEFILE" = x ; then
# Line 1640  if test ! "x$GSL" = x ; then Line 1648  if test ! "x$GSL" = x ; then
1648        INCLUDES="$INCLUDES $GSLINC"        INCLUDES="$INCLUDES $GSLINC"
1649        LIBS="$LIBS $GSLLIB"        LIBS="$LIBS $GSLLIB"
1650  fi  fi
1651    #- if USE_EXTENDED_SRC is set, add EXTENDED_SRC_FLAG to FFLAGS :
1652    if test ! "x$USE_EXTENDED_SRC" = x ; then
1653          FFLAGS="$FFLAGS $EXTENDED_SRC_FLAG"
1654          F90FIXEDFORMAT="$F90FIXEDFORMAT $EXTENDED_SRC_FLAG"
1655    fi
1656    
1657  printf "\n===  Checking system libraries  ===\n"  printf "\n===  Checking system libraries  ===\n"
1658  printf "  Do we have the system() command using $FC...  "  printf "  Do we have the system() command using $FC...  "
# Line 1762  fi Line 1775  fi
1775    
1776    
1777  printf "\n===  Setting defaults  ===\n"  printf "\n===  Setting defaults  ===\n"
1778  printf "  Adding MODS directories:  "  printf "  Adding MODS directories: "
1779    MPI_LNKF=
1780  for d in $MODS ; do  for d in $MODS ; do
1781      if test ! -d $d ; then      if test ! -d $d ; then
1782          echo          echo
1783          echo "Error: MODS directory \"$d\" not found!"          echo "Error: MODS directory \"$d\" not found!"
1784          exit 1          exit 1
1785      else      else
1786          printf " $d"          printf "$d "
1787          SOURCEDIRS="$SOURCEDIRS $d"          SOURCEDIRS="$SOURCEDIRS $d"
1788          INCLUDEDIRS="$INCLUDEDIRS $d"          INCLUDEDIRS="$INCLUDEDIRS $d"
1789            #-------------------------------------------------------
1790            # Put special links so that MPI specific files are used
1791            MPI_FILES=`(cd $d ; find . -name "*_mpi" -print)`
1792            for i in $MPI_FILES ; do
1793              ii=`echo $i | sed 's:^\./::'`
1794              name=`echo $ii | sed 's:_mpi::' `
1795              if test "x$MPI" = x ; then
1796              # NO: We undo an _mpi symbolically linked file
1797                if test -L $name ; then
1798                  cmp $name "$d/$ii" > /dev/null 2>&1
1799                  RETVAL=$?
1800                  if test "x$RETVAL" = x0 ; then
1801                    printf "Un-linking $name ; "
1802                    rm -f $name
1803                  fi
1804                fi
1805              else
1806              # YES: We symbolically link this file (with conditions if already there)
1807                if test -L $name ; then
1808                  cmp $d/$ii $name > /dev/null 2>&1
1809                  RETVAL=$?
1810                  yy=0 ;
1811                  for xx in $MPI_LNKF ; do if test $xx = $name ; then yy=1 ; fi ; done
1812                  if test "x$RETVAL" != x0 -a $yy = 0 ; then
1813                  # remove sym-link if different and has not just been linked
1814                    printf "Un-link + "
1815                    rm -f $name
1816                  fi
1817                  if test "x$RETVAL" = x0 ; then
1818                  # if identical, keep sym-link and keep record of it
1819                    MPI_LNKF="$MPI_LNKF $name"
1820                  fi
1821                fi
1822                if ! test -f $name ; then
1823                  # make sym-link and keep record of it
1824                    printf "Linking $ii to $name ; "
1825                    ln -sf $d/$ii $name
1826                    MPI_LNKF="$MPI_LNKF $name"
1827                fi
1828              fi
1829            done
1830            #-------------------------------------------------------
1831      fi      fi
1832  done  done
1833  echo  echo
1834    #echo "MPI_LNKF='$MPI_LNKF'"
1835    
1836  if test "x${PLATFORM}" = x ; then  if test "x${PLATFORM}" = x ; then
1837      PLATFORM=$p_PLATFORM      PLATFORM=$p_PLATFORM
# Line 2216  fi Line 2273  fi
2273    
2274  #  Here, we build the list of files to be "run through" the adjoint  #  Here, we build the list of files to be "run through" the adjoint
2275  #  compiler.  #  compiler.
2276  if test -f ./ad_files ; then  if test -f ./adSrcFiles.tmp ; then
2277      rm -f ./ad_files      rm -f ./adSrcFiles.tmp
2278  fi  fi
2279  echo "  Creating the list of files for the adjoint compiler."  echo "  Creating the list of files for the adjoint compiler."
2280  for i in $SOURCEDIRS ; do  for i in $SOURCEDIRS ; do
2281      list_files=`( cd $i && ls -1 *.list 2>/dev/null )`      list_files=`( cd $i && ls -1 *.list 2>/dev/null )`
2282      for j in $list_files ; do      for j in $list_files ; do
2283          cat $i/$j >> ad_files          cat $i/$j >> adSrcFiles.tmp
2284      done      done
2285  done  done
2286  if test ! "x"$FS = "x.f" ; then  if test ! "x"$FS = "x.f" ; then
2287      cat ad_files | sed -e "s/\.f/.$FS/g" > ad_files_f      cat adSrcFiles.tmp | sed -e "s/\.f/.$FS/g" > adSrcFiles.tmp_f
2288      mv -f ad_files_f ad_files      mv -f adSrcFiles.tmp_f adSrcFiles.tmp
2289  fi  fi
2290    
2291  echo  echo
# Line 2286  if test ! -r ".links.tmp/foo" ; then Line 2343  if test ! -r ".links.tmp/foo" ; then
2343      exit 1      exit 1
2344  fi  fi
2345  rm -f .links.tmp/foo  rm -f .links.tmp/foo
2346    
2347    if test "x$OPENAD" != x ; then
2348        OAD_DONT_COMPILE="/dev/null"
2349        OAD_DONT_TRANSFORM="/dev/null"
2350        OAD_KEEP_ORIGINAL="/dev/null"
2351        OAD_CB2M_FILES="/dev/null"
2352        echo "  looking for dontCompile file:  "
2353        for i in "." $MODS ; do
2354            if test -r $i"/dontCompile" ; then
2355                OAD_DONT_COMPILE=$i"/dontCompile"
2356                echo "     found $OAD_DONT_COMPILE"
2357                break
2358            fi
2359        done
2360        echo "  looking for dontTransform file:  "
2361        for i in "." $MODS ; do
2362            if test -r $i"/dontTransform" ; then
2363                OAD_DONT_TRANSFORM=$i"/dontTransform"
2364                echo "     found $OAD_DONT_TRANSFORM"
2365                break
2366            fi
2367        done
2368        echo "  looking for keepOriginal file:  "
2369        for i in "." $MODS ; do
2370            if test -r $i"/keepOriginal" ; then
2371                OAD_KEEP_ORIGINAL=$i"/keepOriginal"
2372                echo "     found $OAD_KEEP_ORIGINAL"
2373                break
2374            fi
2375        done
2376        echo "  looking for cb2mFiles:  "
2377        for i in "." $MODS ; do
2378            if test -r $i"/cb2mFiles" ; then
2379                OAD_CB2M_FILES=$i"/cb2mFiles"
2380                echo "     found $OAD_CB2M_FILES"
2381                break
2382            fi
2383        done
2384        echo "   OpenAD exceptions:  "
2385    fi
2386    
2387  echo "# This section creates symbolic links" > srclinks.tmp  echo "# This section creates symbolic links" > srclinks.tmp
2388  echo "" >> srclinks.tmp  echo "" >> srclinks.tmp
2389  printf 'SRCFILES = '    > srclist.inc  printf 'F77_SRC_FILES = ' > F77srclist.tmp
2390  printf 'CSRCFILES = '   > csrclist.inc  printf 'NON_AD_F77_SRC_FILES = ' > nonADF77srclist.tmp
2391  printf 'F90SRCFILES = ' > f90srclist.inc  printf 'C_SRC_FILES = '   > csrclist.tmp
2392  printf 'HEADERFILES = ' > hlist.inc  printf 'F90_SRC_FILES = ' > F90srclist.tmp
2393  printf 'AD_FLOW_FILES = ' > ad_flow_files.inc  printf 'H_SRC_FILES = '   > hsrclist.tmp
2394    printf 'AD_FLOW_FILES = ' > ad_flow_files.tmp
2395  alldirs="$SOURCEDIRS $INCLUDEDIRS ."  alldirs="$SOURCEDIRS $INCLUDEDIRS ."
2396  for d in $alldirs ; do  for d in $alldirs ; do
2397      deplist=      deplist=
2398      sfiles=`( cd $d; echo *.[h,c,F] *.flow )`      sfiles=`( cd $d; echo *.[h,c,F] *.flow )`
2399      sfiles=`( echo $sfiles; cd $d; echo *.F90 )`      sfiles=`( echo $sfiles; cd $d; echo *.F90 )`
2400        if test "x$OPENAD" != x ; then
2401            sfiles=`( echo $sfiles | grep -v _cb2m\. )`
2402        fi
2403      for sf in $sfiles ; do      for sf in $sfiles ; do
2404          if test ! -r ".links.tmp/$sf" ; then          if test ! -r ".links.tmp/$sf" ; then
2405              if test -f "$d/$sf" ; then              if test -f "$d/$sf" ; then
# Line 2332  for d in $alldirs ; do Line 2434  for d in $alldirs ; do
2434                  if test "x$ignore_f" = xf ; then                  if test "x$ignore_f" = xf ; then
2435                      extn=`echo $sf | $AWK -F. '{print $NF}'`                      extn=`echo $sf | $AWK -F. '{print $NF}'`
2436                      case $extn in                      case $extn in
2437                          F)                        F)
2438                              echo    " \\"  >> srclist.inc                          echo    " \\"  >> F77srclist.tmp
2439                              printf " $sf" >> srclist.inc                          printf " $sf" >> F77srclist.tmp
2440                              ;;                          if test "x$OPENAD" != x ; then
2441                          F90)                              basename=${sf%%.F}
2442                              echo    " \\"  >> f90srclist.inc                              isAD=`egrep ^$basename.f'[  ]*' adSrcFiles.tmp`
2443                              printf " $sf" >> f90srclist.inc                              if test -z "$isAD" ; then
2444                              ;;                                  toBeIgnored=`egrep ^$basename'[      ]*' ${OAD_DONT_COMPILE}`
2445                          c)                                  if test -z "$toBeIgnored" ; then
2446                              echo    " \\"  >> csrclist.inc                                      echo    " \\"  >> nonADF77srclist.tmp
2447                              printf " $sf" >> csrclist.inc                                      printf " $sf" >> nonADF77srclist.tmp
2448                              ;;                                  else
2449                          h)                                      echo "    not to be compiled   :  $sf"
2450                              echo    " \\"  >> hlist.inc                                  fi
2451                              printf " $sf" >> hlist.inc                              else # file is initially listed as an AD file we want to exclude it
2452                              ;;                                   # or we want to retain the untransformed version
2453                          flow)                                  notToBeTransformed=`egrep ^$basename'[      ]*' ${OAD_DONT_TRANSFORM}`
2454                              echo    " \\"  >> ad_flow_files.inc                                  untransformedVersionToBeKept=`egrep ^$basename'[      ]*' ${OAD_KEEP_ORIGINAL}`
2455                              printf " $sf" >> ad_flow_files.inc                                  if test -n "$notToBeTransformed"; then
2456                              ;;                                      echo "    not to be transformed:  $sf"
2457                      esac                                  fi
2458                  fi                                  if test -n "$untransformedVersionToBeKept" ; then
2459                                        echo "    original to be kept  :  $sf"
2460                                    fi    
2461                                    if test -n "$notToBeTransformed" -o -n "$untransformedVersionToBeKept" ; then
2462                                        echo    " \\"  >> nonADF77srclist.tmp
2463                                        printf " $sf" >> nonADF77srclist.tmp
2464                                    fi
2465                                fi
2466                            fi
2467                            ;;
2468                        F90)
2469                            echo    " \\"  >> F90srclist.tmp
2470                            printf " $sf" >> F90srclist.tmp
2471                            ;;
2472                        c)
2473                            echo    " \\"  >> csrclist.tmp
2474                            printf " $sf" >> csrclist.tmp
2475                            ;;
2476                        h)
2477                            echo    " \\"  >> hsrclist.tmp
2478                            printf " $sf" >> hsrclist.tmp
2479                            ;;
2480                        flow)
2481                            echo    " \\"  >> ad_flow_files.tmp
2482                            printf " $sf" >> ad_flow_files.tmp
2483                            ;;
2484                       esac
2485                    fi
2486              fi              fi
2487          fi          fi
2488      done      done
2489      if test "x$deplist" != x ; then      if test "x$deplist" != x ; then
2490          echo "" >> srclinks.tmp        if test "$d" != "." ; then
2491            echo "" >> srclinks.tmp
2492          echo "#  These files are linked from $d" >> srclinks.tmp          echo "#  These files are linked from $d" >> srclinks.tmp
2493          echo "$deplist :" >> srclinks.tmp          echo "$deplist :" >> srclinks.tmp
2494          printf "\t\$(LN) %s/\$@ \$@\n" $d >> srclinks.tmp  # We need to make sure that the link isn't already there.
2495    # This may happen when make thinks that a header file has to be "remade"
2496    # because a module it depends on has changed.  In this case we do nothing.
2497            printf "\tif [ ! -L \$@ ]; then \$(LN) %s/\$@ \$@; fi\n" $d >> srclinks.tmp
2498          fi
2499      fi      fi
2500  done  done
2501  rm -rf .links.tmp  rm -rf .links.tmp
2502  echo "" >> srclist.inc  echo "" >> F77srclist.tmp
2503  echo "" >> csrclist.inc  echo "" >> nonADF77srclist.tmp
2504  echo "" >> f90srclist.inc  echo "" >> csrclist.tmp
2505  echo "" >> hlist.inc  echo "" >> F90srclist.tmp
2506  echo "" >> ad_flow_files.inc  echo "" >> hsrclist.tmp
2507    echo "" >> ad_flow_files.tmp
2508    
2509  if test -f $MAKEFILE ; then  if test -f $MAKEFILE ; then
2510      mv -f $MAKEFILE "$MAKEFILE.bak"      mv -f $MAKEFILE "$MAKEFILE.bak"
# Line 2469  FOPTIM = ${FOPTIM} Line 2604  FOPTIM = ${FOPTIM}
2604  # Optim./debug for FC  # Optim./debug for FC
2605  F90FLAGS = ${F90FLAGS}  F90FLAGS = ${F90FLAGS}
2606  F90OPTIM = ${F90OPTIM}  F90OPTIM = ${F90OPTIM}
2607    F90FIXEDFORMAT = ${F90FIXEDFORMAT}
2608  # Flags for CC  # Flags for CC
2609  CFLAGS = ${CFLAGS}  CFLAGS = ${CFLAGS}
2610  # Files that should not be optimized  # Files that should not be optimized
# Line 2481  MAKEFILE=${MAKEFILE} Line 2617  MAKEFILE=${MAKEFILE}
2617    
2618  EOF  EOF
2619    
2620  cat srclist.inc       >> $MAKEFILE  cat F77srclist.tmp      >> $MAKEFILE
2621  cat csrclist.inc      >> $MAKEFILE  cat nonADF77srclist.tmp >> $MAKEFILE
2622  cat f90srclist.inc    >> $MAKEFILE  cat csrclist.tmp        >> $MAKEFILE
2623  cat hlist.inc         >> $MAKEFILE  cat F90srclist.tmp      >> $MAKEFILE
2624  cat ad_flow_files.inc >> $MAKEFILE  cat hsrclist.tmp        >> $MAKEFILE
2625    cat ad_flow_files.tmp   >> $MAKEFILE
2626    
2627    rm -f F77srclist.tmp nonADF77srclist.tmp csrclist.tmp F90srclist.tmp hsrclist.tmp ad_flow_files.tmp
2628    
2629  echo >> $MAKEFILE  echo >> $MAKEFILE
2630  echo 'F77FILES =  $(SRCFILES:.F=.'$FS')'      >> $MAKEFILE  
2631  echo 'F90FILES =  $(F90SRCFILES:.F90=.'$FS90')' >> $MAKEFILE  # add definitions for preprocessed sources
2632  echo 'OBJFILES =  $(SRCFILES:.F=.o) $(CSRCFILES:.c=.o) $(F90SRCFILES:.F90=.o)' >> $MAKEFILE  # and note that not all systems allow case sensitive extensions
2633    # hence the $FS and $FS90 here.
2634    # for fixed format f90 files we use ff90 or FF90 resp
2635    # but these are not expected to be the original source files
2636    
2637    echo 'F77_PP_SRC_FILES = $(F77_SRC_FILES:.F=.'$FS')'      >> $MAKEFILE
2638    echo 'F90_PP_SRC_FILES = $(F90_SRC_FILES:.F90=.'$FS90')' >> $MAKEFILE
2639    echo 'OBJFILES= $(F77_SRC_FILES:.F=.o) $(C_SRC_FILES:.c=.o) $(F90_SRC_FILES:.F90=.o)' >> $MAKEFILE
2640    echo 'FLOFILES =  $(AD_FLOW_FILES:.flow=.flowdir)' >> $MAKEFILE
2641  echo >> $MAKEFILE  echo >> $MAKEFILE
2642  echo '.SUFFIXES:' >> $MAKEFILE  echo '.SUFFIXES:' >> $MAKEFILE
2643  echo '.SUFFIXES: .o .'$FS' .p .F .c .'$FS90' .F90' >> $MAKEFILE  echo '.SUFFIXES: .o .'$FS' .p .F .c .f'$FS90' .'$FS90' .FF90 .F90 .flowdir .flow' >> $MAKEFILE
 rm -f srclist.inc csrclist.inc hlist.inc flist.tmp clist.tmp f90srclist.inc  
 rm -f ad_flow_files.inc  
2644    
2645  cat >>$MAKEFILE <<EOF  cat >>$MAKEFILE <<EOF
2646    
2647  all: \$(EXECUTABLE)  all: \$(EXECUTABLE)
2648  \$(EXECUTABLE): \$(SPECIAL_FILES) \$(SRCFILES) \$(CSRCFILES) \$(HEADERFILES) \$(F90SRCFILES) \$(OBJFILES) \$(EMBEDDED_FILES)  \$(EXECUTABLE): \$(SPECIAL_FILES) \$(F77_SRC_FILES) \$(C_SRC_FILES) \$(H_SRC_FILES) \$(F90_SRC_FILES) \$(OBJFILES) \$(EMBEDDED_FILES)
2649          @echo Creating \$@ ...          @echo Creating \$@ ...
2650          \$(LINK) -o \$@ \$(FFLAGS) \$(FOPTIM) \$(OBJFILES) \$(LIBS)          \$(LINK) -o \$@ \$(FFLAGS) \$(FOPTIM) \$(OBJFILES) \$(LIBS)
2651  depend:  depend:
2652          @make links          @make links
2653          \$(MAKEDEPEND) -o .$FS \$(DEFINES) \$(INCLUDES) \$(SRCFILES)          \$(MAKEDEPEND) -o .$FS \$(DEFINES) \$(INCLUDES) \$(F77_SRC_FILES)
2654          \$(TOOLSDIR)/f90mkdepend >> \$(MAKEFILE)          \$(TOOLSDIR)/f90mkdepend >> \$(MAKEFILE)
2655          -rm -f makedepend.out          -rm -f makedepend.out
2656    
# Line 2514  libmitgcmuv.a: \$(OBJFILES) Line 2660  libmitgcmuv.a: \$(OBJFILES)
2660          ar rcv libmitgcmuv.a \$(OBJFILES)          ar rcv libmitgcmuv.a \$(OBJFILES)
2661          ar d   libmitgcmuv.a main.o          ar d   libmitgcmuv.a main.o
2662    
2663  links: \$(SRCFILES) \$(CSRCFILES) \$(HEADERFILES) \$(F90SRCFILES) \$(SPECIAL_FILES)  links: \$(F77_SRC_FILES) \$(C_SRC_FILES) \$(H_SRC_FILES) \$(F90_SRC_FILES) \$(SPECIAL_FILES)
2664    
2665  small_f: \$(F77FILES) \$(F90FILES)  small_f: \$(F77_PP_SRC_FILES) \$(F90_PP_SRC_FILES)
2666    
2667  output.txt: \$(EXECUTABLE)  output.txt: \$(EXECUTABLE)
2668          @printf 'running ... '          @printf 'running ... '
# Line 2525  output.txt: \$(EXECUTABLE) Line 2671  output.txt: \$(EXECUTABLE)
2671  clean:  clean:
2672          -rm -rf *.p *.$FS90 *.mod ${RMFILES} work.{pc,pcl} *.template          -rm -rf *.p *.$FS90 *.mod ${RMFILES} work.{pc,pcl} *.template
2673          -rm -rf *.o          -rm -rf *.o
2674          -rm -rf *.$FS          -rm -rf *.$FS *.flowdir
2675            -rm -rf *.f$FS90 *_mod.h *_mod.F90 *.FF90 *.mod-whirl ad_input*
2676            -rm -rf temp.sed
2677  Clean:  Clean:
2678          @make clean          @make clean
2679          @make cleanlinks          @make cleanlinks
2680          -rm -f \$(SPECIAL_FILES)          -rm -f \$(SPECIAL_FILES)
2681          -rm -f genmake_state genmake_*optfile genmake_warnings make.log run.log *.bak          -rm -f genmake_state genmake_*optfile genmake_warnings make.log run.log f90mkdepend.log *.bak
2682          -rm -f taf_command taf_output taf_ad.log taf_ad_flow.log          -rm -f taf_command taf_output taf_ad.log taf_ad_flow.log
2683  CLEAN:  CLEAN:
2684          @make Clean          @make Clean
# Line 2547  makefile: Line 2695  makefile:
2695  cleanlinks:  cleanlinks:
2696          -find . -type l -exec rm {} \;          -find . -type l -exec rm {} \;
2697    
2698  # Special targets (SPECIAL_FILES) which are create by make  # Special targets (SPECIAL_FILES) which are created by make
2699  ${PACKAGES_DOT_H}:  ${PACKAGES_DOT_H}:
2700          @echo Creating \$@ ...          @echo Creating \$@ ...
2701          @$BASH\$(TOOLSDIR)/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -bPACKAGES_CONFIG_H "Disabled packages:" \$(DISABLED_PACKAGES) " " "Enabled packages:" \$(ENABLED_PACKAGES) > \$@          @$BASH\$(TOOLSDIR)/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -bPACKAGES_CONFIG_H "Disabled packages:" \$(DISABLED_PACKAGES) " " "Enabled packages:" \$(ENABLED_PACKAGES) > \$@
# Line 2572  if test "x$EMBED_SRC" = xt ; then Line 2720  if test "x$EMBED_SRC" = xt ; then
2720    
2721  decode_files.o : EMBEDDED_FILES.h  decode_files.o : EMBEDDED_FILES.h
2722    
2723  ##  \$(F77FILES)  ##  \$(F77_PP_SRC_FILES)
2724  all_fF.tar.gz : \$(SPECIAL_FILES) \$(SRCFILES) \$(CSRCFILES) \$(HEADERFILES) \$(F90SRCFILES) \$(F77FILES) Makefile  all_fF.tar.gz : \$(SPECIAL_FILES) \$(F77_SRC_FILES) \$(C_SRC_FILES) \$(H_SRC_FILES) \$(F90_SRC_FILES) \$(F77_PP_SRC_FILES) Makefile
2725          @echo Creating \$@ ...          @echo Creating \$@ ...
2726          -tar -hcf all_fF.tar \$(SPECIAL_FILES) \$(SRCFILES) \$(CSRCFILES) \$(HEADERFILES) \$(F90SRCFILES) \$(F77FILES) Makefile          -tar -hcf all_fF.tar \$(SPECIAL_FILES) \$(F77_SRC_FILES) \$(C_SRC_FILES) \$(H_SRC_FILES) \$(F90_SRC_FILES) \$(F77_PP_SRC_FILES) Makefile
2727          -rm -f all_fF.tar.gz          -rm -f all_fF.tar.gz
2728          -gzip all_fF.tar          -gzip all_fF.tar
2729    
# Line 2597  cat >>$MAKEFILE <<EOF Line 2745  cat >>$MAKEFILE <<EOF
2745          \$(CPP) \$(DEFINES) \$(INCLUDES) > \$@          \$(CPP) \$(DEFINES) \$(INCLUDES) > \$@
2746  .$FS.o:  .$FS.o:
2747          \$(FC) \$(FFLAGS) \$(FOPTIM) -c \$<          \$(FC) \$(FFLAGS) \$(FOPTIM) -c \$<
2748  .F90.o:    .F90.$FS90:
2749            \$(CPP) \$(DEFINES) \$(INCLUDES) > \$@
2750    .FF90.f$FS90:
2751            \$(CPP) \$(DEFINES) \$(INCLUDES) > \$@
2752    .$FS90.o:
2753          \$(F90C) \$(F90FLAGS) \$(F90OPTIM) -c \$<          \$(F90C) \$(F90FLAGS) \$(F90OPTIM) -c \$<
2754    .f$FS90.o:
2755            cp \$< \$(basename  \$<).f90
2756            \$(F90C) \$(F90FLAGS) \$(F90OPTIM) -c \$(F90FIXEDFORMAT) \$(basename  \$<).f90
2757  .c.o:  .c.o:
2758          \$(CC) \$(CFLAGS) \$(DEFINES) \$(INCLUDES) -c \$<          \$(CC) \$(CFLAGS) \$(DEFINES) \$(INCLUDES) -c \$<
2759    .flow.flowdir:
2760            \$(CPP) \$(DEFINES) \$(INCLUDES) > \$@
2761    
2762  # Special exceptions that use the ( .F - .p - .$FS - .o ) rule-chain  # Special exceptions that use the ( .F - .p - .$FS - .o ) rule-chain
2763  .F.p:  .F.p:
# Line 2608  cat >>$MAKEFILE <<EOF Line 2765  cat >>$MAKEFILE <<EOF
2765  .p.$FS:  .p.$FS:
2766          \$(KPP) \$(KFLAGS1)\$@ \$(KFLAGS2) \$<          \$(KPP) \$(KFLAGS1)\$@ \$(KFLAGS2) \$<
2767    
2768    EOF
2769    
2770  #=========================================  #=========================================
2771  #===  Automatic Differentiation Rules  ===  #===  Automatic Differentiation Rules  ===
2772    #===  for TAMC/TAF  ======================
2773    
2774    if test "x$OPENAD" = x ; then
2775    
2776    cat >>$MAKEFILE <<EOF
2777    
2778  TAMC           = ${TAMC}  TAMC           = ${TAMC}
2779  TAF            = ${TAF}  TAF            = ${TAF}
# Line 2633  done Line 2797  done
2797  echo "  Add the source list for AD code generation"  echo "  Add the source list for AD code generation"
2798  echo >> $MAKEFILE  echo >> $MAKEFILE
2799  printf "AD_FILES = " >> $MAKEFILE  printf "AD_FILES = " >> $MAKEFILE
2800  AD_FILES=`cat ad_files`  AD_FILES=`cat adSrcFiles.tmp`
2801  for i in $AD_FILES ; do  for i in $AD_FILES ; do
2802      echo    " \\" >> $MAKEFILE      echo    " \\" >> $MAKEFILE
2803      printf " $i" >> $MAKEFILE      printf " $i" >> $MAKEFILE
2804  done  done
2805  echo >> $MAKEFILE  echo >> $MAKEFILE
2806  rm -f ad_files  rm -f adSrcFiles.tmp
2807    
2808  cat >>$MAKEFILE <<EOF  cat >>$MAKEFILE <<EOF
2809    
# Line 2648  adall: \$(EXE_AD) Line 2812  adall: \$(EXE_AD)
2812  adtaf: ad_taf_output.$FS  adtaf: ad_taf_output.$FS
2813  adtamc: ad_tamc_output.$FS  adtamc: ad_tamc_output.$FS
2814    
2815  ad_input_code.$FS: \$(AD_FILES) \$(HEADERFILES)  ad_input_code.$FS: \$(AD_FILES) \$(H_SRC_FILES)
2816          @$BASH\$(TOOLSDIR)/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -DALLOW_ADJOINT_RUN -UALLOW_TANGENTLINEAR_RUN -UALLOW_ECCO_OPTIMIZATION > ad_config.template          @$BASH\$(TOOLSDIR)/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -DALLOW_ADJOINT_RUN -UALLOW_TANGENTLINEAR_RUN -UALLOW_ECCO_OPTIMIZATION > ad_config.template
2817          cmp ad_config.template AD_CONFIG.h || cat ad_config.template > AD_CONFIG.h          cmp ad_config.template AD_CONFIG.h || cat ad_config.template > AD_CONFIG.h
2818          -rm -f ad_config.template          -rm -f ad_config.template
2819          @make \$(F77FILES)          @make \$(F77_PP_SRC_FILES)
2820          @make \$(AD_FLOW_FILES)          @make \$(FLOFILES)
2821          cat \$(AD_FLOW_FILES) \$(AD_FILES) > ad_input_code.$FS          cat \$(FLOFILES) \$(AD_FILES) > ad_input_code.$FS
2822    
2823  ad_taf_output.$FS: ad_input_code.$FS  ad_taf_output.$FS: ad_input_code.$FS
2824          \$(TAF) \$(AD_TAF_FLAGS) \$(TAF_EXTRA) ad_input_code.$FS          \$(TAF) \$(AD_TAF_FLAGS) \$(TAF_EXTRA) ad_input_code.$FS
2825            ls -l ad_input_code_ad.$FS
2826          cat ad_input_code_ad.$FS | sed -f \$(TOOLSDIR)/adjoint_sed > ad_taf_output.$FS          cat ad_input_code_ad.$FS | sed -f \$(TOOLSDIR)/adjoint_sed > ad_taf_output.$FS
2827    
2828  adtafonly:  adtafonly:
2829          \$(TAF) \$(AD_TAF_FLAGS) \$(TAF_EXTRA) ad_input_code.$FS          \$(TAF) \$(AD_TAF_FLAGS) \$(TAF_EXTRA) ad_input_code.$FS
2830            ls -l ad_input_code_ad.$FS
2831          cat ad_input_code_ad.$FS | sed -f \$(TOOLSDIR)/adjoint_sed > ad_taf_output.$FS          cat ad_input_code_ad.$FS | sed -f \$(TOOLSDIR)/adjoint_sed > ad_taf_output.$FS
2832    
2833  \${EXE_AD}: ad_taf_output.o \$(OBJFILES)  \${EXE_AD}: ad_taf_output.o \$(OBJFILES)
# Line 2685  ftlall: ftl_taf Line 2851  ftlall: ftl_taf
2851  ftltaf: ftl_taf_output.$FS  ftltaf: ftl_taf_output.$FS
2852  ftltamc: ftl_tamc_output.$FS  ftltamc: ftl_tamc_output.$FS
2853    
2854  ftl_input_code.$FS: \$(AD_FILES) \$(HEADERFILES)  ftl_input_code.$FS: \$(AD_FILES) \$(H_SRC_FILES)
2855          @$BASH\$(TOOLSDIR)/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -UALLOW_ADJOINT_RUN -DALLOW_TANGENTLINEAR_RUN -UALLOW_ECCO_OPTIMIZATION > ftl_config.template          @$BASH\$(TOOLSDIR)/convert_cpp_cmd2defines "Warning - this file is automatically generated - do NOT edit" -UALLOW_ADJOINT_RUN -DALLOW_TANGENTLINEAR_RUN -UALLOW_ECCO_OPTIMIZATION > ftl_config.template
2856          cmp ftl_config.template AD_CONFIG.h || cat ftl_config.template > AD_CONFIG.h          cmp ftl_config.template AD_CONFIG.h || cat ftl_config.template > AD_CONFIG.h
2857          -rm -f ftl_config.template          -rm -f ftl_config.template
2858          @make \$(F77FILES)          @make \$(F77_PP_SRC_FILES)
2859          @make \$(AD_FLOW_FILES)          @make \$(AD_FLOW_FILES)
2860          cat \$(AD_FLOW_FILES) \$(AD_FILES) > ftl_input_code.$FS          cat \$(AD_FLOW_FILES) \$(AD_FILES) > ftl_input_code.$FS
2861    
2862  ftl_taf_output.$FS: ftl_input_code.$FS  ftl_taf_output.$FS: ftl_input_code.$FS
2863          \$(TAF) \$(FTL_TAF_FLAGS) \$(TAF_EXTRA) ftl_input_code.$FS          \$(TAF) \$(FTL_TAF_FLAGS) \$(TAF_EXTRA) ftl_input_code.$FS
2864            ls -l ftl_input_code_ftl.$FS
2865          cat ftl_input_code_ftl.$FS | sed -f \$(TOOLSDIR)/adjoint_sed > ftl_taf_output.$FS          cat ftl_input_code_ftl.$FS | sed -f \$(TOOLSDIR)/adjoint_sed > ftl_taf_output.$FS
2866    
2867  ftltafonly:  ftltafonly:
2868          \$(TAF) \$(FTL_TAF_FLAGS) \$(TAF_EXTRA) ftl_input_code.$FS          \$(TAF) \$(FTL_TAF_FLAGS) \$(TAF_EXTRA) ftl_input_code.$FS
2869            ls -l ftl_input_code_ftl.$FS
2870          cat ftl_input_code_ftl.$FS | sed -f \$(TOOLSDIR)/adjoint_sed > ftl_taf_output.$FS          cat ftl_input_code_ftl.$FS | sed -f \$(TOOLSDIR)/adjoint_sed > ftl_taf_output.$FS
2871    
2872  ftl_taf: ftl_taf_output.o \$(OBJFILES)  ftl_taf: ftl_taf_output.o \$(OBJFILES)
# Line 2736  svd_touch: Line 2904  svd_touch:
2904          cmp ftl_config.template AD_CONFIG.h || cat ftl_config.template > AD_CONFIG.h          cmp ftl_config.template AD_CONFIG.h || cat ftl_config.template > AD_CONFIG.h
2905          -rm -f ftl_config.template          -rm -f ftl_config.template
2906    
2907  #=========================================  EOF
2908    
2909    fi
2910    
2911    #===  for OpenAD  ========================
2912    
2913    if test "x$OPENAD" != x ; then
2914    
2915    # ============ begin OpenAD specific section ==============
2916    
2917    cat >>$MAKEFILE <<EOF
2918    
2919    # all the source files linked from the various locations:
2920    ALL_LINKED_FILES= \
2921    \$(F77_SRC_FILES) \
2922    \$(C_SRC_FILES) \
2923    \$(H_SRC_FILES) \
2924    \$(F90_SRC_FILES) \
2925    \$(SPECIAL_FILES)
2926    
2927    ifndef OPENADROOT
2928      \$(error "Error:  environment variable OPENADROOT not defined!")
2929    endif
2930    
2931    ifndef XAIFSCHEMAROOT
2932      \$(error "Error:  environment variable XAIFSCHEMAROOT not defined!")
2933    endif
2934    
2935    ifndef XAIFBOOSTERROOT
2936      \$(error "Error:  environment variable XAIFBOOSTERROOT not defined!")
2937    endif
2938    
2939    EOF
2940    
2941    echo "  Add the source list for common block to module conversion "
2942    echo >> $MAKEFILE
2943    printf "CB2M_F90_SRC_NAMES = " >> $MAKEFILE
2944    for i in `cat ${OAD_CB2M_FILES}` ; do
2945      echo    " \\" >> $MAKEFILE
2946      printf " $i" >> $MAKEFILE
2947    done
2948    echo >> $MAKEFILE
2949    
2950    echo "  Add the source list for AD code generation"
2951    echo >> $MAKEFILE
2952    printf "AD_FILES = " >> $MAKEFILE
2953    for i in `cat ${OAD_CB2M_FILES}` ; do
2954      echo    " \\" >> $MAKEFILE
2955      printf " ${i}_mod.f$FS90" >> $MAKEFILE
2956    done
2957    AD_FILES=`cat adSrcFiles.tmp`
2958    for i in $AD_FILES ; do
2959      basename=${i%%.f}
2960      toBeIgnored=`egrep ^$basename'[      ]*' ${OAD_DONT_COMPILE} ${OAD_DONT_TRANSFORM}`
2961      if test -z "$toBeIgnored" ; then
2962        echo    " \\" >> $MAKEFILE
2963        printf " $i" >> $MAKEFILE
2964      fi
2965    done
2966    echo >> $MAKEFILE
2967    rm -f adSrcFiles.tmp
2968    
2969    cat >>$MAKEFILE <<EOF
2970    
2971    adAll: \$(EXE_AD)
2972    .PHONY: adAll
2973    
2974    CB2M_F90_PP_SRC_FILES=\$(addsuffix _mod.f$FS90, \$(CB2M_F90_SRC_NAMES))
2975    
2976    .PRECIOUS: \$(CB2M_F90_PP_SRC_FILES) \$(NON_AD_F77_SRC_FILES:.F=_cb2m.f$FS90)
2977    
2978    .PHONY: adDepend
2979    adDepend: \$(ALL_LINKED_FILES) \$(addsuffix _mod.h, \$(CB2M_F90_SRC_NAMES)) \$(addsuffix _mod.FF90, \$(CB2M_F90_SRC_NAMES)) \$(F77_SRC_FILES:.F=_cb2m.FF90)
2980            \$(MAKEDEPEND) -o .$FS \$(DEFINES) \$(INCLUDES) \$(F77_SRC_FILES)
2981            \$(TOOLSDIR)/f90mkdepend >> \$(MAKEFILE)
2982            -rm -f makedepend.out
2983    
2984    OPENAD_SUPPORT_F90_SRC_FILES = \
2985    w2f__types.F90 \
2986    OAD_active.F90 \
2987    OAD_cp.F90 \
2988    OAD_rev.F90 \
2989    OAD_tape.F90        
2990    
2991    OPENAD_SUPPORT_C_SRC_FILES = \
2992    iaddr.c \
2993    timeRatio.c
2994    
2995    f95_test_mods.f90: \$(OPENAD_SUPPORT_F90_SRC_FILES:F90=$FS90)
2996            cat \$^ > \$@
2997    
2998    f95_test.f90: all_mods.xb.x2w.w2f.pp.f$FS90 \$(NON_AD_F77_SRC_FILES:.F=_cb2m.f$FS90) ad_input_code.w2f.pre.xb.x2w.w2f.td.pp.f$FS90
2999            cat \$^ > \$@
3000    
3001    f95_test.out: f95_test_mods.f90 f95_test.f90
3002            f95 -fixed -w=unused -maxcontin=132 -c f95_test_mods.f90 > \$@ 2>&1
3003            f95 -fixed -w=unused -maxcontin=132 -c -fixed f95_test.f90 >> \$@ 2>&1
3004    
3005    AD_OBJ_FILES=\$(OPENAD_SUPPORT_F90_SRC_FILES:.F90=.o) \$(OPENAD_SUPPORT_C_SRC_FILES:.c=.o) all_mods.xb.x2w.w2f.pp.o  ad_input_code.w2f.pre.xb.x2w.w2f.td.pp.o \$(NON_AD_F77_SRC_FILES:.F=_cb2m.o) \$(C_SRC_FILES:.c=.o) \$(F90_SRC_FILES:.F90=.o)
3006    
3007    \$(EXE_AD): \$(ALL_LINKED_FILES) \$(addsuffix _mod.h, \$(CB2M_F90_SRC_NAMES)) \$(AD_OBJ_FILES)
3008            @echo Creating \$@ ...
3009            \$(LINK) -o \$@ \$(FFLAGS) \$(FOPTIM) \$(AD_OBJ_FILES) \$(LIBS)
3010    
3011    # makefile debug rule
3012    openad: ad_input_code.w2f.pre.xb.x2w.w2f.td.pp.f$FS90
3013    .PHONY: openad
3014    
3015    # create the module files
3016    %_mod.FF90 : %.h ../OAD_support/cb2mGetModules.csh ../OAD_support/cb2mGetModules.awk
3017            ../OAD_support/cb2mGetModules.csh $< ../OAD_support/cb2mGetModules.awk
3018    
3019    # create the header files
3020    %_mod.h : %.h ../OAD_support/cb2mGetHeaders.csh ../OAD_support/cb2mGetHeaders.awk
3021            ../OAD_support/cb2mGetHeaders.csh $< ../OAD_support/cb2mGetHeaders.awk \$(CB2M_F90_SRC_NAMES)
3022    
3023    # change everybody else to use the new module files:
3024    %_cb2m.FF90 : %.F ../OAD_support/cb2mUseModules.bash
3025            ../OAD_support/cb2mUseModules.bash $< ${MPI}
3026    
3027    # makefile debug rule
3028    small_f: \$(CB2M_F90_PP_SRC_FILES)
3029    .PHONY: small_f
3030    
3031    ad_output.txt: \$(EXE_AD)
3032            @printf 'linking data files ... '
3033            \$(LN) -f ../input_ad/data* ../input_ad/eedata .
3034            \$(LN) -f ../../global_ocean.90x40x15/input/*.bin .
3035            @printf 'running ... '
3036            @./\$(EXE_AD) > \$@
3037    
3038    CB2M_AD_FILES=\$(AD_FILES:.f=_cb2m.f$FS90)
3039    ad_input_code.f$FS90: ../OAD_support/maxMinDefs.f \$(CB2M_AD_FILES)
3040            cat \$^ > \$@
3041    
3042    # strip all comments and blanks to reduce
3043    # the file size in order to reduce perl's memory requirements
3044    ad_input_code_sf.f$FS90 : ad_input_code.f$FS90
3045            cat \$^ | sed -f ../OAD_support/strip.sed | sed -f ../OAD_support/stop2print.sed > \$@
3046    
3047    # mfef90 preprocessing
3048    # expand statement functions
3049    # expose mfef90 specific substring handling
3050    # add the w2f__types module
3051    ad_input_code_sf.w2f.f$FS90: ad_input_code_sf.f$FS90 mfef90 whirl2f whirl2f_be w2f__types.f90
3052            ./mfef90 -r8 -z -F -N132 \$<
3053            mv \$<.B \$(basename \$<).B
3054            ./whirl2f -openad \$(basename \$<).B
3055            cat w2f__types.f90 \$(basename \$<).w2f.f > \$@
3056    
3057    # canonicalizer
3058    ad_input_code_sf.w2f.pre.f$FS90: ad_input_code_sf.w2f.f$FS90 preProcess.py
3059            ./preProcess.py -H -S \$< -o \$@
3060    
3061    # F -> WHIRL
3062    # note that the canonicalized version cuts off at col 72
3063    # doing this also for string constants which is ok as long
3064    # as we are in fixed mode and cut of exactly there.
3065    # Otherwise mfef90 patches in spaces to fill up to 72 (or 132)
3066    # characters respectively.
3067    ad_input_code_sf.w2f.pre.B: ad_input_code_sf.w2f.pre.f$FS90 mfef90
3068            ./mfef90 -r8 -z -F \$<
3069            mv \$<.B \$@
3070    
3071    # WHIRL -> XAIF
3072    ad_input_code_sf.w2f.pre.xaif : ad_input_code_sf.w2f.pre.B whirl2xaif
3073            ./whirl2xaif -s -n --debug 1 -o \$@ \$<
3074    
3075    # XAIF -> XAIF'
3076    ad_input_code_sf.w2f.pre.xb.xaif : ad_input_code_sf.w2f.pre.xaif xaif.xsd xaif_base.xsd xaif_inlinable_intrinsics.xsd xaif_derivative_propagator.xsd xaif_output.xsd oadDriver
3077            ./oadDriver -f -t forward_step -i \$< -c \${XAIFSCHEMAROOT}/schema/examples/inlinable_intrinsics.xaif -o \$@ -I -r
3078    
3079    # XAIF' -> WHIRL'
3080    ad_input_code_sf.w2f.pre.xb.x2w.B : ad_input_code_sf.w2f.pre.xb.xaif xaif2whirl
3081            ./xaif2whirl --debug 1 --structured ad_input_code_sf.w2f.pre.B \$<
3082    
3083    # WHIRL' -> F'
3084    ad_input_code_sf.w2f.pre.xb.x2w.w2f.f$FS90: ad_input_code_sf.w2f.pre.xb.x2w.B whirl2f whirl2f_be
3085            ./whirl2f -FLIST:ftn_file=\$@ -openad \$<
3086    
3087    # insert template directives
3088    ad_input_code_sf.w2f.pre.xb.x2w.w2f.td.f$FS90: ad_input_code_sf.w2f.pre.xb.x2w.w2f.f$FS90 ../OAD_support/insertTemplateDir.bash
3089            ../OAD_support/insertTemplateDir.bash \$< \$@
3090    
3091    PPEXTRAS=\$(wildcard ../OAD_support/ad_template.*.F) ../OAD_support/ad_inline.F
3092    # postprocess F'
3093    ad_input_code_sf.w2f.pre.xb.x2w.w2f.td.pp.f$FS90: ad_input_code_sf.w2f.pre.xb.x2w.w2f.td.f$FS90 multi-pp.pl \$(PPEXTRAS:.F=.f)
3094            perl multi-pp.pl -inline=../OAD_support/ad_inline.f \$<
3095            # the postprocessor still gets the name wrong
3096            cat \$<.pp | sed 's/RETURN//' > \$@
3097    
3098    # extract all transformed modules
3099    all_mods.xb.x2w.w2f.pp.f$FS90: ad_input_code_sf.w2f.pre.xb.x2w.w2f.td.pp.f$FS90
3100            cat \$< | sed -n '/MODULE /,/END MODULE/p' > \$@
3101    
3102    # remove the transformed globals module from the
3103    # transformed ad_input_code file
3104    # and remove for now the duplicate variables
3105    # and fix 2 data statements
3106    ad_input_code.w2f.pre.xb.x2w.w2f.td.pp.f$FS90: ad_input_code_sf.w2f.pre.xb.x2w.w2f.td.pp.f$FS90
3107            cat \$< | sed '/MODULE /,/END MODULE/d' | sed '/^      INTEGER(w2f__i4) DOLOOP_UB/d' > \$@
3108    
3109    # setup some links
3110    %.xsd:
3111            \$(LN) \${XAIFSCHEMAROOT}/schema/\$@ .
3112    
3113    mfef90:
3114            \$(LN) \${OPEN64ROOT}/crayf90/sgi/mfef90 .
3115    
3116    # link the support files:
3117    \$(OPENAD_SUPPORT_F90_SRC_FILES) \$(OPENAD_SUPPORT_C_SRC_FILES):
3118            \$(LN) ../OAD_support/\$@ .
3119    
3120    whirl2xaif xaif2whirl:
3121            \$(LN) \${OPENADFORTTK}/bin/\$@ .
3122    
3123    %.pl:
3124            \$(LN) \${OPENADFORTTK}/bin/\$@ .
3125    
3126    preProcess.py:
3127            \$(LN) \${OPENADFORTTK_BASE}/tools/SourceProcessing/\$@ .
3128    
3129    whirl2f whirl2f_be:
3130            \$(LN) \${OPEN64ROOT}/whirl2f/\$@ .
3131    
3132    oadDriver:
3133            \$(LN) \${XAIFBOOSTERROOT}/xaifBooster/algorithms/BasicBlockPreaccumulationReverse/driver/oadDriver \$@
3134    
3135    # ============ end OpenAD specific section ==============
3136    
3137  EOF  EOF
3138    
3139    fi
3140    
3141    #=========================================
3142    
3143  if test "x$EXEHOOK" != x ; then  if test "x$EXEHOOK" != x ; then
3144      printf "\nexehook:\n\t%s\n" $EXEHOOK >> $MAKEFILE      printf "\nexehook:\n\t%s\n" $EXEHOOK >> $MAKEFILE
3145  fi  fi

Legend:
Removed from v.1.168  
changed lines
  Added in v.1.186

  ViewVC Help
Powered by ViewVC 1.1.22