makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. MPI = YES
  2. include ./make.inc
  3. SHELL = /bin/bash
  4. VPATH = .:TMP
  5. PROGS = EnKF
  6. all: $(PROGS)
  7. ENKF_SRC_F90 = \
  8. qmpi.F90\
  9. m_parameters.F90\
  10. m_Generate_element_Si.F90\
  11. mod_analysisfields.F90\
  12. m_confmap.F90\
  13. mod_measurement.F90\
  14. m_oldtonew.F90\
  15. m_random.F90\
  16. m_spherdist.F90\
  17. distribute.F90\
  18. m_bilincoeff.F90\
  19. m_get_mod_fld.F90\
  20. m_get_mod_grid.F90\
  21. m_get_mod_xyz.F90\
  22. m_get_mod_nrens.F90\
  23. m_io_mod_fld.F90\
  24. m_read_icemod.F90\
  25. m_insitu.F90\
  26. m_local_analysis.F90\
  27. m_obs.F90\
  28. m_parse_blkdat.F90\
  29. m_pivotp.F90\
  30. m_point2nc.F90\
  31. m_prep_4_EnKF.F90\
  32. m_put_mod_fld.F90\
  33. m_set_random_seed2.F90\
  34. m_uobs.F90\
  35. nfw.F90\
  36. EnKF.F90
  37. ENKF_SRC_F77 = mod_raw_io.F
  38. ENKF_SRC_C = order.c
  39. ENKF_OBJ = $(ENKF_SRC_C:.c=.o) $(ENKF_SRC_F77:.F=.o) $(ENKF_SRC_F90:.F90=.o)
  40. # some fine tuning; add more dependancies when/if required
  41. #
  42. m_obs.o: m_uobs.o
  43. m_Generate_element_Si.o: m_parse_blkdat.o mod_measurement.o m_get_mod_fld.o m_insitu.o m_obs.o
  44. m_insitu.o: nfw.o mod_measurement.o m_get_mod_xyz.o m_io_mod_fld.o
  45. m_local_analysis.o: mod_measurement.o m_point2nc.o m_parameters.o
  46. EnKF: $(ENKF_OBJ)
  47. @echo "->EnKF"
  48. @cd ./TMP ; $(LD) $(LINKFLAGS) -o ../EnKF $(ENKF_OBJ) $(LIBS)
  49. $(ENKF_OBJ): makefile make.inc MODEL.CPP
  50. clean:
  51. @rm -f TMP/*.* $(PROGS)
  52. %.o: %.F90
  53. @echo " $*".F90
  54. @rm -f ./TMP/$*.f90
  55. @cat MODEL.CPP $*.F90 | $(CPP) $(CPPFLAGS) > ./TMP/$*.f90
  56. @cd ./TMP ; $(CF90) -c $(FFLAGS) $(F90FLG) -o $*.o $*.f90
  57. %.o: %.F
  58. @echo " $*".F
  59. @rm -f ./TMP/$*.f
  60. @cat MODEL.CPP $*.F | $(CPP) $(CPPFLAGS) > ./TMP/$*.f
  61. @cd ./TMP ; $(CF77) -c $(FFLAGS) $(F77FLG) -o $*.o $*.f
  62. %.o: %.c
  63. @echo " $*".c
  64. @cd ./TMP ; $(CC) -c $(CFLAGS) -o $*.o -I.. ../$*.c