source: branches/publications/ORCHIDEE_gmd-2018-57/src_global/AA_make @ 5143

Last change on this file since 5143 was 3965, checked in by jan.polcher, 8 years ago

Merge with trunk at revision3959.
This includes all the developments made for CMIP6 and passage to XIOS2.
All conflicts are resolved and the code compiles.

But it still does not link because of an "undefined reference to `_intel_fast_memmove'"

  • Property svn:keywords set to Id
File size: 1.7 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  \
14        gauss_jordan_method.f90 \
15        interpweight.f90
16
17OBJSMODS1 = $(MODS1:.f90=.o)
18#-
19.PRECIOUS : $(MODEL_LIB)
20#-Q- sxnec  .PRECIOUS : $(SXMODEL_LIB)
21#-Q- sx6nec .PRECIOUS : $(SXMODEL_LIB)
22#-Q- eshpux .PRECIOUS : $(SXMODEL_LIB)
23#-Q- sx8brodie .PRECIOUS : $(SXMODEL_LIB)
24#-
25all:
26        $(M_K) libparallel
27        $(M_K) libparameters
28        $(M_K) m_all
29        @echo orglob is OK
30
31m_all: $(MODEL_LIB)($(OBJSMODS1))
32
33libparallel:
34        (cd ../src_parallel; $(M_K) -f Makefile)
35
36libparameters:
37        (cd ../src_parameters; $(M_K) -f Makefile)
38
39$(MODEL_LIB)(%.o) : %.f90
40        $(F_C) $(F_O) -I$(NCDF_INC) $*.f90
41        $(A_C) $(MODEL_LIB) $*.o
42        $(A_C) $(ORCHIDEE_LIB) $*.o
43#-Q- sxnec      $(A_X) $(SXMODEL_LIB) $*.o
44#-Q- sxnec      mv $*.mod $(MODDIR)
45#-Q- sx6nec     $(A_X) $(SXMODEL_LIB) $*.o
46#-Q- sx6nec     mv $*.mod $(MODDIR)
47#-Q- eshpux     $(A_X) $(SXMODEL_LIB) $*.o
48#-Q- eshpux     mv $*.mod $(MODDIR)
49#-Q- sx8mercure         mv $*.mod $(MODDIR)
50#-Q- sx9mercure         mv $*.mod $(MODDIR)
51#-Q- sx8brodie  $(A_X) $(SXMODEL_LIB) $*.o
52#-Q- sx8brodie  mv $*.mod $(MODDIR)
53#-Q- solaris    mv $*.mod $(MODDIR)
54        $(RM) $*.o
55
56config :
57        $(BINDIR)/Fparser -name ORGLOB $(MODS1)
58        echo 'Configuration of ORGLOB done'
59
60clean:
61        $(RM) $(MODEL_LIB)
62
63$(MODEL_LIB)(grid.o): \
64  $(PARAM_LIB)(constantes.o)
65
66$(MODEL_LIB)(interpol_help.o): \
67  $(PARAM_LIB)(constantes.o)
68
69$(MODEL_LIB)(gauss_jordan_method.o): \
70  $(PARAM_LIB)(constantes.o)
71
72$(MODEL_LIB)(interpweight.o): \
73  $(PARAM_LIB)(constantes.o)
Note: See TracBrowser for help on using the repository browser.