#!/bin/bash INCDIR="-I/opt/tool/include" LIBDIR="-L/opt/tool/lib" LIBS="-lnetcdf -lnetcdff -lhdf5 -lhdf5_fortran" FFLAGS="-O3 -fbounds-check -g -fbacktrace -ffree-line-length-none -cpp -ffpe-summary=none" CFLAGS="-O3 -fbounds-check" gfortran read_PMR.f90 -c $INCDIR $LIBDIR $FFLAGS gcc read_PMR_sub.c -c $INCDIR $LIBDIR $CFLAGS gfortran read_PMR.o read_PMR_sub.o -o read_PMR.exe $INCDIR $LIBDIR $LIBS