Gaelle 18/6/14 : add CPPFLAGS for RTTOV
[MNH-git_open_source-lfs.git] / src / Makefile.MESONH.mk
1 #MNH_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
2 #MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
3 #MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt  
4 #MNH_LIC for details. version 1.
5 ##########################################################
6 #                                                        #
7 #           Initialisation of some variables             #
8 #                                                        #
9 ##########################################################
10 ifdef OBJDIR_PATH
11 OBJDIR_ROOT=${OBJDIR_PATH}/dir_obj
12 else
13 OBJDIR_ROOT=${PWD}/dir_obj
14 endif
15 LIB_OBJS_ROOT=lib
16 #
17 ARCH_XYZ=${ARCH}${MNH_REAL}${MNH_INT}-${VERSION_XYZ}
18 ##########################################################
19 #                                                        #
20 #            Source DIRECTORY                            #
21 #                                                        #
22 ##########################################################
23
24 ##########################################################
25 #           Source MYSRC                                 #
26 ##########################################################
27 ifdef VER_USER
28 DIR_USER += ${VER_USER}
29 endif
30 ifdef MNH_NCWRIT
31 CPPFLAGS_MNH += -D${MNH_NCWRIT}
32 endif
33 ##########################################################
34 #           Source MNH                                   #
35 ##########################################################
36 # PRE_BUG TEST !!!
37 #DIR_MNH += ARCH_SRC/bug_mnh
38 # PRE_BUG TEST !!!
39 #
40 DIR_MNH += MNH
41 INC_MNH += -I$(B)include
42 #CPPFLAGS_MNH =
43 #
44 ifdef DIR_MNH
45 DIR_MASTER += $(DIR_MNH)
46 CPPFLAGS   += $(CPPFLAGS_MNH)
47 INC        += $(INC_MNH)
48
49 OBJS_NOCB +=  spll_dxf.o spll_dxm.o spll_dyf.o spll_dym.o \
50         spll_dzf.o spll_dzm.o spll_mxf.o \
51         spll_mxm.o spll_myf.o spll_mym.o spll_mzf.o \
52         spll_mzm.o spll_mzf4.o spll_mzm4.o  \
53         spll_gx_m_m.o spll_gx_m_u.o spll_gy_m_m.o \
54         spll_gy_m_v.o spll_gz_m_m.o spll_gz_m_w.o \
55         spll_dzf_mf.o spll_dzm_mf.o spll_mzf_mf.o spll_mzm_mf.o
56
57 $(OBJS_NOCB) : OPT = $(OPT_NOCB)
58
59 OBJS0 += spll_switch_sbg_lesn.o spll_mode_mppdb.o
60
61 $(OBJS0)     : OPT = $(OPT0) 
62
63 endif
64 ##########################################################
65 #           Source SURFEX                                #
66 ##########################################################
67 # PRE_BUG TEST !!!
68 #DIR_SURFEX += ARCH_SRC/bug_surfex
69 # PRE_BUG TEST !!!
70 #
71 DIR_SURFEX += ARCH_SRC/surfex
72 DIR_SURFEX += SURFEX
73 #CPPFLAGS_SURFEX=
74 #
75 ifdef DIR_SURFEX
76 DIR_MASTER += $(DIR_SURFEX)
77 CPPFLAGS   += $(CPPFLAGS_SURFEX)
78 VER_SURFEX=SURFEX-4-8-0
79 #ARCH_XYZ    := $(ARCH_XYZ)-$(VER_MYSRC)
80
81 OBJS_NOCB +=  spll_mode_cover_301_573.o 
82
83 $(OBJS0): OPT = $(OPT0) 
84
85 endif
86 ##########################################################
87 #           Source SURCOUCHE                             #
88 ##########################################################
89 # PRE_BUG TEST !!!
90 #DIR_SURCOUCHE += ARCH_SRC/bug_surcouche
91 # PRE_BUG TEST !!!
92 #
93 DIR_SURCOUCHE += LIB/SURCOUCHE/src
94 #CPPFLAGS_SURCOUCHE = -DMNH_MPI_DOUBLE_PRECISION -DMNH_LINUX -DMNH_MPI_BSEND -DNAGf95
95 #
96 ifdef DIR_SURCOUCHE
97 DIR_MASTER   += $(DIR_SURCOUCHE)
98 CPPFLAGS     += $(CPPFLAGS_SURCOUCHE)
99 #VER_SURCOUCHE=
100 #ARCH_XYZ    := $(ARCH_XYZ)-$(VER_SURCOUCHE)
101 endif
102 ##########################################################
103 #           Source RAD                                   #
104 ##########################################################
105 # PRE_BUG TEST !!!
106 #DIR_RAD      += ARCH_SRC/bug_rad
107 # PRE_BUG TEST !!!
108 #
109 DIR_RAD      +=  LIB/RAD/ECMWF_RAD
110 #CPPFLAGS_RAD =
111 INC_RAD      = -I$(B)LIB/RAD/ECMWF_RAD
112 #
113 ifdef DIR_RAD
114 DIR_MASTER  += $(DIR_RAD)
115 CPPFLAGS    += $(CPPFLAGS_RAD)
116 INC         += $(INC_RAD)
117
118 IGNORE_DEP_MASTER   += olwu.D olwv.D rad1Driv_MACLATMOSPH_60LEVELS_ICRCCM3.D tstrad.D tstrad_chansubset.D tstrad_rttov7.D \
119                        tstrad_sx6.D
120
121 OBJS0 += spll_rrtm_kgb1.o spll_rrtm_kgb14.o spll_rrtm_kgb3_a.o spll_rrtm_kgb4_b.o \
122         spll_rrtm_kgb5_c.o spll_rrtm_kgb10.o spll_rrtm_kgb15.o spll_rrtm_kgb3_b.o \
123         spll_rrtm_kgb4_c.o spll_rrtm_kgb6.o spll_rrtm_kgb11.o spll_rrtm_kgb16.o \
124         spll_rrtm_kgb3_c.o spll_rrtm_kgb5.o spll_rrtm_kgb7.o spll_rrtm_kgb12.o \
125         spll_rrtm_kgb2.o spll_rrtm_kgb4.o spll_rrtm_kgb5_a.o spll_rrtm_kgb8.o \
126         spll_rrtm_kgb13.o spll_rrtm_kgb3.o spll_rrtm_kgb4_a.o spll_rrtm_kgb5_b.o \
127         spll_rrtm_kgb9.o spll_read_xker_raccs.o spll_read_xker_rdryg.o spll_read_xker_sdryg.o \
128         spll_suecaebc.o  spll_suecaec.o  spll_suecaeor.o  spll_suecaesd.o \
129         spll_suecaess.o  spll_suecaesu.o spll_suecozc.o  spll_suecozo.o
130
131 $(OBJS0): OPT = $(OPT0) 
132
133 endif
134 ##########################################################
135 #           Source RTTOV                                 #
136 ##########################################################
137 ifdef MNH_RTTOV
138 DIR_RTTOV      +=  LIB/RTTOV/src
139 CPPFLAGS_RTTOV = -DMNH_RTTOV
140 INC_RTTOV      = -I$(B)LIB/RTTOV/src
141 #
142 DIR_MASTER  += $(DIR_RTTOV)
143 CPPFLAGS    += $(CPPFLAGS_RTTOV)
144 INC         += $(INC_RTTOV)
145 #VER_RTTOV      = RTTOV87
146 #ARCH_XYZ    := $(ARCH_XYZ)-$(VER_RAD)
147 endif
148 ##########################################################
149 #           Source NEWLFI                                #
150 ##########################################################
151 DIR_NEWLFI      += LIB/NEWLFI/src
152 #CPPFLAGS_NEWLFI = -DSWAPIO -DLINUX
153 INC_NEWLFI      = -I$(B)LIB/NEWLFI/src
154 #
155 ifdef DIR_NEWLFI
156 #
157 # Management/parametrisation of size of INTEGER ofr file > 16 GO & RECL for LFI
158 #
159 LFI_INT?=4
160 ifneq "$(findstring 8,$(LFI_INT))" ""
161 OBJS_I8=spll_NEWLFI_ALL.o
162 $(OBJS_I8) : OPT = $(OPT_BASE) $(OPT_PERF2) $(OPT_INT8)
163 endif
164 #
165 # Management/parametrisation of size of RECL for LFI I/O speedup 
166 #
167 LFI_RECL?=512
168 #
169 DIR_MASTER          += $(DIR_NEWLFI)
170 CPPFLAGS            += $(CPPFLAGS_NEWLFI)
171 OBJS_LISTE_MASTER   += fswap8buff.o
172 INC                 += $(INC_NEWLFI)
173 VPATH               += $(DIR_NEWLFI)
174 #VER_NEWLFI=
175 #ARCH_XYZ    := $(ARCH_XYZ)-$(VER_NEWLFI)
176 endif
177 ##########################################################
178 #           Source FOREFIRE                              #
179 ##########################################################
180 ifdef MNH_FOREFIRE
181 DIR_FOREFIRE          += LIB/FOREFIRE
182 INC_FOREFIRE           = -I$(B)$(DIR_FOREFIRE)
183 DIR_MASTER            += $(DIR_FOREFIRE)
184 OBJS_LISTE_MASTER     += C_ForeFire_Interface.o
185 INC                   += $(INC_FOREFIRE)
186 VPATH                 += $(DIR_FOREFIRE)
187 CPPFLAGS              += -DMNH_FOREFIRE
188 endif
189 ##########################################################
190 #           Source MPIVIDE                               #
191 ##########################################################
192 #
193 ifndef VER_MPI
194 VER_MPI=MPIVIDE
195 endif
196 #VER_MPI=MPIVIDE,LAMMPI,LAMMPI-IB,MPICH-IB
197 #
198 #   MPIVIDE
199 #
200 ifeq "$(VER_MPI)" "MPIVIDE"
201 DIR_MPI               += LIB/MPIvide
202 INC_MPI                = -I$(B)$(DIR_MPI)
203 DIR_MASTER            += $(DIR_MPI)
204 OBJS_LISTE_MASTER     += mpivide.o
205 INC                   += $(INC_MPI)
206 mpivide.o  : CPPFLAGS += -DFUJI \
207                         -I$(DIR_MPI)/include
208 VPATH                 += $(DIR_MPI)
209 endif
210 #
211 #   LAMMPI
212 #
213 ifeq "$(VER_MPI)" "LAMMPI"
214 # Standard Lam mpi
215 #INC_MPI     = -I$(B)/opt/lam/include
216 #LIB_MPI     = -L/opt/lam/lib   -lmpi -llammpi++ -llammpio -llamf77mpi -lmpi -llam -lpthread -ldl
217 # default 64 bits SUSE 9 version
218 INC_MPI     = -I$(B)/usr/include
219 LIB_MPI     = -lmpi -llammpi++ -llammpio -llamf77mpi -lmpi -llam -lpthread -ldl -lutil 
220 INC            += $(INC_MPI)
221 LIBS           += $(LIB_MPI)
222 endif
223 #
224 #   LAMMPI-IB
225 #
226 ifeq "$(VER_MPI)" "LAMMPI-IB"
227 INC_MPI     = -I/home/sila/LAM-7.1.1/include
228 LIB_MPI     = -L/usr/local/ibgd/driver/infinihost/lib64 -L/home/sila/LAM-7.1.1/lib \
229 -llammpio -llamf77mpi -lmpi -llam -lutil -lmosal -lmpga -lmtl_common -lvapi -ldl  -lpthread
230 INC            += $(INC_MPI)
231 LIBS           += $(LIB_MPI)
232 endif
233 #
234 #   MPICH-IB
235 #
236 ifeq "$(VER_MPI)" "MPICH-IB"
237 INC_MPI     = -I/usr/local/ibgd/mpi/osu/f95/mvapich-0.9.5/include
238 LIB_MPI     = -L/usr/local/ibgd/driver/infinihost/lib64 \
239                  -L/usr/local/ibgd/mpi/osu/f95/mvapich-0.9.5/lib \
240                  -lmpich -lmtl_common -lvapi -lmosal -lmpga -lpthread
241 INC            += $(INC_MPI)
242 LIBS           += $(LIB_MPI)
243 endif
244 #
245 #   MPICH-2 CNRM
246 #
247 ifeq "$(VER_MPI)" "MPICH2"
248 INC_MPI     = -I/usr/include
249 LIB_MPI     = -lmpichf90 -lmpich 
250 INC            += $(INC_MPI)
251 LIBS           += $(LIB_MPI)
252 endif
253
254 #
255 #   OPENMPI 1.1 CNRM
256 #
257 ifeq "$(VER_MPI)" "OMPICNRM"
258 MPI_ROOT=/opt/openmpi
259 INC_MPI = -I${MPI_ROOT}/include  -I${MPI_ROOT}/include/openmpi/ompi -I${MPI_ROOT}/lib64
260 LIB_MPI     = -L${MPI_ROOT}/lib64 -lmpi -lopen-rte -lopen-pal -lutil -lnsl -ldl -Wl,--export-dynamic -lm -lutil -lnsl -ldl
261 INC            += $(INC_MPI)
262 LIBS           += $(LIB_MPI)
263 endif
264
265 #
266 #   OPENMPI 1.1 BPROC + OPENIB + IFORT
267 #
268 ifeq "$(VER_MPI)" "OMPIIFORT"
269 MPI_ROOT=/home/sila/DEV/OPEN-MPI-11-IFORT-BPROC-OPENIB
270 INC_MPI     = -I${MPI_ROOT}/include -I${MPI_ROOT}/include/openmpi/ompi -I${MPI_ROOT}/lib
271 LIB_MPI     = -L${MPI_ROOT}/lib -lmpi -lorte -lopal -lutil -lnsl -ldl -Wl,--export-dynamic -lm -lutil -lnsl -ldl
272 INC            += $(INC_MPI)
273 LIBS           += $(LIB_MPI)
274 endif
275
276 #
277 #   OPENMPI 1.1.4 IFORT BPROC
278 #
279 ifeq "$(VER_MPI)" "OMPI114IFORT"
280 MPI_ROOT=/home/sila/DEV/OPEN-MPI-114-IFORT-BPROC-OPENIB
281 INC_MPI     = -I${MPI_ROOT}/include -I${MPI_ROOT}/include/openmpi/ompi -I${MPI_ROOT}/lib
282 LIB_MPI     = -L${MPI_ROOT}/lib -lmpi -lorte -lopal -lutil -lnsl -ldl -Wl,--export-dynamic -lm -lutil -lnsl -ldl
283 INC            += $(INC_MPI)
284 LIBS           += $(LIB_MPI)
285 endif
286
287 #
288 #   OPENMPI 1.2.2 G95 BPROC
289 #
290 ifeq "$(VER_MPI)" "OMPI122G95"
291 MPI_ROOT=/home/sila/DEV/OPEN-MPI-122-G95-BPROC-OPENIB
292 INC_MPI     = -I${MPI_ROOT}/include -I${MPI_ROOT}/include/openmpi/ompi -I${MPI_ROOT}/lib
293 LIB_MPI     = -L${MPI_ROOT}/lib -lmpi_f90 -lmpi_f77 -lmpi -lopen-rte -lopen-pal -Wl,--export-dynamic -lm -lutil -lnsl -ldl
294 INC            += $(INC_MPI)
295 LIBS           += $(LIB_MPI)
296 endif
297 #
298 #   OPENMPI12X
299 #
300 ifeq "$(VER_MPI)" "OMPI12X"
301 INC_MPI     = -I${MPI_ROOT}/include -I${MPI_ROOT}/include/openmpi/ompi -I${MPI_ROOT}/lib
302 LIB_MPI     = -L${MPI_ROOT}/lib -lmpi_f90 -lmpi_f77 -lmpi -lopen-rte -lopen-pal -Wl,--export-dynamic -lm -lutil -lnsl -ldl
303 INC            += $(INC_MPI)
304 LIBS           += $(LIB_MPI)
305 endif
306 #
307 #   MPI for SGI-ICE 
308 #
309 ifeq "$(VER_MPI)" "MPIICE"
310 INC_MPI     = 
311 LIB_MPI     = -lmpi
312 INC            += $(INC_MPI)
313 LIBS           += $(LIB_MPI)
314 endif
315
316
317 ARCH_XYZ    := $(ARCH_XYZ)-$(VER_MPI)
318 ##########################################################
319 #           Librairie GRIBEX                             #
320 ##########################################################
321 #ifneq "$(ARCH)" "BG"
322 # Gribex bypass on BG for the moment
323 #DIR_GRIBEX     +=  LIB/GRIBEX
324 #endif
325 #
326 #ifdef DIR_GRIBEX
327 #LIB_GRIBEX     =  $(DIR_GRIBEX)_$(ARCH)/libgribexR64.a
328 #LIBS          +=    $(LIB_GRIBEX)
329 #R64_GRIBEX=R64
330 #endif
331 ##########################################################
332 #           Librairie GRIBAPI                            #
333 ##########################################################
334 #ifneq "$(ARCH)" "BG"
335 # Gribapi bypass on BG for the moment
336 DIR_GRIBAPI?=${SRC_MESONH}/src/LIB/grib_api-${VERSION_GRIBAPI}
337 GRIBAPI_PATH?=${OBJDIR_MASTER}/GRIBAPI-${VERSION_GRIBAPI}
338 #GRIBAPI_PATH?=${DIR_GRIBAPI}-${ARCH}${MNH_INT}
339 GRIBAPI_INC?=${GRIBAPI_PATH}/include/grib_api.mod
340 #endif
341 #
342 ifdef DIR_GRIBAPI
343 INC_GRIBAPI   ?= -I${GRIBAPI_PATH}/include
344 LIB_GRIBAPI   ?= -L${GRIBAPI_PATH}/lib -L${GRIBAPI_PATH}/lib64 -lgrib_api_f90 -lgrib_api
345 INC           += $(INC_GRIBAPI)
346 LIBS          += $(LIB_GRIBAPI)
347 VPATH         += $(GRIBAPI_PATH)/include
348 R64_GRIBAPI=R64
349 endif
350 ##########################################################
351 #           Librairie NETCDF                             #
352 ##########################################################
353 #
354 # NetCDF  : AUTO install of netcdf-3.6.X on PC linux to avoid problem with compiler
355 #  
356 #
357 ifeq "$(VER_CDF)" "CDFAUTO"
358 DIR_CDF?=${SRC_MESONH}/src/LIB/netcdf-${VERSION_CDF}
359 CDF_PATH?=${DIR_CDF}-${ARCH}${MNH_INT}
360 CDF_INC?=${CDF_PATH}/include/netcdf.inc
361 #
362 INC_NETCDF     ?= -I${CDF_PATH}/include
363 LIB_NETCDF     ?= -L${CDF_PATH}/lib -L${CDF_PATH}/lib64 -lnetcdf_c++ -lnetcdf
364 INC            += $(INC_NETCDF)
365 LIBS           += $(LIB_NETCDF)
366 endif
367 #
368 # NetCDF in beaufix (bull meteo-france)
369 ifeq "$(VER_CDF)" "CDFBFIX"
370 CDF_PATH?=/opt/softs/libraries/ICC13.1.4.183/netcdf-4.3.0
371 INC_NETCDF     ?= -I${CDF_PATH}/include
372 LIB_NETCDF     ?= -L${CDF_PATH}/lib -lnetcdf -lnetcdff
373 INC            += $(INC_NETCDF)
374 LIBS           += $(LIB_NETCDF)
375 endif
376 #
377 # NetCDF in BGQ
378 #
379 ifeq "$(VER_CDF)" "CDFBGQ"
380 CDF_PATH?=/bglocal/cn/pub/NetCDF/4.1.3/
381 INC_NETCDF     ?= -I${CDF_PATH}/include
382 LIB_NETCDF     ?= -L${CDF_PATH}/lib -lnetcdff -lnetcdf_c++ -lnetcdf
383 INC            += $(INC_NETCDF)
384 LIBS           += $(LIB_NETCDF)
385 HDF5_PATH?=/bglocal/cn/pub/HDF5/1.8.9/par/
386 LIB_HDF5       ?= -L${HDF5_PATH}/lib -lhdf5hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 -lm
387 LIBS           += $(LIB_HDF5)
388 LIBZ_PATH?=/bglocal/cn/pub/zlib/1.2.5
389 LIB_LIBZ       ?= -L${LIBZ_PATH}/lib -lz
390 LIBS           += $(LIB_LIBZ)
391
392 endif
393 #
394 # NetCDF in SGI ICE
395 #
396 ifeq "$(VER_CDF)" "CDFICE"
397 CDF_PATH?=/opt/software/SGI/netcdf/4.0
398 INC_NETCDF     ?= -I${CDF_PATH}/include
399 LIB_NETCDF     ?= -L${CDF_PATH}/lib -lnetcdff  -lnetcdf -i_dynamic 
400 INC            += $(INC_NETCDF)
401 LIBS           += $(LIB_NETCDF)
402 endif
403 #
404 # NetCDF in NEC SX
405 #
406 ifeq "$(VER_CDF)" "CDFSX"
407 CDF_PATH?=/SXlocal/pub/netcdf/3.6.1
408 INC_NETCDF     ?= -I${CDF_PATH}/include
409 LIB_NETCDF     ?= -L${CDF_PATH}/lib -lnetcdf_c++ -lnetcdf
410 INC            += $(INC_NETCDF)
411 LIBS           += $(LIB_NETCDF)
412 endif
413 #
414 ifeq "$(VER_CDF)" "CDFMFSX"
415 CDF_PATH?=/usr/local/SX/lib/NETCDF_size_t32
416 INC_NETCDF     ?= -I${CDF_PATH}/include
417 LIB_NETCDF     ?= -L${CDF_PATH}/lib -lnetcdf
418 INC            += $(INC_NETCDF)
419 LIBS           += $(LIB_NETCDF)
420 endif
421 #
422 # NetCDF in prefix (bull meteo-france)
423 ifeq "$(VER_CDF)" "CDFBULL"
424 CDF_PATH?=/home_nfs/local/Icc13.0.1/netcdf-4.2.1.1
425 INC_NETCDF     ?= -I${CDF_PATH}/include
426 LIB_NETCDF     ?= -L${CDF_PATH}/lib -lnetcdf -lnetcdff
427 INC            += $(INC_NETCDF)
428 LIBS           += $(LIB_NETCDF)
429 endif
430 #
431
432 # NetCDF in AIX S
433 #
434 ifeq "$(VER_CDF)" "CDFAIX"
435 CDF_PATH?=/usr/local/pub/NetCDF/3.6.2
436 INC_NETCDF     ?= -I${CDF_PATH}/include
437 LIB_NETCDF     ?= -L${CDF_PATH}/lib -lnetcdf_c++ -lnetcdf
438 INC            += $(INC_NETCDF)
439 LIBS           += $(LIB_NETCDF)
440 endif
441
442 #
443 # Linux with gfortran SUSE10.3
444 #
445 ifeq "$(VER_CDF)" "CDFGFOR"
446 INC_NETCDF     ?=  -I/usr/include
447 LIB_NETCDF     ?=  -lnetcdf -lnetcdff /usr/lib64/libgfortran.so.2
448 #LIB_NETCDF     ?=  -lnetcdf -lnetcdff 
449 INC            += $(INC_NETCDF)
450 LIBS           += $(LIB_NETCDF)
451 endif
452
453 #
454 # Linux with netcdf CTI 3.6.3
455 #
456 ifeq "$(VER_CDF)" "CDFCTI"
457 CDF_PATH?=/usr
458 INC_NETCDF     = -I${CDF_PATH}/include
459 LIB_NETCDF     = -L${CDF_PATH}/lib64 -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lsz -lz
460 INC            += $(INC_NETCDF)
461 LIBS           += $(LIB_NETCDF)
462 endif
463
464 #
465 # Linux with gfortran SUSE11.1
466 #
467 ifeq "$(VER_CDF)" "CDF3GFOR"
468 CDF_PATH       ?=/opt/netcdf3
469 INC_NETCDF     ?=  -I${CDF_PATH}/include
470 LIB_NETCDF     ?=  -L${CDF_PATH}/lib64  -lnetcdf_c++ -lnetcdf
471 INC            +=  $(INC_NETCDF)
472 LIBS           +=  $(LIB_NETCDF)
473 endif
474
475 ##########################################################
476 #           Number of NESTED MODEL                       #
477 ##########################################################
478 NSOURCE=8
479 ##########################################################
480 #                                                        #
481 # PROG_LIST : Main program liste to compile              #
482 #                                                        #
483 ##########################################################
484 #
485 #ifeq "$(ARCH)" "BGQ"
486 #PROG_LIST += MESONH PREP_IDEAL_CASE PREP_PGD
487 #else
488 PROG_LIST += MESONH  LATLON_TO_XY PREP_IDEAL_CASE PREP_REAL_CASE PREP_PGD \
489             PREP_NEST_PGD SPAWNING DIAG PREP_SURFEX ZOOM_PGD SPECTRE \
490             MNH2LPDM
491 #endif
492 ##########################################################
493 #                                                        #
494 # LIB_OBJS : Librarie of all *.o                         #
495 #                                                        #
496 ##########################################################
497 #
498 ARCH_XYZ        := $(ARCH_XYZ)-$(OPTLEVEL)
499 OBJDIR_ROOT     := $(OBJDIR_ROOT)-$(ARCH_XYZ)
500 LIB_OBJS_ROOT   := $(LIB_OBJS_ROOT)-$(ARCH_XYZ)
501 #
502 ##########################################################
503 #                                                        #
504 # IGNORE_OBJS : some *.o to ignore                       #
505 #       ---> unused unsupported old routines             #
506 #                                                        #
507 ##########################################################
508 #
509 IGNORE_OBJS += spll_olwu.o spll_olwv.o spll_rad1driv.o spll_radlsw.o spll_suovlp.o \
510             spll_ch_init_model0d.o spll_ch_model0d.o spll_ch_svode_fcn.o spll_ch_svode_jac.o
511 IGNORE_DEP_MASTER += modules_diachro.D
512 IGNORE_DEP_MASTER += ch_svode.D ch_model0d.D  \
513           create_file.D def_var_netcdf.D get_dimlen_netcdf.D \
514           handle_err.D init_outfn_isban.D init_outfn_sean.D \
515           init_outfn_surf_atmn.D init_outfn_tebn.D init_outfn_watern.D \
516           ol_find_file.D ol_read_atm.D ol_time_interp_atm.D \
517           read_surf_ol.D write_surf_ol.D \
518 close_file_ol.D close_namelist_ol.D end_io_surf_oln.D \
519 init_io_surf_oln.D modd_io_surf_ol.D modd_ol_fileid.D \
520 open_file_ol.D open_namelist_ol.D read_surf_ol.D write_surf_ol.D offline.D
521
522 #
523 #
524 ##########################################################
525 #                                                        #
526 #  VPATH_EXCLUDE : Some sources directory to exclude     #
527 #                                                        #
528 ##########################################################
529 #
530 VPATH_EXCLUDE= %/CVS
531 #
532
533
534