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 | all : orchidee_ol teststomate forcesoil |
---|
12 | |
---|
13 | orchidee_ol: |
---|
14 | $(M_K) m_orchidee_ol |
---|
15 | @echo orchidee_ol is OK |
---|
16 | |
---|
17 | m_orchidee_ol: $(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) m_teststomate |
---|
30 | @echo teststomate is OK |
---|
31 | |
---|
32 | m_teststomate: $(BINDIR)/teststomate |
---|
33 | $(BINDIR)/teststomate: \ |
---|
34 | $(SXIOIPSL_LIB) $(SXPARALLEL_LIB) $(SXPARAM_LIB) $(SXORGLOB_LIB) $(SXSTOMATE_LIB) $(SXSECHIBA_LIB) \ |
---|
35 | $(MODEL_LIB)(teststomate.o) |
---|
36 | $(A_G) $(MODEL_LIB) teststomate.o |
---|
37 | $(F_L) -o $(BINDIR)/teststomate teststomate.o $(L_O) \ |
---|
38 | $(SXMODEL_LIB) $(SXSECHIBA_LIB) $(SXSTOMATE_LIB) \ |
---|
39 | $(SXPARALLEL_LIB) $(SXORGLOB_LIB) $(SXPARAM_LIB) $(SXIOIPSL_LIB) $(NCDF_LIB) |
---|
40 | $(RM) teststomate.o |
---|
41 | |
---|
42 | forcesoil: |
---|
43 | $(M_K) m_forcesoil |
---|
44 | @echo m_forcesoil is OK |
---|
45 | |
---|
46 | m_forcesoil: $(BINDIR)/forcesoil |
---|
47 | $(BINDIR)/forcesoil: \ |
---|
48 | $(SXIOIPSL_LIB) $(SXPARALLEL_LIB) $(SXPARAM_LIB) $(SXORGLOB_LIB) $(SXSTOMATE_LIB) $(SXSECHIBA_LIB) \ |
---|
49 | $(MODEL_LIB)(forcesoil.o) |
---|
50 | $(A_G) $(MODEL_LIB) forcesoil.o |
---|
51 | $(F_L) -o $(BINDIR)/forcesoil forcesoil.o $(L_O) \ |
---|
52 | $(SXMODEL_LIB) $(SXSECHIBA_LIB) $(SXSTOMATE_LIB) \ |
---|
53 | $(SXPARALLEL_LIB) $(SXORGLOB_LIB) $(SXPARAM_LIB) $(SXIOIPSL_LIB) $(NCDF_LIB) |
---|
54 | $(RM) forcesoil.o |
---|
55 | |
---|
56 | libioipsl: |
---|
57 | (cd ../../IOIPSL/src; $(M_K) -f Makefile) |
---|
58 | |
---|
59 | clean: |
---|
60 | $(RM) $(MODEL_LIB) |
---|
61 | |
---|
62 | $(MODEL_LIB)(%.o): %.f90 |
---|
63 | $(F_C) $(F_O) -I$(NCDF_INC) $*.f90 |
---|
64 | $(A_C) $(MODEL_LIB) $*.o |
---|
65 | $(RM) $*.o |
---|
66 | |
---|