1 | #- |
---|
2 | #- $Id$ |
---|
3 | #- |
---|
4 | MODS1 = dim2_driver.f90 \ |
---|
5 | weather.f90 \ |
---|
6 | readdim2.f90 \ |
---|
7 | teststomate.f90 \ |
---|
8 | forcesoil.f90 \ |
---|
9 | getprec.f90 |
---|
10 | |
---|
11 | orchidee_ol: |
---|
12 | $(M_K) all_libs |
---|
13 | $(M_K) m_orchidee_ol |
---|
14 | @echo orchidee_ol is OK |
---|
15 | |
---|
16 | m_orchidee_ol: $(BINDIR)/orchidee_ol |
---|
17 | #-Q- intel m_orchidee_ol: WORK_MOD $(BINDIR)/orchidee_ol |
---|
18 | $(BINDIR)/orchidee_ol: \ |
---|
19 | $(SXIOIPSL_LIB) $(SXPARAM_LIB) $(SXPARALLEL_LIB) $(SXORGLOB_LIB) $(SXSTOMATE_LIB) $(SXSECHIBA_LIB) \ |
---|
20 | $(MODEL_LIB)(weather.o) $(MODEL_LIB)(readdim2.o) \ |
---|
21 | $(MODEL_LIB)(dim2_driver.o) |
---|
22 | $(A_G) $(MODEL_LIB) dim2_driver.o |
---|
23 | $(F_L) -o $(BINDIR)/orchidee_ol dim2_driver.o $(L_O) \ |
---|
24 | $(SXMODEL_LIB) $(SXSECHIBA_LIB) $(SXSTOMATE_LIB) \ |
---|
25 | $(SXPARALLEL_LIB) $(SXORGLOB_LIB) $(SXPARAM_LIB) $(SXIOIPSL_LIB) $(NCDF_LIB) |
---|
26 | $(RM) dim2_driver.o |
---|
27 | |
---|
28 | teststomate: |
---|
29 | $(M_K) all_libs |
---|
30 | $(M_K) m_teststomate |
---|
31 | @echo teststomate is OK |
---|
32 | |
---|
33 | m_teststomate: $(BINDIR)/teststomate |
---|
34 | $(BINDIR)/teststomate: \ |
---|
35 | $(SXIOIPSL_LIB) $(SXPARALLEL_LIB) $(SXPARAM_LIB) $(SXORGLOB_LIB) $(SXSTOMATE_LIB) $(SXSECHIBA_LIB) \ |
---|
36 | $(MODEL_LIB)(teststomate.o) |
---|
37 | $(A_G) $(MODEL_LIB) teststomate.o |
---|
38 | $(F_L) -o $(BINDIR)/teststomate teststomate.o $(L_O) \ |
---|
39 | $(SXMODEL_LIB) $(SXSECHIBA_LIB) $(SXSTOMATE_LIB) \ |
---|
40 | $(SXPARALLEL_LIB) $(SXORGLOB_LIB) $(SXPARAM_LIB) $(SXIOIPSL_LIB) $(NCDF_LIB) |
---|
41 | $(RM) teststomate.o |
---|
42 | |
---|
43 | forcesoil: |
---|
44 | $(M_K) all_libs |
---|
45 | $(M_K) m_forcesoil |
---|
46 | @echo m_forcesoil is OK |
---|
47 | |
---|
48 | m_forcesoil: $(BINDIR)/forcesoil |
---|
49 | $(BINDIR)/forcesoil: \ |
---|
50 | $(SXIOIPSL_LIB) $(SXPARALLEL_LIB) $(SXPARAM_LIB) $(SXORGLOB_LIB) $(SXSTOMATE_LIB) $(SXSECHIBA_LIB) \ |
---|
51 | $(MODEL_LIB)(forcesoil.o) |
---|
52 | $(A_G) $(MODEL_LIB) forcesoil.o |
---|
53 | $(F_L) -o $(BINDIR)/forcesoil forcesoil.o $(L_O) \ |
---|
54 | $(SXMODEL_LIB) $(SXSECHIBA_LIB) $(SXSTOMATE_LIB) \ |
---|
55 | $(SXPARALLEL_LIB) $(SXORGLOB_LIB) $(SXPARAM_LIB) $(SXIOIPSL_LIB) $(NCDF_LIB) |
---|
56 | $(RM) forcesoil.o |
---|
57 | #-Q- intel |
---|
58 | #-Q- intel WORK_MOD: |
---|
59 | #-Q- intel $(RM) work.pcl |
---|
60 | #-Q- intel @echo "work.pc" > work.pcl |
---|
61 | #-Q- intel @echo "../ORCHIDEE/src_parameters/work.pc" >> work.pcl |
---|
62 | #-Q- intel @echo "../ORCHIDEE/src_global/work.pc" >> work.pcl |
---|
63 | #-Q- intel @echo "../ORCHIDEE/src_stomate/work.pc" >> work.pcl |
---|
64 | #-Q- intel @echo "../ORCHIDEE/src_sechiba/work.pc" >> work.pcl |
---|
65 | #-Q- intel @echo "../IOIPSL/src/work.pc" >> work.pcl |
---|
66 | |
---|
67 | config: |
---|
68 | $(M_K) libioipsl |
---|
69 | $(M_K) m_config |
---|
70 | |
---|
71 | m_config: $(SXIOIPSL_LIB) |
---|
72 | (cd ../IOIPSL/src; $(M_K) -f Makefile config) |
---|
73 | (cd ../ORCHIDEE/src_parameters; $(M_K) -f Makefile config) |
---|
74 | (cd ../ORCHIDEE/src_parallel; $(M_K) -f Makefile config) |
---|
75 | (cd ../ORCHIDEE/src_global; $(M_K) -f Makefile config) |
---|
76 | (cd ../ORCHIDEE/src_sechiba; $(M_K) -f Makefile config) |
---|
77 | (cd ../ORCHIDEE/src_stomate; $(M_K) -f Makefile config) |
---|
78 | $(BINDIR)/Fparser -main -name ORCHIDEE_OL $(MODS1) |
---|
79 | $(SCPDIR)/build_tkmenus |
---|
80 | ./config.tk |
---|
81 | $(RM) Config.* |
---|
82 | |
---|
83 | checkprec: |
---|
84 | $(M_K) libparameters |
---|
85 | $(M_K) m_checkprec |
---|
86 | |
---|
87 | m_checkprec: $(BINDIR)/checkprec |
---|
88 | $(BINDIR)/checkprec: \ |
---|
89 | $(SXPARAM_LIB) $(MODEL_LIB)(getprec.o) |
---|
90 | $(A_G) $(MODEL_LIB) getprec.o |
---|
91 | $(F_L) -o $(BINDIR)/checkprec getprec.o $(L_O) \ |
---|
92 | $(SXMODEL_LIB) $(PARAMETERS_LIB) |
---|
93 | $(BINDIR)/checkprec |
---|
94 | $(RM) getprec.o |
---|
95 | |
---|
96 | all_libs: |
---|
97 | $(M_K) libioipsl |
---|
98 | $(M_K) libparallel |
---|
99 | $(M_K) libparameters |
---|
100 | $(M_K) liborglob |
---|
101 | $(M_K) libstomate |
---|
102 | $(M_K) libsechiba |
---|
103 | |
---|
104 | libioipsl: |
---|
105 | (cd ../IOIPSL/src; $(M_K) -f Makefile) |
---|
106 | |
---|
107 | libparameters: |
---|
108 | (cd ../ORCHIDEE/src_parameters; $(M_K) -f Makefile) |
---|
109 | |
---|
110 | libparallel: |
---|
111 | (cd ../ORCHIDEE/src_parallel; $(M_K) -f Makefile) |
---|
112 | |
---|
113 | liborglob: |
---|
114 | (cd ../ORCHIDEE/src_global; $(M_K) -f Makefile) |
---|
115 | |
---|
116 | libstomate: |
---|
117 | (cd ../ORCHIDEE/src_stomate; $(M_K) -f Makefile) |
---|
118 | |
---|
119 | libsechiba: |
---|
120 | (cd ../ORCHIDEE/src_sechiba; $(M_K) -f Makefile) |
---|
121 | |
---|
122 | clean: |
---|
123 | (cd ../IOIPSL/src; $(M_K) -f Makefile clean) |
---|
124 | (cd ../ORCHIDEE/src_parameters; $(M_K) -f Makefile clean) |
---|
125 | (cd ../ORCHIDEE/src_parallel; $(M_K) -f Makefile clean) |
---|
126 | (cd ../ORCHIDEE/src_global; $(M_K) -f Makefile clean) |
---|
127 | (cd ../ORCHIDEE/src_sechiba; $(M_K) -f Makefile clean) |
---|
128 | (cd ../ORCHIDEE/src_stomate; $(M_K) -f Makefile clean) |
---|
129 | $(RM) *.o core $(MODEL_LIB) |
---|
130 | |
---|
131 | cleanORC: |
---|
132 | (cd ../ORCHIDEE/src_parameters; $(M_K) -f Makefile clean) |
---|
133 | (cd ../ORCHIDEE/src_parallel; $(M_K) -f Makefile clean) |
---|
134 | (cd ../ORCHIDEE/src_global; $(M_K) -f Makefile clean) |
---|
135 | (cd ../ORCHIDEE/src_sechiba; $(M_K) -f Makefile clean) |
---|
136 | (cd ../ORCHIDEE/src_stomate; $(M_K) -f Makefile clean) |
---|
137 | $(RM) $(MODEL_LIB) |
---|
138 | |
---|
139 | $(MODEL_LIB)(%.o): %.f90 |
---|
140 | $(F_C) $(F_O) -I$(NCDF_INC) $*.f90 |
---|
141 | $(A_C) $(MODEL_LIB) $*.o |
---|
142 | #-Q- sxnec $(A_X) $(SXMODEL_LIB) $*.o |
---|
143 | #-Q- sxnec -mv $*.mod $(MODDIR) |
---|
144 | #-Q- sx6nec $(A_X) $(SXMODEL_LIB) $*.o |
---|
145 | #-Q- sx6nec -mv $*.mod $(MODDIR) |
---|
146 | #-Q- sx8mercure -mv $*.mod $(MODDIR) |
---|
147 | #-Q- sx9mercure -mv $*.mod $(MODDIR) |
---|
148 | #-Q- sx8brodie $(A_X) $(SXMODEL_LIB) $*.o |
---|
149 | #-Q- sx8brodie -mv $*.mod $(MODDIR) |
---|
150 | #-Q- solaris -mv $*.mod $(MODDIR) |
---|
151 | $(RM) $*.o |
---|
152 | |
---|