325 |
|
|
326 |
#================================================================ |
#================================================================ |
327 |
# look for possible C compilers |
# look for possible C compilers |
328 |
tmp="$MITGCM_CC $CC gcc c89 cc c99 mpicc" |
tmp="$MITGCM_CC $CC gcc c89 cc c99 mpicc icc" |
329 |
p_CC= |
p_CC= |
330 |
for c in $tmp ; do |
for c in $tmp ; do |
331 |
rm -f ./genmake_hello.c ./genmake_hello |
rm -f ./genmake_hello.c ./genmake_hello |
364 |
|
|
365 |
#================================================================ |
#================================================================ |
366 |
# look for possible FORTRAN compilers |
# look for possible FORTRAN compilers |
367 |
tmp="$MITGCM_FC $FC efc g77 f77 pgf77 pgf95 ifc f90 f95 mpif77 mpf77 mpxlf95 gfortran" |
tmp="$MITGCM_FC $FC efc g77 f77 pgf77 pgf95 ifc ifort f90 f95 mpif77 mpf77 mpxlf95 gfortran g95" |
368 |
p_FC= |
p_FC= |
369 |
for c in $tmp ; do |
for c in $tmp ; do |
370 |
rm -f ./hello.f ./hello |
rm -f ./hello.f ./hello |
2207 |
perl -i -pe 's/MPI_DISPLACEMENT_CURRENT=-1_8/MPI_DISPLACEMENT_CURRENT=-1/g' mpi_headers/mpif.h |
perl -i -pe 's/MPI_DISPLACEMENT_CURRENT=-1_8/MPI_DISPLACEMENT_CURRENT=-1/g' mpi_headers/mpif.h |
2208 |
else |
else |
2209 |
echo " We cannot create a copy of mpif.h!" |
echo " We cannot create a copy of mpif.h!" |
2210 |
exit -1 |
# exit -1 |
2211 |
fi |
fi |
2212 |
fi |
fi |
2213 |
|
|
2468 |
@\$(EXECUTABLE) > \$@ |
@\$(EXECUTABLE) > \$@ |
2469 |
|
|
2470 |
clean: |
clean: |
2471 |
-rm -rf *.o *.$FS *.p *.$FS90 *.mod ${RMFILES} work.{pc,pcl} *.template |
-rm -rf *.p *.$FS90 *.mod ${RMFILES} work.{pc,pcl} *.template |
2472 |
|
-rm -rf *.o |
2473 |
|
-rm -rf *.$FS |
2474 |
Clean: |
Clean: |
2475 |
@make clean |
@make clean |
2476 |
@make cleanlinks |
@make cleanlinks |