source: branches/publications/ORCHIDEE_GLUC_r6545/src_stomate/AA_make @ 6737

Last change on this file since 6737 was 5159, checked in by chao.yue, 6 years ago

Succssful compilation after adding a bioenergy vegetation type

  • Property svn:keywords set to Id
File size: 9.0 KB
Line 
1#-
2#- $Id$
3#-
4PARALLEL_LIB = $(LIBDIR)/libparallel.a
5SXPARALLEL_LIB = $(PARALLEL_LIB)
6#-Q- sxnec  SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
7#-Q- sx6nec SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
8#-Q- eshpux SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
9#-Q- sx8brodie SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
10#-
11PARAM_LIB = $(LIBDIR)/libparameters.a
12SXPARAM_LIB = $(PARAM_LIB)
13#-Q- sxnec  SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
14#-Q- sx6nec SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
15#-Q- eshpux SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
16#-Q- sx8brodie SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
17#-
18ORGLOB_LIB = $(LIBDIR)/liborglob.a
19SXORGLOB_LIB = $(ORGLOB_LIB)
20#-Q- sxnec  SXORGLOB_LIB = $(LIBDIR)/libsxorglob.a
21#-Q- sx6nec SXORGLOB_LIB = $(LIBDIR)/libsxorglob.a
22#-Q- eshpux SXORGLOB_LIB = $(LIBDIR)/libsxorglob.a
23#-Q- sx8brodie SXORGLOB_LIB = $(LIBDIR)/libsxorglob.a
24#-
25MODS1 = stomate_data.f90      \
26        lpj_constraints.f90        \
27        lpj_cover.f90              \
28        lpj_crown.f90              \
29        lpj_establish.f90          \
30        lpj_spitfire.f90               \
31        lpj_gap.f90                \
32        lpj_kill.f90               \
33        lpj_light.f90              \
34        lpj_pftinout.f90           \
35        stomate_alloc.f90          \
36        stomate_data.f90           \
37        stomate_io.f90             \
38        stomate_litter.f90         \
39        stomate_npp.f90            \
40        stomate_phenology.f90      \
41        stomate_prescribe.f90      \
42        stomate_season.f90         \
43        stomate_soilcarbon.f90     \
44        stomate_turnover.f90       \
45        stomate_vmax.f90           \
46        stomate_lcchange.f90       \
47        stomate_gluc_constants.f90 \
48        stomate_gluc_common.f90    \
49        stomate_fharvest_SinAgeC.f90      \
50        stomate_fharvest_MulAgeC.f90       \
51        stomate_glcchange_SinAgeC.f90       \
52        stomate_glcchange_MulAgeC.f90      \
53        stomate_glcc_Bioe1.f90      \
54        grassland_constantes.f90         \
55        grassland_fonctions.f90          \
56        grassland_cutting.f90          \
57        grassland_fertilisation.f90   \
58        grassland_grazing.f90         \
59        grassland_management.f90     \
60        stomate_lpj.f90            \
61        stomate_resp.f90           \
62        stomate_permafrost_soilcarbon.f90  \
63        stomate_wet_ch4_pt_ter_0.f90 \
64        stomate_wet_ch4_pt_ter_wet1.f90 \
65        stomate_wet_ch4_pt_ter_wet2.f90 \
66        stomate_wet_ch4_pt_ter_wet3.f90 \
67        stomate_wet_ch4_pt_ter_wet4.f90 \
68        stomate.f90
69
70OBJSMODS1 = $(MODS1:.f90=.o)
71#-
72.PRECIOUS : $(MODEL_LIB)
73#-Q- sxnec  .PRECIOUS : $(SXMODEL_LIB)
74#-Q- sx6nec .PRECIOUS : $(SXMODEL_LIB)
75#-Q- eshpux .PRECIOUS : $(SXMODEL_LIB)
76#-Q- sx8brodie .PRECIOUS : $(SXMODEL_LIB)
77#-
78all:
79        $(M_K) libparallel
80        $(M_K) libparameters
81        $(M_K) liborglob
82        $(M_K) m_all
83        @echo stomate is OK
84
85m_all: $(MODEL_LIB)($(OBJSMODS1))
86#-Q- intel m_all: WORK_MOD $(MODEL_LIB)($(OBJSMODS1))
87
88memory:
89#-Q- sxnec      @echo maximum memory must be defined on Rhodes
90#-Q- sxnec      @echo in sh or ksh : ulimit -v unlimited
91#-Q- sxnec      @echo in csh or tcsh : limit vmemoryuse unlimited
92#-Q- sxnec      -/sbin/ulimit -v unlimited
93#-Q- sxnec      -limit vmemoryuse unlimited
94
95libparallel:
96        (cd ../src_parallel; $(M_K) -f Makefile)
97
98libparameters:
99        (cd ../src_parameters; $(M_K) -f Makefile)
100
101liborglob:
102        (cd ../src_global; $(M_K) -f Makefile)
103
104$(MODEL_LIB)(%.o): %.f90
105        $(F_C) $(F_O) -I$(NCDF_INC) $*.f90
106        $(A_C) $(MODEL_LIB) $*.o
107        $(A_C) $(ORCHIDEE_LIB) $*.o
108#-Q- sxnec      $(A_X) $(SXMODEL_LIB) $*.o
109#-Q- sxnec      mv $*.mod $(MODDIR)
110#-Q- sx6nec     $(A_X) $(SXMODEL_LIB) $*.o
111#-Q- sx6nec     mv $*.mod $(MODDIR)
112#-Q- eshpux     $(A_X) $(SXMODEL_LIB) $*.o
113#-Q- eshpux     mv $*.mod $(MODDIR)
114#-Q- sx8mercure         mv $*.mod $(MODDIR)
115#-Q- sx9mercure         mv $*.mod $(MODDIR)
116#-Q- sx8brodie  $(A_X) $(SXMODEL_LIB) $*.o
117#-Q- sx8brodie  mv $*.mod $(MODDIR)
118#-Q- solaris    mv $*.mod $(MODDIR)
119        $(RM) $*.o
120#-Q- intel
121#-Q- intel WORK_MOD:
122#-Q- intel      $(RM) work.pcl
123#-Q- intel      @echo "work.pc" > work.pcl
124#-Q- intel      @echo "../src_parameters/work.pc" >> work.pcl
125#-Q- intel      @echo "../../IOIPSL/src/work.pc" >> work.pcl
126
127config:
128        $(BINDIR)/Fparser -name STOMATE $(MODS1)
129        echo 'Configuration of STOMATE done'
130
131clean:
132        $(RM) $(MODEL_LIB)
133
134$(MODEL_LIB)(stomate.o):          \
135  $(PARAM_LIB)(pft_parameters.o)  \
136  $(MODEL_LIB)(stomate_io.o)      \
137  $(MODEL_LIB)(stomate_permafrost_soilcarbon.o)  \
138  $(MODEL_LIB)(stomate_lpj.o)
139
140$(MODEL_LIB)(stomate_permafrost_soilcarbon.o): \
141  $(MODEL_LIB)(stomate_data.o) \
142  $(PARAM_LIB)(pft_parameters.o) \
143  $(PARAM_LIB)(constantes_soil.o) \
144  $(PARAM_LIB)(constantes_soil_var.o) \
145  $(PARAM_LIB)(constantes_var.o)
146 
147$(MODEL_LIB)(stomate_data.o): \
148  $(PARAM_LIB)(pft_parameters.o)        \
149  $(PARAM_LIB)(constantes.o) 
150
151$(MODEL_LIB)(lpj_constraints.o): \
152  $(MODEL_LIB)(stomate_data.o)
153
154$(MODEL_LIB)(lpj_cover.o): \
155  $(MODEL_LIB)(stomate_data.o)
156
157$(MODEL_LIB)(lpj_crown.o): \
158  $(MODEL_LIB)(stomate_data.o)
159
160$(MODEL_LIB)(lpj_establish.o): \
161  $(MODEL_LIB)(stomate_data.o)
162
163$(MODEL_LIB)(lpj_fire.o): \
164  $(MODEL_LIB)(stomate_data.o)
165
166$(MODEL_LIB)(lpj_gap.o): \
167  $(MODEL_LIB)(stomate_data.o)
168
169$(MODEL_LIB)(lpj_kill.o): \
170  $(MODEL_LIB)(stomate_data.o)
171
172$(MODEL_LIB)(lpj_light.o): \
173  $(MODEL_LIB)(stomate_data.o)
174
175$(MODEL_LIB)(lpj_pftinout.o): \
176  $(MODEL_LIB)(stomate_data.o)
177
178$(MODEL_LIB)(stomate_alloc.o): \
179  $(PARAM_LIB)(pft_parameters.o)        \
180  $(MODEL_LIB)(stomate_data.o)
181
182$(MODEL_LIB)(stomate_io.o): \
183  $(MODEL_LIB)(stomate_data.o) \
184  $(PARALLEL_LIB)(mod_orchidee_para.o)
185
186
187$(MODEL_LIB)(stomate_litter.o): \
188  $(MODEL_LIB)(stomate_data.o)
189
190$(MODEL_LIB)(stomate_npp.o): \
191  $(MODEL_LIB)(stomate_data.o)
192
193$(MODEL_LIB)(stomate_wet_ch4_pt_ter_0.o): \
194  $(PARAM_LIB)(pft_parameters.o)
195
196$(MODEL_LIB)(stomate_wet_ch4_pt_ter_wet1.o): \
197  $(PARAM_LIB)(pft_parameters.o)
198
199$(MODEL_LIB)(stomate_wet_ch4_pt_ter_wet2.o): \
200  $(PARAM_LIB)(pft_parameters.o)
201
202$(MODEL_LIB)(stomate_wet_ch4_pt_ter_wet3.o): \
203  $(PARAM_LIB)(pft_parameters.o)
204
205$(MODEL_LIB)(stomate_wet_ch4_pt_ter_wet4.o): \
206  $(PARAM_LIB)(pft_parameters.o)
207
208$(MODEL_LIB)(stomate_phenology.o): \
209  $(MODEL_LIB)(stomate_data.o)
210
211$(MODEL_LIB)(stomate_prescribe.o): \
212  $(MODEL_LIB)(stomate_data.o)
213
214$(MODEL_LIB)(stomate_resp.o): \
215  $(MODEL_LIB)(stomate_data.o)
216
217$(MODEL_LIB)(stomate_season.o): \
218  $(PARAM_LIB)(pft_parameters.o)        \
219  $(MODEL_LIB)(stomate_data.o)
220
221$(MODEL_LIB)(stomate_soilcarbon.o): \
222  $(MODEL_LIB)(stomate_data.o) \
223  $(ORGLOB_LIB)(grid.o)\
224  $(ORGLOB_LIB)(solar.o)
225
226$(MODEL_LIB)(stomate_turnover.o): \
227  $(MODEL_LIB)(stomate_data.o)
228
229$(MODEL_LIB)(stomate_vmax.o): \
230  $(MODEL_LIB)(stomate_data.o)
231
232$(MODEL_LIB)(stomate_lcchange.o): \
233  $(MODEL_LIB)(stomate_data.o)
234
235$(MODEL_LIB)(grassland_constantes.o): \
236  $(PARAM_LIB)(pft_parameters.o)        \
237  $(PARAM_LIB)(constantes.o)
238
239$(MODEL_LIB)(grassland_fonctions.o): \
240  $(PARAM_LIB)(pft_parameters.o)        \
241  $(PARAM_LIB)(constantes.o)            \
242  $(MODEL_LIB)(grassland_constantes.o)
243
244$(MODEL_LIB)(grassland_fertilisation.o): \
245  $(PARAM_LIB)(pft_parameters.o)        \
246  $(PARAM_LIB)(constantes.o)            \
247  $(MODEL_LIB)(grassland_constantes.o)      \
248  $(MODEL_LIB)(grassland_fonctions.o)
249
250$(MODEL_LIB)(grassland_cutting.o): \
251  $(PARAM_LIB)(pft_parameters.o)        \
252  $(PARAM_LIB)(constantes.o)            \
253  $(MODEL_LIB)(grassland_constantes.o)      \
254  $(MODEL_LIB)(grassland_fonctions.o)
255
256$(MODEL_LIB)(grassland_grazing.o): \
257  $(PARAM_LIB)(pft_parameters.o)        \
258  $(PARAM_LIB)(constantes.o)            \
259  $(MODEL_LIB)(grassland_constantes.o)      \
260  $(MODEL_LIB)(grassland_fonctions.o)
261
262$(MODEL_LIB)(grassland_management.o): \
263  $(PARAM_LIB)(pft_parameters.o)        \
264  $(PARAM_LIB)(constantes.o)            \
265  $(MODEL_LIB)(grassland_constantes.o)      \
266  $(MODEL_LIB)(grassland_fonctions.o)       \
267  $(MODEL_LIB)(grassland_grazing.o)      \
268  $(MODEL_LIB)(grassland_cutting.o)       \
269  $(MODEL_LIB)(grassland_fertilisation.o)
270
271$(MODEL_LIB)(stomate_lpj.o):            \
272  $(MODEL_LIB)(lpj_constraints.o)       \
273  $(MODEL_LIB)(lpj_cover.o)             \
274  $(MODEL_LIB)(lpj_crown.o)             \
275  $(MODEL_LIB)(lpj_establish.o)         \
276  $(MODEL_LIB)(lpj_spitfire.o)          \
277  $(MODEL_LIB)(lpj_fire.o)              \
278  $(MODEL_LIB)(lpj_gap.o)               \
279  $(MODEL_LIB)(lpj_kill.o)              \
280  $(MODEL_LIB)(lpj_light.o)             \
281  $(MODEL_LIB)(lpj_pftinout.o)          \
282  $(MODEL_LIB)(stomate_alloc.o)         \
283  $(MODEL_LIB)(stomate_data.o)          \
284  $(MODEL_LIB)(stomate_litter.o)        \
285  $(MODEL_LIB)(stomate_npp.o)           \
286  $(MODEL_LIB)(stomate_phenology.o)     \
287  $(MODEL_LIB)(stomate_prescribe.o)     \
288  $(MODEL_LIB)(stomate_season.o)        \
289  $(MODEL_LIB)(stomate_soilcarbon.o)    \
290  $(MODEL_LIB)(stomate_turnover.o)      \
291  $(MODEL_LIB)(stomate_vmax.o)          \
292  $(MODEL_LIB)(stomate_resp.o)          \
293  $(MODEL_LIB)(stomate_wet_ch4_pt_ter_0.o)             \
294  $(MODEL_LIB)(stomate_wet_ch4_pt_ter_wet1.o)          \
295  $(MODEL_LIB)(stomate_wet_ch4_pt_ter_wet2.o)          \
296  $(MODEL_LIB)(stomate_wet_ch4_pt_ter_wet3.o)          \
297  $(MODEL_LIB)(stomate_wet_ch4_pt_ter_wet4.o)          \
298  $(MODEL_LIB)(stomate_lcchange.o)      \
299  $(MODEL_LIB)(grassland_management.o)
300
Note: See TracBrowser for help on using the repository browser.