makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. MPI = NO
  2. include ../make.inc
  3. VPATH = ../:./:TMP
  4. PROGS = EnKF_assemble\
  5. checkice\
  6. checkice_en\
  7. consistency\
  8. fixhycom\
  9. fixhycom_eco\
  10. obsstats\
  11. oldtonewobs
  12. PROGS0 = consistency
  13. all: $(PROGS)
  14. ENKF_ASSEMBLE_OBJ = qmpi.o\
  15. mod_raw_io.o\
  16. m_parse_blkdat.o\
  17. m_put_mod_fld.o\
  18. p_EnKF_assemble.o
  19. CONSISTENCY_OBJ = qmpi.o\
  20. mod_raw_io.o\
  21. m_parse_blkdat.o\
  22. m_put_mod_fld.o\
  23. m_get_mod_grid.o\
  24. m_get_mod_fld.o\
  25. nfw.o\
  26. mod_testinfo.o\
  27. p_consistency.o
  28. CHECK_ICE_OBJ = qmpi.o\
  29. mod_raw_io.o\
  30. m_parse_blkdat.o\
  31. m_get_mod_grid.o\
  32. p_check_ice.o
  33. CHECK_ICE_OBJ_EN = qmpi.o\
  34. mod_raw_io.o\
  35. m_parse_blkdat.o\
  36. m_get_mod_grid.o\
  37. m_get_mod_fld.o\
  38. p_check_ice_en.o
  39. FIXHYCOM_OBJ = qmpi.o\
  40. m_random.o\
  41. mod_raw_io.o\
  42. m_parse_blkdat.o\
  43. m_put_mod_fld.o\
  44. m_get_mod_grid.o\
  45. m_get_mod_fld.o\
  46. p_fixhycom.o
  47. FIXHYCOM_ECO_OBJ = qmpi.o\
  48. m_fixhycom_eco_metno.o\
  49. mod_raw_io.o\
  50. m_parse_blkdat.o\
  51. m_put_mod_fld.o\
  52. m_get_mod_grid.o\
  53. m_get_mod_fld.o\
  54. distribute.o\
  55. p_fixhycom_eco.o
  56. OBSSTATS_SRC_C = order.c
  57. OBSSTATS_SRC_F90 = qmpi.F90\
  58. m_parameters.F90\
  59. mod_measurement.F90\
  60. mod_raw_io.F90\
  61. m_parse_blkdat.F90\
  62. m_put_mod_fld.F90\
  63. m_get_mod_grid.F90\
  64. m_spherdist.F90\
  65. m_Generate_element_Si.F90\
  66. m_get_mod_nrens.F90\
  67. m_insitu.F90\
  68. m_obs.F90\
  69. m_set_random_seed2.F90\
  70. mod_sphere_tools.F90\
  71. m_get_mod_fld.F90\
  72. m_random.F90\
  73. m_prep_4_EnKF.F90\
  74. m_uobs.F90\
  75. nfw.F90\
  76. p_obsstats.F90
  77. TESTX4_SRC_F90 = qmpi.F90\
  78. m_parse_blkdat.F90\
  79. m_get_mod_nrens.F90\
  80. testX4.F90
  81. OBSSTATS_OBJ = $(OBSSTATS_SRC_C:.c=.o) $(OBSSTATS_SRC_F77:.F=.o) $(OBSSTATS_SRC_F90:.F90=.o)
  82. OLDTONEWOBS_OBJ = mod_measurement_oldnew.o\
  83. p_oldtonewobs.o
  84. TESTX4_OBJ = $(TESTX4_SRC_F90:.F90=.o)
  85. m_Generate_element_Si.o: m_parse_blkdat.o mod_measurement.o m_get_mod_fld.o m_insitu.o m_obs.o
  86. m_insitu.o: nfw.o
  87. m_get_mod_nrens.o: qmpi.o
  88. m_obs.o : m_parameters.o m_uobs.o
  89. $(ENKF_ASSEMBLE_OBJ) $(CONSISTENCY_OBJ) $(FIXHYCOM_ECO_OBJ) $(FIXHYCOM_OBJ) $(OBSSTATS_OBJ) $(OLDTONEWOBS_OBJ): MODEL.CPP makefile
  90. EnKF_assemble: $(ENKF_ASSEMBLE_OBJ)
  91. @echo "->EnKF_assemble"
  92. @cd ./TMP ; $(LD) $(LINKFLAGS) -o ../EnKF_assemble $(ENKF_ASSEMBLE_OBJ)
  93. consistency: $(CONSISTENCY_OBJ)
  94. @echo "->consistency"
  95. @cd ./TMP ; $(LD) $(LINKFLAGS) -o ../consistency $(CONSISTENCY_OBJ) $(LIBS)
  96. checkice: $(CHECK_ICE_OBJ)
  97. @echo "->checkice"
  98. @cd ./TMP ; $(LD) $(LINKFLAGS) -o ../checkice $(CHECK_ICE_OBJ) $(LIBS)
  99. checkice_en: $(CHECK_ICE_OBJ_EN)
  100. @echo "->checkice_en"
  101. @cd ./TMP ; $(LD) $(LINKFLAGS) -o ../checkice_en $(CHECK_ICE_OBJ_EN) $(LIBS)
  102. fixhycom: $(FIXHYCOM_OBJ)
  103. @echo "->fixhycom"
  104. @cd ./TMP ; $(LD) $(LINKFLAGS) -o ../fixhycom $(FIXHYCOM_OBJ)
  105. fixhycom_eco: $(FIXHYCOM_ECO_OBJ)
  106. @echo "->fixhycom_eco"
  107. @cd ./TMP ; $(LD) $(LINKFLAGS) -o ../fixhycom_eco $(FIXHYCOM_ECO_OBJ)
  108. obsstats: $(OBSSTATS_OBJ)
  109. @echo "->obsstats"
  110. @cd ./TMP ; $(LD) $(LINKFLAGS) -o ../obsstats $(OBSSTATS_OBJ) $(LIBS) $(MATLIBS)
  111. oldtonewobs: $(OLDTONEWOBS_OBJ)
  112. @echo "->oldtonewobs"
  113. @cd ./TMP ; $(LD) $(LINKFLAGS) -o ../oldtonewobs $(OLDTONEWOBS_OBJ)
  114. clean:
  115. @rm -f *.o *.mod TMP/*.* $(PROGS)
  116. %.o: %.F90
  117. @echo " $*".F90
  118. @rm -f ./TMP/$*.f90
  119. @cat MODEL.CPP $< | $(CPP) $(CPPFLAGS) > ./TMP/$*.f90
  120. @cd ./TMP; $(CF90) -c $(FFLAGS) $(F90FLG) -o $*.o $*.f90
  121. %.o: %.F
  122. @echo " $*".F
  123. @rm -f ./TMP/$*.f
  124. @cat MODEL.CPP $< | $(CPP) $(CPPFLAGS) > ./TMP/$*.f
  125. @cd ./TMP; $(CF77) -c $(FFLAGS) $(F77FLG) -o $*.o $*.f 2> /dev/null
  126. %.o: %.c
  127. @echo " $*".c
  128. @cd ./TMP ; $(CC) -c $(CFLAGS) -o $*.o -I../.. ../../$*.c