--- MITgcm/tools/genmake 2000/03/24 18:29:29 1.14 +++ MITgcm/tools/genmake 2000/03/24 19:28:46 1.16 @@ -1,6 +1,6 @@ #!/bin/csh -f # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/Attic/genmake,v 1.14 2000/03/24 18:29:29 adcroft Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/Attic/genmake,v 1.16 2000/03/24 19:28:46 adcroft Exp $ # # Makefile generator for MITgcm UV codes # created by cnh 03/98 @@ -193,8 +193,13 @@ set LINK = ( 'g77' ) breaksw case Linux+pgi+mpi: - set LIBS = ( '-L/usr/local/lib/LINUX/ch_p4/ -lfmpich -lmpich' ) - set INCLUDES = ( '-I/usr/local/include' ) + if ($?include_jam_libs) then + set INCLUDES = ( '-I/usr/local//mpich-cnh-install/include' ) + set LIBS = ( '-L/usr/local/mpich-cnh-install/lib/LINUX/ch_p4/ -lfmpich -lmpich' ) + else + set INCLUDES = ( '-I/usr/local/include' ) + set LIBS = ( '-L/usr/local/lib/LINUX/ch_p4/ -lfmpich -lmpich' ) + endif case Linux+pgi: set LN = ( '/bin/ln -fs' ) set CPP = ( '/lib/cpp -traditional -P' ) @@ -312,6 +317,7 @@ cat >> ${mfile} <