source: tags/ORCHIDEE_1_9_5_1/ORCHIDEE/src_parameters/AA_make @ 744

Last change on this file since 744 was 41, checked in by mmaipsl, 14 years ago

MM, MasaK : Group all definitions of R_Earth in the whole ORCHIDEE code : use a global

definition in constantes.f90

MM, NVui, DS: inverse compilation order of src_parallel and src_parameters

directories.
Now src_parallel will compile first.

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1#-
2#- $Id$
3#-
4IOIPSL_LIB = $(LIBDIR)/libioipsl.a
5SXIOIPSL_LIB = $(IOIPSL_LIB)
6#-Q- sxnec SXIOIPSL_LIB = $(LIBDIR)/libsxioipsl.a
7#-Q- sx6nec SXIOIPSL_LIB = $(LIBDIR)/libsxioipsl.a
8#-Q- eshpux SXIOIPSL_LIB = $(LIBDIR)/libsxioipsl.a
9#-Q- sx8brodie SXIOIPSL_LIB = $(LIBDIR)/libsxioipsl.a
10#-
11PARALLEL_LIB = $(LIBDIR)/libparallel.a
12SXPARALLEL_LIB = $(PARALLEL_LIB)
13#-Q- sxnec  SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
14#-Q- sx6nec SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
15#-Q- eshpux SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
16#-Q- sx8brodie SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
17#-
18MODS1 = constantes.f90 \
19        constantes_veg.f90 \
20        constantes_soil.f90 \
21        constantes_co2.f90
22OBJSMODS1 = $(MODS1:.f90=.o)
23#-
24.PRECIOUS : $(MODEL_LIB)
25#-Q- sxnec  .PRECIOUS : $(SXMODEL_LIB)
26#-Q- sx6nec .PRECIOUS : $(SXMODEL_LIB)
27#-Q- eshpux .PRECIOUS : $(SXMODEL_LIB)
28#-Q- sx8brodie .PRECIOUS : $(SXMODEL_LIB)
29#-
30all:
31        $(M_K) libioipsl
32        $(M_K) libparallel
33        $(M_K) m_all
34        @echo parameter is OK
35
36m_all: $(MODEL_LIB)($(OBJSMODS1))
37
38libioipsl:
39        (cd ../../IOIPSL/src; $(M_K) -f Makefile)
40
41libparallel:
42        (cd ../src_parallel; $(M_K) -f Makefile)
43
44$(MODEL_LIB)(%.o): %.f90
45        $(F_C) $(F_O) $*.f90
46        $(A_C) $(MODEL_LIB) $*.o
47#-Q- sxnec      $(A_X) $(SXMODEL_LIB) $*.o
48#-Q- sxnec      mv $*.mod $(MODDIR)
49#-Q- sx6nec     $(A_X) $(SXMODEL_LIB) $*.o
50#-Q- sx6nec     mv $*.mod $(MODDIR)
51#-Q- eshpux     $(A_X) $(SXMODEL_LIB) $*.o
52#-Q- eshpux     mv $*.mod $(MODDIR)
53#-Q- sx8mercure         mv $*.mod $(MODDIR)
54#-Q- sx9mercure         mv $*.mod $(MODDIR)
55#-Q- sx8brodie  $(A_X) $(SXMODEL_LIB) $*.o
56#-Q- sx8brodie  mv $*.mod $(MODDIR)
57#-Q- solaris    mv $*.mod $(MODDIR)
58        $(RM) $*.o
59
60config:
61        $(BINDIR)/Fparser -name PARAMETERS  $(MODS1)
62        echo 'Configuration of PARAMETERS done'
63 
64clean:
65        $(RM) $(MODEL_LIB)
66 
67$(MODEL_LIB)(constantes_co2.o): \
68  $(MODEL_LIB)(constantes_veg.o)
69$(MODEL_LIB)(constantes_veg.o): \
70  $(MODEL_LIB)(constantes_soil.o)
71$(MODEL_LIB)(constantes_soil.o): \
72  $(MODEL_LIB)(constantes.o)
73$(MODEL_LIB)(constantes.o): \
74  $(PARALLEL_LIB) \
75  $(IOIPSL_LIB)
76
Note: See TracBrowser for help on using the repository browser.