--- MITgcm/tools/genmake2 2004/07/31 13:01:12 1.94 +++ MITgcm/tools/genmake2 2004/08/09 02:28:51 1.96 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.94 2004/07/31 13:01:12 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.96 2004/08/09 02:28:51 edhill Exp $ # # Makefile generator for MITgcm UV codes # created by cnh 03/98 @@ -520,8 +520,8 @@ Include MPI header files and link to MPI libraries -mpi=PATH | --mpi=PATH Include MPI header files and link to MPI libraries using MPI_ROOT - set to PATH. i.e. Include files from $PATH/include, link to libraries - from $PATH/lib and use binaries from $PATH/bin. + set to PATH. i.e. Include files from \$PATH/include, link to libraries + from \$PATH/lib and use binaries from \$PATH/bin. -bash NAME Explicitly specify the Bourne or BASH shell to use @@ -689,9 +689,12 @@ IF (iret .NE. NF_NOERR) write(*,*) NF_STRERROR(iret) end EOF - #echo "$CPP $DEFINES $INCLUDES" + #echo "$CPP $DEFINES $INCLUDES genmake_tnc.for > genmake_tnc.f" + #echo "$FC $FFLAGS $FOPTIM -c genmake_tnc.f" + #echo "$LINK -o genmake_tnc.o $LIBS" $CPP $DEFINES $INCLUDES genmake_tnc.for > genmake_tnc.f 2>/dev/null \ - && $FC $FFLAGS $FOPTIM -o genmake_tnc genmake_tnc.f $LIBS >> genmake_tnc.log 2>&1 + && $FC $FFLAGS $FOPTIM -c genmake_tnc.f \ + && $LINK -o genmake_tnc genmake_tnc.o $LIBS >> genmake_tnc.log 2>&1 RET_COMPILE=$? test -x ./genmake_tnc && ./genmake_tnc >> genmake_tnc.log 2>&1 RETVAL=$?