source: branches/publications/ORCHIDEE_CAN_r2290/src_driver/AA_make

Last change on this file was 1042, checked in by josefine.ghattas, 12 years ago

First commit for Re-organization of sources code (see ticket 19) :

  • Driver sources were moved from ORCHIDEE_OL/ to new directory ORCHIDEE/src_driver/
  • Target checkprec and config were not adapted for new structure.
  • Removed specifications for old machines in src_driver/AA_make : sxnec, intel,..
  • Compiling is now done in ORCHIDEE directory. To compile all executables, use : "gmake driver"
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1#-
2#- $Id$
3#-
4MODS1 = dim2_driver.f90 \
5        weather.f90 \
6        readdim2.f90 \
7        teststomate.f90 \
8        forcesoil.f90 \
9        getprec.f90
10
11all : orchidee_ol teststomate forcesoil
12
13orchidee_ol:
14        $(M_K) m_orchidee_ol
15        @echo orchidee_ol is OK
16
17m_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
28teststomate:
29        $(M_K) m_teststomate
30        @echo teststomate is OK
31
32m_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
42forcesoil:
43        $(M_K) m_forcesoil
44        @echo m_forcesoil is OK
45
46m_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
56libioipsl:
57        (cd ../../IOIPSL/src; $(M_K) -f Makefile)
58
59clean:
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
Note: See TracBrowser for help on using the repository browser.