source: tags/ORCHIDEE_1_9_5_2/ORCHIDEE/src_global/AA_make @ 3637

Last change on this file since 3637 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: 1.5 KB
Line 
1#-
2#- $Id$
3#-
4PARAM_LIB = $(LIBDIR)/libparameters.a
5SXPARAM_LIB = $(PARAM_LIB)
6#-Q- sxnec  SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
7#-Q- sx6nec SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
8#-Q- eshpux SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
9#-Q- sx8brodie SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
10#-
11MODS1 = grid.f90           \
12        solar.f90          \
13        interpol_help.f90
14OBJSMODS1 = $(MODS1:.f90=.o)
15#-
16.PRECIOUS : $(MODEL_LIB)
17#-Q- sxnec  .PRECIOUS : $(SXMODEL_LIB)
18#-Q- sx6nec .PRECIOUS : $(SXMODEL_LIB)
19#-Q- eshpux .PRECIOUS : $(SXMODEL_LIB)
20#-Q- sx8brodie .PRECIOUS : $(SXMODEL_LIB)
21#-
22all:
23        $(M_K) libparallel
24        $(M_K) libparameters
25        $(M_K) m_all
26        @echo orglob is OK
27
28m_all: $(MODEL_LIB)($(OBJSMODS1))
29
30libparallel:
31        (cd ../src_parallel; $(M_K) -f Makefile)
32
33libparameters:
34        (cd ../src_parameters; $(M_K) -f Makefile)
35
36$(MODEL_LIB)(%.o) : %.f90
37        $(F_C) $(F_O) -I$(NCDF_INC) $*.f90
38        $(A_C) $(MODEL_LIB) $*.o
39#-Q- sxnec      $(A_X) $(SXMODEL_LIB) $*.o
40#-Q- sxnec      mv $*.mod $(MODDIR)
41#-Q- sx6nec     $(A_X) $(SXMODEL_LIB) $*.o
42#-Q- sx6nec     mv $*.mod $(MODDIR)
43#-Q- eshpux     $(A_X) $(SXMODEL_LIB) $*.o
44#-Q- eshpux     mv $*.mod $(MODDIR)
45#-Q- sx8mercure         mv $*.mod $(MODDIR)
46#-Q- sx9mercure         mv $*.mod $(MODDIR)
47#-Q- sx8brodie  $(A_X) $(SXMODEL_LIB) $*.o
48#-Q- sx8brodie  mv $*.mod $(MODDIR)
49#-Q- solaris    mv $*.mod $(MODDIR)
50        $(RM) $*.o
51
52config :
53        $(BINDIR)/Fparser -name ORGLOB $(MODS1)
54        echo 'Configuration of ORGLOB done'
55
56clean:
57        $(RM) $(MODEL_LIB)
58
59$(MODEL_LIB)(grid.o): \
60  $(PARAM_LIB)(constantes.o)
61
62$(MODEL_LIB)(interpol_help.o): \
63  $(PARAM_LIB)(constantes_veg.o)
64
Note: See TracBrowser for help on using the repository browser.