#!/bin/bash
gfortran -c -cpp -Wuninitialized ../srcF/sfx_phys_const.f90
gfortran -c -cpp -Wuninitialized ../srcF/sfx_esm_param.f90
gfortran -c -cpp -Wuninitialized ../srcF/sfx_sheba_param.f90
gfortran -c -cpp -Wuninitialized ../srcF/sfx_most_param.f90
gfortran -c -cpp -Wuninitialized ../srcF/sfx_log_param.f90

gfortran -c -cpp -Wuninitialized ../srcF/sfx_data.f90
gfortran -c -cpp -Wuninitialized ../srcF/sfx_surface.f90

gfortran -c -cpp -Wuninitialized ../srcF/sfx_esm.f90
gfortran -c -cpp -Wuninitialized ../srcF/sfx_sheba.f90
gfortran -c -cpp -Wuninitialized ../srcF/sfx_most.f90
gfortran -c -cpp -Wuninitialized ../srcF/sfx_log.f90

gfortran -c -cpp -Wuninitialized pbldia_new_sfx.f90

gfortran -c -cpp -Wuninitialized diag_sfc_simple.f90

gfortran -o a.exe sfx_phys_const.o sfx_sheba_param.o sfx_esm_param.o sfx_most_param.o sfx_log_param.o sfx_data.o sfx_surface.o sfx_sheba.o sfx_esm.o sfx_most.o sfx_log.o pbldia_new_sfx.o diag_sfc_simple.o
rm *.o *.mod
