| 1 | # |
|---|
| 2 | |
|---|
| 3 | LN = ln -sf |
|---|
| 4 | MAKE = make -i -r |
|---|
| 5 | RM = rm -f |
|---|
| 6 | |
|---|
| 7 | MODULES = |
|---|
| 8 | |
|---|
| 9 | OBJS = |
|---|
| 10 | |
|---|
| 11 | LIBPATHS = |
|---|
| 12 | |
|---|
| 13 | include ../configure.wrf |
|---|
| 14 | |
|---|
| 15 | $(SOLVER)_wrf : wrf.o |
|---|
| 16 | $(RANLIB) libwrflib.a |
|---|
| 17 | $(LD) -o wrf.exe $(LDFLAGS) wrf.o libwrflib.a $(LIB) |
|---|
| 18 | |
|---|
| 19 | $(SOLVER)_wrf_ESMFApp : wrf_ESMFMod.o wrf_ESMFApp.o wrf_SST_ESMF.o |
|---|
| 20 | $(RANLIB) libwrflib.a |
|---|
| 21 | $(LD) -o wrf_ESMFApp.exe $(LDFLAGS) wrf_ESMFApp.o wrf_ESMFMod.o libwrflib.a $(LIB) |
|---|
| 22 | $(LD) -o wrf_SST_ESMF.exe $(LDFLAGS) wrf_SST_ESMF.o wrf_ESMFMod.o libwrflib.a $(LIB) |
|---|
| 23 | |
|---|
| 24 | $(SOLVER)_ideal : module_initialize ideal.o |
|---|
| 25 | $(RANLIB) libwrflib.a |
|---|
| 26 | $(LD) -o ideal.exe $(LDFLAGS) ideal.o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o libwrflib.a $(LIB) |
|---|
| 27 | |
|---|
| 28 | $(SOLVER)_real : module_initialize real_$(SOLVER).o ndown_$(SOLVER).o nup_$(SOLVER).o |
|---|
| 29 | $(RANLIB) libwrflib.a |
|---|
| 30 | $(LD) -o real.exe $(LDFLAGS) real_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o libwrflib.a $(LIB) |
|---|
| 31 | $(LD) -o ndown.exe $(LDFLAGS) ndown_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o libwrflib.a $(LIB) |
|---|
| 32 | $(LD) -o nup.exe $(LDFLAGS) nup_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o libwrflib.a $(LIB) |
|---|
| 33 | |
|---|
| 34 | convert_em : convert_em.o |
|---|
| 35 | $(RANLIB) libwrflib.a |
|---|
| 36 | $(LD) -o convert_em.exe $(LDFLAGS) convert_em.o libwrflib.a $(LIB) |
|---|
| 37 | |
|---|
| 38 | convert_nmm : convert_nmm.o |
|---|
| 39 | $(RANLIB) libwrflib.a |
|---|
| 40 | $(FC) -o convert_nmm.exe $(LDFLAGS) convert_nmm.o libwrflib.a $(LIB) |
|---|
| 41 | |
|---|
| 42 | real_nmm : real_nmm.o |
|---|
| 43 | ( cd ../dyn_nmm ; $(MAKE) module_initialize_real.o ) |
|---|
| 44 | $(RANLIB) libwrflib.a |
|---|
| 45 | $(FC) -o real_nmm.exe $(LDFLAGS) real_nmm.o ../dyn_nmm/module_initialize_real.o ../share/module_optional_si_input.o ../share/input_wrf.o ../share/module_io_domain.o libwrflib.a $(LIB) |
|---|
| 46 | |
|---|
| 47 | module_initialize : |
|---|
| 48 | ( cd ../dyn_$(SOLVER) ; $(MAKE) module_initialize_$(IDEAL_CASE).o ) |
|---|
| 49 | |
|---|
| 50 | ## prevent real being compiled for OMP -- only for regtesting |
|---|
| 51 | #$(SOLVER)_real : module_initialize real_$(SOLVER).o |
|---|
| 52 | # $(RANLIB) libwrflib.a |
|---|
| 53 | # if [ -z "$(OMP)" ] ; then $(FC) -o real.exe $(LDFLAGS) real_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o libwrflib.a $(LIB) ; fi |
|---|
| 54 | # |
|---|
| 55 | ## prevent module_initialize being compiled for OMP --remove after IBM debugging |
|---|
| 56 | #module_initialize : |
|---|
| 57 | # if [ -z "$(OMP)" ] ; then ( cd ../dyn_$(SOLVER) ; $(MAKE) module_initialize_$(IDEAL_CASE).o ) ; fi |
|---|
| 58 | # end of regtest changes |
|---|
| 59 | |
|---|
| 60 | clean: |
|---|
| 61 | @ echo 'use the clean script' |
|---|
| 62 | |
|---|
| 63 | # DEPENDENCIES : only dependencies after this line (don't remove the word DEPENDENCIES) |
|---|
| 64 | |
|---|
| 65 | convert_nmm.o: \ |
|---|
| 66 | ../frame/module_machine.o \ |
|---|
| 67 | ../frame/module_domain.o \ |
|---|
| 68 | ../frame/module_driver_constants.o \ |
|---|
| 69 | ../frame/module_configure.o \ |
|---|
| 70 | ../frame/module_timing.o \ |
|---|
| 71 | ../frame/module_dm.o \ |
|---|
| 72 | ../share/module_bc.o \ |
|---|
| 73 | ../share/module_io_domain.o \ |
|---|
| 74 | $(ESMF_MOD_DEPENDENCE) |
|---|
| 75 | |
|---|
| 76 | convert_em.o: \ |
|---|
| 77 | ../frame/module_machine.o \ |
|---|
| 78 | ../frame/module_domain.o \ |
|---|
| 79 | ../frame/module_driver_constants.o \ |
|---|
| 80 | ../frame/module_configure.o \ |
|---|
| 81 | ../frame/module_timing.o \ |
|---|
| 82 | ../frame/module_dm.o \ |
|---|
| 83 | ../share/module_bc.o \ |
|---|
| 84 | ../share/module_io_domain.o \ |
|---|
| 85 | $(ESMF_MOD_DEPENDENCE) |
|---|
| 86 | |
|---|
| 87 | ideal.o: \ |
|---|
| 88 | ../frame/module_machine.o \ |
|---|
| 89 | ../frame/module_domain.o \ |
|---|
| 90 | ../frame/module_driver_constants.o \ |
|---|
| 91 | ../frame/module_configure.o \ |
|---|
| 92 | ../frame/module_timing.o \ |
|---|
| 93 | ../frame/module_dm.o \ |
|---|
| 94 | ../share/module_io_domain.o \ |
|---|
| 95 | ../dyn_$(SOLVER)/$(CASE_MODULE) \ |
|---|
| 96 | $(ESMF_MOD_DEPENDENCE) |
|---|
| 97 | |
|---|
| 98 | ndown_em.o: \ |
|---|
| 99 | ../frame/module_machine.o \ |
|---|
| 100 | ../frame/module_domain.o \ |
|---|
| 101 | ../frame/module_driver_constants.o \ |
|---|
| 102 | ../frame/module_configure.o \ |
|---|
| 103 | ../frame/module_timing.o \ |
|---|
| 104 | ../frame/module_dm.o \ |
|---|
| 105 | ../frame/module_wrf_error.o \ |
|---|
| 106 | ../frame/module_integrate.o \ |
|---|
| 107 | ../share/module_bc.o \ |
|---|
| 108 | ../share/module_io_domain.o \ |
|---|
| 109 | ../share/module_get_file_names.o \ |
|---|
| 110 | ../share/module_soil_pre.o \ |
|---|
| 111 | ../dyn_em/module_initialize_real.o \ |
|---|
| 112 | ../dyn_em/module_big_step_utilities_em.o \ |
|---|
| 113 | $(ESMF_MOD_DEPENDENCE) |
|---|
| 114 | |
|---|
| 115 | nup_em.o: \ |
|---|
| 116 | ../frame/module_machine.o \ |
|---|
| 117 | ../frame/module_domain.o \ |
|---|
| 118 | ../frame/module_driver_constants.o \ |
|---|
| 119 | ../frame/module_configure.o \ |
|---|
| 120 | ../frame/module_timing.o \ |
|---|
| 121 | ../frame/module_dm.o \ |
|---|
| 122 | ../frame/module_wrf_error.o \ |
|---|
| 123 | ../frame/module_integrate.o \ |
|---|
| 124 | ../share/module_bc.o \ |
|---|
| 125 | ../share/module_io_domain.o \ |
|---|
| 126 | ../share/module_get_file_names.o \ |
|---|
| 127 | ../share/module_soil_pre.o \ |
|---|
| 128 | ../dyn_em/module_initialize_real.o \ |
|---|
| 129 | ../dyn_em/module_big_step_utilities_em.o \ |
|---|
| 130 | $(ESMF_MOD_DEPENDENCE) |
|---|
| 131 | |
|---|
| 132 | # this already built above :../dyn_em/module_initialize.real.o \ |
|---|
| 133 | real_em.o: \ |
|---|
| 134 | ../frame/module_machine.o \ |
|---|
| 135 | ../frame/module_domain.o \ |
|---|
| 136 | ../frame/module_driver_constants.o \ |
|---|
| 137 | ../frame/module_configure.o \ |
|---|
| 138 | ../frame/module_timing.o \ |
|---|
| 139 | ../frame/module_dm.o \ |
|---|
| 140 | ../dyn_em/module_si_io_em.o \ |
|---|
| 141 | ../dyn_em/module_big_step_utilities_em.o \ |
|---|
| 142 | ../share/module_io_domain.o \ |
|---|
| 143 | ../share/module_date_time.o \ |
|---|
| 144 | ../share/module_optional_si_input.o \ |
|---|
| 145 | ../share/module_bc_time_utilities.o \ |
|---|
| 146 | $(ESMF_MOD_DEPENDENCE) |
|---|
| 147 | # ../chem/module_input_chem_data.o \ |
|---|
| 148 | # ../chem/module_input_chem_bioemiss.o \ |
|---|
| 149 | |
|---|
| 150 | wrf.o: ../share/module_wrf_top.o |
|---|
| 151 | |
|---|
| 152 | wrf_ESMFMod.o: ../share/module_wrf_top.o |
|---|
| 153 | |
|---|
| 154 | wrf_ESMFApp.o: wrf_ESMFMod.o |
|---|
| 155 | |
|---|
| 156 | wrf_SST_ESMF.o: wrf_ESMFMod.o |
|---|
| 157 | |
|---|
| 158 | # DO NOT DELETE |
|---|