makefile 1.6 KB

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