r5152 | xinzhang | 2011-09-26 21:04:33 -0700 (Mon, 26 Sep 2011) | 3 lines
[wrffire.git] / wrfv2_fire / main / Makefile
blob3fb9d353db5801d2ef77bf6a4631668652d93979
3 LN = ln -sf
4 MAKE = make -i -r
5 RM = rm -f
7 MODULES = module_wrf_top.F
9 OBJS =
11 LIBPATHS =
13 include ../configure.wrf
15 $(SOLVER)_wrf : wrf.o ../main/module_wrf_top.o
16 $(RANLIB) $(LIBWRFLIB)
17 $(LD) -o wrf.exe $(LDFLAGS) wrf.o ../main/module_wrf_top.o $(LIBWRFLIB) $(LIB)
19 $(SOLVER)_wrf_SST_ESMF : wrf_ESMFMod.o wrf_SST_ESMF.o ../main/module_wrf_top.o
20 $(RANLIB) $(LIBWRFLIB)
21 $(LD) -o wrf_SST_ESMF.exe $(LDFLAGS) wrf_SST_ESMF.o wrf_ESMFMod.o ../main/module_wrf_top.o $(LIBWRFLIB) $(LIB)
23 $(SOLVER)_ideal : module_initialize ideal.o
24 $(RANLIB) $(LIBWRFLIB)
25 $(LD) -o ideal.exe $(LDFLAGS) ideal.o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB)
27 $(SOLVER)_real : module_initialize real_$(SOLVER).o ndown_$(SOLVER).o nup_$(SOLVER).o tc_$(SOLVER).o
28 $(RANLIB) $(LIBWRFLIB)
29 $(LD) -o real.exe $(LDFLAGS) real_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB)
30 $(LD) -o ndown.exe $(LDFLAGS) ndown_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB)
31 $(LD) -o nup.exe $(LDFLAGS) nup_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB)
32 $(LD) -o tc.exe $(LDFLAGS) tc_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB)
34 convert_em : convert_em.o
35 $(RANLIB) $(LIBWRFLIB)
36 $(LD) -o convert_em.exe $(LDFLAGS) convert_em.o $(LIBWRFLIB) $(LIB)
38 convert_nmm : convert_nmm.o
39 $(RANLIB) $(LIBWRFLIB)
40 $(FC) -o convert_nmm.exe $(LDFLAGS) convert_nmm.o $(LIBWRFLIB) $(LIB)
42 real_nmm : real_nmm.o
43 ( cd ../dyn_nmm ; $(MAKE) module_initialize_real.o )
44 $(RANLIB) $(LIBWRFLIB)
45 $(FC) -o real_nmm.exe $(LDFLAGS) real_nmm.o ../dyn_nmm/module_initialize_real.o ../share/module_optional_input.o ../share/input_wrf.o ../share/module_io_domain.o $(LIBWRFLIB) $(LIB)
47 module_initialize : ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o
48 ( cd ../dyn_$(SOLVER) ; $(MAKE) module_initialize_$(IDEAL_CASE).o )
50 ## prevent real being compiled for OMP -- only for regtesting
51 #$(SOLVER)_real : module_initialize real_$(SOLVER).o
52 # $(RANLIB) $(LIBWRFLIB)
53 # if [ -z "$(OMP)" ] ; then $(FC) -o real.exe $(LDFLAGS) real_$(SOLVER).o ../dyn_$(SOLVER)/module_initialize_$(IDEAL_CASE).o $(LIBWRFLIB) $(LIB) ; fi
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
60 clean:
61 @ echo 'use the clean script'
63 # DEPENDENCIES : only dependencies after this line (don't remove the word DEPENDENCIES)
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)
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)
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)
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_$(IDEAL_CASE).o \
112 ../dyn_em/module_big_step_utilities_em.o \
113 $(ESMF_MOD_DEPENDENCE)
115 nup_em.o: \
116 ../frame/module_machine.o \
117 ../frame/module_domain.o \
118 ../frame/module_streams.o \
119 ../frame/module_driver_constants.o \
120 ../frame/module_configure.o \
121 ../frame/module_timing.o \
122 ../frame/module_dm.o \
123 ../frame/module_wrf_error.o \
124 ../frame/module_integrate.o \
125 ../share/module_bc.o \
126 ../share/module_io_domain.o \
127 ../share/module_get_file_names.o \
128 ../share/module_soil_pre.o \
129 ../dyn_em/module_initialize_real.o \
130 ../dyn_em/module_big_step_utilities_em.o \
131 $(ESMF_MOD_DEPENDENCE)
133 # this already built above :../dyn_em/module_initialize.real.o \
134 real_em.o: \
135 ../frame/module_machine.o \
136 ../frame/module_domain.o \
137 ../frame/module_driver_constants.o \
138 ../frame/module_configure.o \
139 ../frame/module_timing.o \
140 ../frame/module_dm.o \
141 ../dyn_em/module_initialize_$(IDEAL_CASE).o \
142 ../dyn_em/module_big_step_utilities_em.o \
143 ../share/module_io_domain.o \
144 ../share/module_date_time.o \
145 ../share/module_optional_input.o \
146 ../share/module_bc_time_utilities.o \
147 $(ESMF_MOD_DEPENDENCE)
148 # ../chem/module_input_chem_data.o \
149 # ../chem/module_input_chem_bioemiss.o \
152 tc_em.o: \
153 ../frame/module_machine.o \
154 ../frame/module_domain.o \
155 ../frame/module_driver_constants.o \
156 ../frame/module_configure.o \
157 ../frame/module_timing.o \
158 ../frame/module_dm.o \
159 ../dyn_em/module_initialize_$(IDEAL_CASE).o \
160 ../dyn_em/module_big_step_utilities_em.o \
161 ../share/module_io_domain.o \
162 ../share/module_date_time.o \
163 ../share/module_optional_input.o \
164 ../share/module_bc_time_utilities.o \
165 $(ESMF_MOD_DEPENDENCE)
169 wrf.o: ../main/module_wrf_top.o
171 wrf_ESMFMod.o: ../main/module_wrf_top.o
173 wrf_SST_ESMF.o: wrf_ESMFMod.o
175 module_wrf_top.o: ../frame/module_machine.o \
176 ../frame/module_domain.o \
177 ../frame/module_integrate.o \
178 ../frame/module_driver_constants.o \
179 ../frame/module_configure.o \
180 ../frame/module_timing.o \
181 ../frame/module_wrf_error.o \
182 ../frame/module_state_description.o \
183 $(ESMF_MOD_DEPENDENCE)
185 # DO NOT DELETE