/[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.52 by adcroft, Thu Dec 4 15:00:01 2003 UTC revision 1.69 by edhill, Wed Feb 25 19:12:10 2004 UTC
# Line 78  find_possible_configs()  { Line 78  find_possible_configs()  {
78      tmp1=`uname`"_"`uname -m`      tmp1=`uname`"_"`uname -m`
79      tmp2=`echo $tmp1 | sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`      tmp2=`echo $tmp1 | sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
80      tmp3=`echo $tmp2 | sed -e 's/power macintosh/ppc/'`      tmp3=`echo $tmp2 | sed -e 's/power macintosh/ppc/'`
81      PLATFORM=`echo $tmp3 | sed -e 's/i[3-6]86/ia32/' | sed -e 's/athlon/ia32/'`      tmp1=`echo $tmp3 | sed -e 's|x86_64|amd64|'`
82        tmp2=`echo $tmp1 | sed -e 's/i[3-6]86/ia32/' | sed -e 's/athlon/ia32/'`
83        PLATFORM=$tmp2
84      OFLIST=`(cd $ROOTDIR/tools/build_options; ls | grep "^$PLATFORM")`      OFLIST=`(cd $ROOTDIR/tools/build_options; ls | grep "^$PLATFORM")`
85      echo "  The platform appears to be:  $PLATFORM"      echo "  The platform appears to be:  $PLATFORM"
86            
# Line 98  find_possible_configs()  { Line 100  find_possible_configs()  {
100          CPP="cpp -traditional -P"          CPP="cpp -traditional -P"
101      fi      fi
102    
103      # makedepend is not always available      #  The "original" makedepend is part of the Imake system that is
104        #  most often distributed with XFree86 or with an XFree86 source
105        #  package.  As a result, many machines (eg. generic Linux) do not
106        #  have a system-default "makedepend" available.  For those
107        #  systems, we have two fall-back options:
108        #
109        #    1) a makedepend implementation shipped with the cyrus-imapd
110        #       package:  ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
111        #
112        #    2) a known-buggy xmakedpend shell script
113        #
114        #  So the choices are, in order:
115        #
116        #    1) use the user-specified program
117        #    2) use a system-wide default
118        #    3) locally build and use the cyrus implementation
119        #    4) fall back to the buggy local xmakedpend script
120        #
121      if test "x${MAKEDEPEND}" = x ; then      if test "x${MAKEDEPEND}" = x ; then
122        which makedepend >& /dev/null        which makedepend >& /dev/null
123        RETVAL=$?        RETVAL=$?
124        if test "x${RETVAL}" = x1 ; then        if test ! "x${RETVAL}" = x0 ; then
125           echo "    makedepend was not found. Using xmakedpend instead."           echo "    a system-default makedepend was not found."
126           MAKEDEPEND='$(TOOLSDIR)/xmakedepend'  
127             #  Try to build the cyrus impl
128             rm -f ./genmake_cy_md
129             (
130                 cd $ROOTDIR/tools/cyrus-imapd-makedepend  \
131                     &&  ./configure > /dev/null 2>&1  \
132                     &&  make > /dev/null 2>&1  \
133                     &&  ./makedepend ifparser.c > /dev/null 2>&1  \
134                     &&  echo "true"
135             ) > ./genmake_cy_md
136             grep true ./genmake_cy_md > /dev/null 2>&1
137             RETVAL=$?
138             if test "x$RETVAL" = x0 ; then
139                 MAKEDEPEND='$(TOOLSDIR)/cyrus-imapd-makedepend/makedepend'
140             else
141                 MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
142             fi
143             rm -f ./genmake_cy_md
144        fi        fi
145      fi      fi
146    
# Line 143  EOF Line 179  EOF
179          echo "   "$p_FC          echo "   "$p_FC
180          if test "x$FC" = x ; then          if test "x$FC" = x ; then
181              FC=`echo $p_FC | $AWK '{print $1}'`              FC=`echo $p_FC | $AWK '{print $1}'`
182                echo "  Setting FORTRAN compiler to: "$FC
183          fi          fi
184      fi      fi
185    
186      for i in $p_FC ; do      if test "x$OPTFILE" = x ; then
187          p_OF=$ROOTDIR"/tools/build_options/"$PLATFORM"_"$i          OPTFILE=$ROOTDIR"/tools/build_options/"$PLATFORM"_"$FC
188          if test -r $p_OF ; then          if test ! -r $OPTFILE ; then
189              OPTFILE=$p_OF               echo "  I looked for the file "$OPTFILE" but did not find it"
190              echo "  The options file:  $p_OF"          fi
191              echo "    appears to match so we'll use it."      fi
192              break  #    echo "  The options file:  $p_OF"
193          fi  #    echo "    appears to match so we'll use it."
194      done  #   for i in $p_FC ; do
195    #p_OF=$ROOTDIR"/tools/build_options/"$PLATFORM"_"$i
196    #if test -r $p_OF ; then
197    #    OPTFILE=$p_OF
198    #    echo "  The options file:  $p_OF"
199    #    echo "    appears to match so we'll use it."
200    #    break
201    #fi
202    #   done
203      if test "x$OPTFILE" = x ; then      if test "x$OPTFILE" = x ; then
204          cat 1>&2 <<EOF          cat 1>&2 <<EOF
205    
# Line 251  Usage: "$0" [OPTIONS] Line 296  Usage: "$0" [OPTIONS]
296        --makefile=NAME | -mf=NAME        --makefile=NAME | -mf=NAME
297            Call the makefile "NAME".  The default is "Makefile".            Call the makefile "NAME".  The default is "Makefile".
298    
299        -makedepend NAME | -md NAME
300          --makedepend=NAME | -md=NAME
301              Use "NAME" for the MAKEDEPEND program.
302    
303      -rootdir NAME | --rootdir NAME | -rd NAME | --rd NAME      -rootdir NAME | --rootdir NAME | -rd NAME | --rd NAME
304        -rootdir=NAME | --rootdir=NAME | -rd=NAME | --rd=NAME        -rootdir=NAME | --rootdir=NAME | -rd=NAME | --rd=NAME
305            Specify the location of the MITgcm ROOTDIR as "NAME".            Specify the location of the MITgcm ROOTDIR as "NAME".
# Line 292  Usage: "$0" [OPTIONS] Line 341  Usage: "$0" [OPTIONS]
341            *only* works if it is supported by the OPTFILE that            *only* works if it is supported by the OPTFILE that
342            is being used.            is being used.
343    
344        -mpi | --mpi
345              Include MPI header files and link to MPI libraries
346        -mpi=PATH | --mpi=PATH
347              Include MPI header files and link to MPI libraries using MPI_ROOT
348              set to PATH. i.e. Include files from $PATH/include, link to libraries
349              from $PATH/lib and use binaries from $PATH/bin.
350    
351    While it is most often a single word, the "NAME" variables specified    While it is most often a single word, the "NAME" variables specified
352    above can in many cases be a space-delimited string such as:    above can in many cases be a space-delimited string such as:
353    
# Line 435  EOF Line 491  EOF
491  }  }
492    
493    
494    check_netcdf_libs()  {
495        cat <<EOF > genmake_tnc.F
496          program fgennc
497    #include "netcdf.inc"
498          integer iret, ncid, xid
499          iret = nf_create('genmake_tnc.nc', NF_CLOBBER, ncid)
500          IF (iret .NE. NF_NOERR) write(*,*) NF_STRERROR(iret)
501          iret = nf_def_dim(ncid, 'X', 11, xid)
502          IF (iret .NE. NF_NOERR) write(*,*) NF_STRERROR(iret)
503          iret = nf_close(ncid)
504          IF (iret .NE. NF_NOERR) write(*,*) NF_STRERROR(iret)
505          end
506    EOF
507        $CPP genmake_tnc.F > genmake_tnc.f  \
508            &&  $FC $FFLAGS $FOPTIM -o genmake_tnc genmake_tnc.f $LIBS >> genmake_tnc.log 2>&1
509        RET_COMPILE=$?
510        test -x ./genmake_tnc  &&  ./genmake_tnc >> genmake_tnc.log 2>&1
511        RETVAL=$?
512        if test "x$RET_COMPILE" = x0 -a "x$RETVAL" = x0 ; then
513            HAVE_NETCDF=t
514        else
515            # try again with "-lnetcdf" added to the libs
516            $CPP genmake_tnc.F > genmake_tnc.f  \
517                &&  $FC $FFLAGS $FOPTIM -o genmake_tnc genmake_tnc.f \
518                $LIBS -lnetcdf >> genmake_tnc_2.log 2>&1
519            RET_COMPILE=$?
520            test -x ./genmake_tnc  &&  ./genmake_tnc >> genmake_tnc.log 2>&1
521            RETVAL=$?
522            if test "x$RET_COMPILE" = x0 -a "x$RETVAL" = x0 ; then
523                LIBS="$LIBS -lnetcdf"
524                HAVE_NETCDF=t
525            else
526                cat genmake_tnc.log >> genmake_warnings
527            fi
528        fi
529        rm -f genmake_tnc*
530    }
531    
532    
533    
534    ###############################################################################
535    #   Sequential part of script starts here
536    ###############################################################################
537    
538  #  Set defaults here  #  Set defaults here
539  COMMANDL="$0 $@"  COMMANDL="$0 $@"
540    
# Line 443  LN= Line 543  LN=
543  S64=  S64=
544  KPP=  KPP=
545  FC=  FC=
546    CPP=
547  LINK=  LINK=
 # DEFINES="-DWORDLENGTH=4"  
548  DEFINES=  DEFINES=
549  PACKAGES=  PACKAGES=
550  ENABLE=  ENABLE=
# Line 465  LIBS= Line 565  LIBS=
565  KPPFILES=  KPPFILES=
566  NOOPTFILES=  NOOPTFILES=
567  NOOPTFLAGS=  NOOPTFLAGS=
568    MPI=
569    MPIPATH=
570    
571  # DEFINES checked by test compilation  # DEFINES checked by test compilation
572  HAVE_SYSTEM=  HAVE_SYSTEM=
573  HAVE_FDATE=  HAVE_FDATE=
574  FC_NAMEMANGLE=  FC_NAMEMANGLE=
575  HAVE_CLOC=  HAVE_CLOC=
576    HAVE_NETCDF=
577    
578  MODS=  MODS=
579  TOOLSDIR=  TOOLSDIR=
580  SOURCEDIRS=  SOURCEDIRS=
581  INCLUDEDIRS=  INCLUDEDIRS=
582  STANDARDDIRS=  STANDARDDIRS="USE_THE_DEFAULT"
583    
584  PWD=`pwd`  PWD=`pwd`
585  MAKE=make  MAKE=make
# Line 510  TAMC_EXTRA= Line 613  TAMC_EXTRA=
613    
614  #  The following state can be set directly by command-line switches  #  The following state can be set directly by command-line switches
615  gm_s1="OPTFILE PDEPEND PDEFAULT MAKEFILE PLATFORM ROOTDIR MODS DISABLE ENABLE"  gm_s1="OPTFILE PDEPEND PDEFAULT MAKEFILE PLATFORM ROOTDIR MODS DISABLE ENABLE"
616  gm_s2="FC IEEE MPI JAM DUMPSTATE STANDARDDIRS"  gm_s2="FC CPP IEEE MPI JAM DUMPSTATE STANDARDDIRS"
617    
618  #  The following state is not directly set by command-line switches  #  The following state is not directly set by command-line switches
619  gm_s3="LN S64 KPP LINK PACKAGES MAKEDEPEND PDEPEND PDEFAULT INCLUDES FFLAGS FOPTIM "  gm_s3="LN S64 KPP LINK PACKAGES MAKEDEPEND PDEPEND PDEFAULT INCLUDES FFLAGS FOPTIM "
# Line 611  for ac_option ; do Line 714  for ac_option ; do
714          -make=* | --make=* | -m=* | --m=*)          -make=* | --make=* | -m=* | --m=*)
715              MAKE=$ac_optarg ;;              MAKE=$ac_optarg ;;
716                    
717            -makedepend | --makedepend | -md | --md)
718                ac_prev=MAKEDEPEND ;;
719            -makedepend=* | --makedepend=* | -md=* | --md=*)
720                MAKEDEPEND=$ac_optarg ;;
721            
722          -makefile | --makefile | -ma | --ma)          -makefile | --makefile | -ma | --ma)
723              ac_prev=MAKEFILE ;;              ac_prev=MAKEFILE ;;
724          -makefile=* | --makefile=* | -ma=* | --ma=*)          -makefile=* | --makefile=* | -ma=* | --ma=*)
# Line 662  for ac_option ; do Line 770  for ac_option ; do
770              IEEE=true ;;              IEEE=true ;;
771          -noieee | --noieee)          -noieee | --noieee)
772              IEEE= ;;              IEEE= ;;
773    
774            -mpi | --mpi)
775                MPI=true ;;
776            -mpi=* | --mpi=*)
777                MPIPATH=$ac_optarg
778                MPI=true ;;
779                    
780  #       -jam | --jam)  #       -jam | --jam)
781  #           JAM=1 ;;  #           JAM=1 ;;
# Line 803  fi Line 917  fi
917  if test "x$LINK" = x ; then  if test "x$LINK" = x ; then
918      LINK=$FC      LINK=$FC
919  fi  fi
 if test "x$CPP" = x ; then  
     CPP="cpp"  
 fi  
920  if test "x$MAKE" = x ; then  if test "x$MAKE" = x ; then
921      MAKE="make"      MAKE="make"
922  fi  fi
923    if test "x$CPP" = x ; then
924        CPP=cpp
925    fi
926    #EH3 === UGLY ===
927    #  The following an ugly little hack to check for $CPP in /lib/ and it
928    #  should eventually be replaced with a more general function that
929    #  searches a combo of the user's path and a list of "usual suspects"
930    #  to find the correct location for binaries such as $CPP.
931    for i in " " "/lib/" ; do
932        echo "#define A a" | $i$CPP > test_cpp 2>&1 && CPP=$i$CPP
933    done
934    #EH3 === UGLY ===
935  echo "#define A a" | $CPP > test_cpp 2>&1  echo "#define A a" | $CPP > test_cpp 2>&1
936  RETVAL=$?  RETVAL=$?
937  if test "x$RETVAL" != x0 ; then  if test "x$RETVAL" != x0 ; then
# Line 845  EOF Line 968  EOF
968  fi  fi
969  rm -f genmake_test_ln genmake_tlink  rm -f genmake_test_ln genmake_tlink
970    
971    if test ! "x$MPI" = x ; then
972          echo "  Turning on MPI cpp macros"
973          DEFINES="$DEFINES -DALLOW_USE_MPI -DALWAYS_USE_MPI"
974    fi
975    
976  printf "\n===  Checking system libraries  ===\n"  printf "\n===  Checking system libraries  ===\n"
977  echo -n "  Do we have the system() command using $FC...  "  echo -n "  Do we have the system() command using $FC...  "
# Line 895  else Line 1022  else
1022  fi  fi
1023  rm -f genmake_t*  rm -f genmake_t*
1024    
1025    echo -n "  Can we create NetCDF-enabled binaries...  "
1026    check_netcdf_libs
1027    if test "x$HAVE_NETCDF" != x ; then
1028        echo "yes"
1029    else
1030        echo "no"
1031    fi
1032    
1033    
1034  printf "\n===  Setting defaults  ===\n"  printf "\n===  Setting defaults  ===\n"
1035  echo -n "  Adding MODS directories:  "  echo -n "  Adding MODS directories:  "
# Line 934  if test "x${TOOLSDIR}" = x ; then Line 1069  if test "x${TOOLSDIR}" = x ; then
1069      TOOLSDIR="$ROOTDIR/tools"      TOOLSDIR="$ROOTDIR/tools"
1070  fi  fi
1071  if test ! -d ${TOOLSDIR} ; then  if test ! -d ${TOOLSDIR} ; then
1072      echo "Error: the specified $TOOLSDIR (\"$TOOLSDIR\") does not exist!"      echo "Error: the specified TOOLSDIR (\"$TOOLSDIR\") does not exist!"
1073      exit 1      exit 1
1074  fi  fi
1075  if test "x$S64" = x ; then  if test "x$S64" = x ; then
# Line 955  if test -r $ROOTDIR"/eesupp/src/Makefile Line 1090  if test -r $ROOTDIR"/eesupp/src/Makefile
1090          rm -f make_eesupp.errors          rm -f make_eesupp.errors
1091      else      else
1092          echo "Error: problem encountered while building source files in eesupp:"          echo "Error: problem encountered while building source files in eesupp:"
1093          cat make_eesupp.errors          cat make_eesupp.errors 1>&2
1094          exit 1          exit 1
1095      fi      fi
1096  fi  fi
1097    
1098    #same for exch2
1099    if test -r $ROOTDIR"/pkg/exch2/Makefile" ; then
1100        echo "  Making source files in exch2 from  templates"
1101        ( cd $ROOTDIR"/pkg/exch2/" && $MAKE ) > make_exch2.errors 2>&1
1102        RETVAL=$?
1103        if test "x${RETVAL}" = x0 ; then
1104            rm -f make_exch2.errors
1105        else
1106            echo "Error: problem encountered while building source files in exch2:"
1107            cat make_exch2.errors 1>&2
1108            exit 1
1109        fi
1110    fi
1111    
1112  printf "\n===  Determining package settings  ===\n"  printf "\n===  Determining package settings  ===\n"
1113  if  test "x${PDEPEND}" = x ; then  if  test "x${PDEPEND}" = x ; then
1114      tmp=$ROOTDIR"/pkg/pkg_depend"      tmp=$ROOTDIR"/pkg/pkg_depend"
# Line 1143  for i in $PACKAGES ; do Line 1292  for i in $PACKAGES ; do
1292      fi      fi
1293  done  done
1294    
1295    #  Build MNC templates and check for ability to build and use NetCDF
1296    echo $PACKAGES | grep ' mnc ' > /dev/null 2>&1
1297    RETVAL=$?
1298    if test "x$RETVAL" = x0 ; then
1299        ( cd $ROOTDIR"/pkg/mnc" && $MAKE templates ) > make_mnc.errors 2>&1
1300        RETVAL=$?
1301        if test "x${RETVAL}" = x0 ; then
1302            rm -f make_mnc.errors
1303        else
1304            echo "Error: problem encountered while building source files in pkg/mnc:"
1305            cat make_mnc.errors 1>&2
1306            exit 1
1307        fi
1308        if test "x$HAVE_NETCDF" != xt ; then
1309            cat <<EOF
1310    
1311    WARNING: the "mnc" package has been enabled but tests failed to
1312      compile and/or execute NetCDF applications.  Please check that:
1313    
1314      1) NetCDF is installed for your compiler and
1315      2) the LIBS variable (within the 'optfile") specifies the correct
1316           NetCDF library to link against.
1317      
1318    EOF
1319        fi
1320    fi
1321    
1322  # Create a list of #define and #undef to enable/disable packages  # Create a list of #define and #undef to enable/disable packages
1323  PACKAGES_DOT_H=PACKAGES_CONFIG.h  PACKAGES_DOT_H=PACKAGES_CONFIG.h
# Line 1177  for i in $PACKAGES ; do Line 1352  for i in $PACKAGES ; do
1352  #EH3  WARNING :  This is an UGLY HACK that needs to be removed!!!  #EH3  WARNING :  This is an UGLY HACK that needs to be removed!!!
1353      case $i in      case $i in
1354          aim_v23)          aim_v23)
             DEFINES="$DEFINES -DALLOW_AIM"  
1355              ENABLED_PACKAGES="$ENABLED_PACKAGES -DALLOW_AIM"              ENABLED_PACKAGES="$ENABLED_PACKAGES -DALLOW_AIM"
1356              echo "Warning: ALLOW_AIM is set to enable aim_v23. This is REALLY ugly Jean-Michel :-)"              echo "Warning: ALLOW_AIM is set to enable aim_v23."
1357              ;;              ;;
1358      esac      esac
1359  #EH3  WARNING :  This is an UGLY HACK that needs to be removed!!!  #EH3  WARNING :  This is an UGLY HACK that needs to be removed!!!
# Line 1188  done Line 1362  done
1362    
1363  echo "  Adding STANDARDDIRS"  echo "  Adding STANDARDDIRS"
1364  BUILDDIR=${BUILDDIR:-.}  BUILDDIR=${BUILDDIR:-.}
1365  if test "x$STANDARDDIRS" = x ; then  if test "x$STANDARDDIRS" = xUSE_THE_DEFAULT ; then
1366      STANDARDDIRS="eesupp model"      STANDARDDIRS="eesupp model"
1367  fi  fi
1368  for d in $STANDARDDIRS ; do  if test "x$STANDARDDIRS" != x ; then
1369      adr="$ROOTDIR/$d/src"      for d in $STANDARDDIRS ; do
1370      if test ! -d $adr ; then          adr="$ROOTDIR/$d/src"
1371          echo "Error:  directory $adr not found -- please check that ROOTDIR=\"$ROOTDIR\""          if test ! -d $adr ; then
1372          echo "  is correct and that you correctly specified the STANDARDDIRS option"              echo "Error:  directory $adr not found -- please check that ROOTDIR=\"$ROOTDIR\""
1373          exit 1              echo "  is correct and that you correctly specified the STANDARDDIRS option"
1374      else              exit 1
1375          SOURCEDIRS="$SOURCEDIRS $adr"          else
1376      fi              SOURCEDIRS="$SOURCEDIRS $adr"
1377      adr="$ROOTDIR/$d/inc"          fi
1378      if test ! -d $adr ; then          adr="$ROOTDIR/$d/inc"
1379          echo "Error:  directory $adr not found -- please check that ROOTDIR=\"$ROOTDIR\""          if test ! -d $adr ; then
1380          echo "  is correct and that you correctly specified the STANDARDDIRS option"              echo "Error:  directory $adr not found -- please check that ROOTDIR=\"$ROOTDIR\""
1381          exit 1              echo "  is correct and that you correctly specified the STANDARDDIRS option"
1382      else              exit 1
1383          INCLUDEDIRS="$INCLUDEDIRS $adr"          else
1384      fi              INCLUDEDIRS="$INCLUDEDIRS $adr"
1385  done          fi
1386        done
1387    fi
1388    
1389  echo "  Searching for *OPTIONS.h files in order to warn about the presence"  echo "  Searching for *OPTIONS.h files in order to warn about the presence"
1390  echo "    of \"#define \"-type statements that are no longer allowed:"  echo "    of \"#define \"-type statements that are no longer allowed:"
# Line 1218  spaths=". $INCLUDEDIRS" Line 1394  spaths=". $INCLUDEDIRS"
1394  names=`ls -1 "$ROOTDIR/pkg"`  names=`ls -1 "$ROOTDIR/pkg"`
1395  for i in $spaths ; do  for i in $spaths ; do
1396      try="$i/CPP_OPTIONS.h"      try="$i/CPP_OPTIONS.h"
1397      if test -f $try -a -r $try -a "x$CPP_OPTIONS" == x ; then      if test -f $try -a -r $try -a "x$CPP_OPTIONS" = x ; then
1398          echo "    found CPP_OPTIONS=\"$try\""          echo "    found CPP_OPTIONS=\"$try\""
1399          CPP_OPTIONS="$try"          CPP_OPTIONS="$try"
1400          # New safety test: make sure packages are not mentioned in CPP_OPTIONS.h          # New safety test: make sure packages are not mentioned in CPP_OPTIONS.h
# Line 1227  for i in $spaths ; do Line 1403  for i in $spaths ; do
1403          done          done
1404      fi      fi
1405      try="$i/CPP_EEOPTIONS.h"      try="$i/CPP_EEOPTIONS.h"
1406      if test -f $try -a -r $try -a "x$CPP_EEOPTIONS" == x ; then      if test -f $try -a -r $try -a "x$CPP_EEOPTIONS" = x ; then
1407          echo "    found CPP_EEOPTIONS=\"$try\""          echo "    found CPP_EEOPTIONS=\"$try\""
1408          # New safety test: make sure MPI is not determined by CPP_EEOPTIONS.h          # New safety test: make sure MPI is not determined by CPP_EEOPTIONS.h
1409  #**** not yet enabled ****  #**** not yet enabled ****
# Line 1254  for i in $SOURCEDIRS ; do Line 1430  for i in $SOURCEDIRS ; do
1430      done      done
1431  done  done
1432    
1433    
1434  echo  echo
1435  echo "===  Creating the Makefile  ==="  echo "===  Creating the Makefile  ==="
1436  echo "  setting INCLUDES"  echo "  setting INCLUDES"
# Line 1353  EXE_FTL=$EXECUTABLE"_ftl" Line 1530  EXE_FTL=$EXECUTABLE"_ftl"
1530  EXE_SVD=$EXECUTABLE"_svd"  EXE_SVD=$EXECUTABLE"_svd"
1531    
1532  cat >>$MAKEFILE <<EOF  cat >>$MAKEFILE <<EOF
1533    #
1534    # OPTFILE="$OPTFILE"
1535  #  #
1536  # BUILDDIR     : Directory where object files are written  # BUILDDIR     : Directory where object files are written
1537  # SOURCEDIRS   : Directories containing the source (.F) files  # SOURCEDIRS   : Directories containing the source (.F) files
# Line 1671  $TOOLSDIR/convert_cpp_cmd2defines "Warni Line 1850  $TOOLSDIR/convert_cpp_cmd2defines "Warni
1850  if test ! -f $PACKAGES_DOT_H ; then  if test ! -f $PACKAGES_DOT_H ; then
1851      mv -f $PACKAGES_DOT_H".tmp" $PACKAGES_DOT_H      mv -f $PACKAGES_DOT_H".tmp" $PACKAGES_DOT_H
1852  else  else
1853      cmp $PACKAGES_DOT_H".tmp" $PACKAGES_DOT_H      cmp $PACKAGES_DOT_H".tmp" $PACKAGES_DOT_H > /dev/null 2>&1
1854      RETVAL=$?      RETVAL=$?
1855      if test "x$RETVAL" = x0 ; then      if test "x$RETVAL" = x0 ; then
1856          rm -f $PACKAGES_DOT_H".tmp"          rm -f $PACKAGES_DOT_H".tmp"

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.69

  ViewVC Help
Powered by ViewVC 1.1.22