makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 "FRANCOIS"
  48. @exit
  49. @echo "->EnKF"
  50. @cd ./TMP ; $(LD) $(LINKFLAGS) -o ../EnKF $(ENKF_OBJ)
  51. $(ENKF_OBJ): makefile make.inc MODEL.CPP
  52. clean:
  53. @rm -f TMP/*.* $(PROGS)
  54. %.o: %.F90
  55. @echo " $*".F90
  56. @rm -f ./TMP/$*.f90
  57. @cat MODEL.CPP $*.F90 | $(CPP) $(CPPFLAGS) > ./TMP/$*.f90
  58. @cd ./TMP ; $(CF90) -c $(FFLAGS) $(F90FLG) -o $*.o $*.f90
  59. %.o: %.F
  60. @echo " $*".F
  61. @rm -f ./TMP/$*.f
  62. @cat MODEL.CPP $*.F | $(CPP) $(CPPFLAGS) > ./TMP/$*.f
  63. @cd ./TMP ; $(CF77) -c $(FFLAGS) $(F77FLG) -o $*.o $*.f
  64. %.o: %.c
  65. @echo " $*".c
  66. @cd ./TMP ; $(CC) -c $(CFLAGS) -o $*.o -I.. ../$*.c