source: trunk/LMDZ.COMMON/bld.cfg @ 3539

Last change on this file since 3539 was 3475, checked in by afalco, 2 months ago

compilation: SUFF_DIR != SUFF_NAME
to distinguish the compilation folder from the executable name.
SUFF_DIR not empty when compiling in libphy mode (was creating a bug when compiling dynamico, by mixing multiple physics together).
AF

File size: 3.4 KB
Line 
1# ----------------------- FCM extract configuration file -----------------------
2cfg::type                           bld
3cfg::version                        1.0
4
5
6# ------------------------------------------------------------------------------
7# Build information
8# ------------------------------------------------------------------------------
9
10#Default value of FPP fortran preprocessor
11%FPP cpp
12# C preprocessor
13%CPP cpp
14
15inc arch.fcm
16inc config.fcm
17
18%CONFIG_NAME       %{ARCH}%{SUFF_DIR}
19%BASE_CONFIG_PATH  %LIBO/%CONFIG_NAME
20%CONFIG_PATH       %BASE_CONFIG_PATH/.config
21%SRC_PATH          %LIBF
22
23%FFLAGS            %BASE_FFLAGS %COMPIL_FFLAGS %PARA_FFLAGS
24%LD_FLAGS          %BASE_LD %PARA_LD
25
26src::dyn     %SRC_PATH/%DYN
27src::phys    %SRC_PATH/%PHYS
28src::dyn_phys %DYN_PHYS
29src::dyn_phys_sub %DYN_PHYS_SUB
30src::sisvat  %SISVAT
31src::rrtm    %RRTM
32src::dust    %DUST
33src::strataer %STRATAER
34src::grid    %SRC_PATH/grid
35src::filtrez %FILTRE
36src::misc   %SRC_PATH/misc
37src::dyn3d_common   %DYN_COMMON
38src::phy_common %PHY_COMMON
39src::cosp    %COSP
40src::chem    %CHEM
41src::cloud   %CLOUD
42src::muphy   %MUPHY
43src::aerono  %AERONO
44src::evolution  %EVOLUTION
45
46# IMPORTANT: muphytitan package hates floating point promotion !
47# This is unfortunately specific to Titan microphysic package !!
48bld::tool::fflags::muphy  -c %INCDIR %COMPIL_FFLAGS %PARA_FFLAGS
49
50bld::lib            lmdz
51
52
53bld::outfile_ext::exe    %SUFF_NAME
54bld::target              liblmdz.a %EXEC%SUFF_NAME
55bld::exe_dep
56
57
58dir::root            %CONFIG_PATH
59#dir::lib             %BASE_CONFIG_PATH
60dir::bin             %ROOT_PATH/bin
61
62#search_src           1
63
64bld::tool::fpp       %FPP
65bld::tool::cpp       %CPP
66bld::tool::fc        %COMPILER
67bld::tool::cc        %C_COMPILER
68bld::tool::ld        %LINK
69bld::tool::ar        %AR
70bld::tool::make      %MAKE
71bld::tool::fflags    %FFLAGS %INCDIR
72bld::tool::cflags    %C_OPTIM %INCDIR
73bld::tool::ldflags   %LD_FLAGS %LIB
74
75bld::tool::cppflags  %CPP_FLAGS %INCDIR
76bld::tool::fppflags  %FPP_FLAGS %INCDIR
77bld::tool::cppkeys   %CPP_KEY %CPP_DEF
78bld::tool::fppkeys   %CPP_KEY %FPP_DEF
79
80# Example of how to set specific compiling options for a specific file
81# -> this can be including in the arch.opt file
82#bld::tool::fflags::phys::readaerosol         %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -C hopt -pi auto
83
84
85inc arch.opt
86
87# Pre-process code before analysing dependencies
88bld::pp              1
89
90# Ignore the following dependencies
91bld::excl_dep        inc::netcdf.inc
92bld::excl_dep        use::netcdf
93bld::excl_dep        use::typesizes
94bld::excl_dep        h::netcdf.inc
95bld::excl_dep        h::mpif.h
96bld::excl_dep        inc::mpif.h
97bld::excl_dep        use::ioipsl
98bld::excl_dep        use::intersurf
99bld::excl_dep        use::mod_prism_proto
100bld::excl_dep        use::mod_prism_def_partition_proto
101bld::excl_dep        use::mod_prism_get_proto
102bld::excl_dep        use::mod_prism_put_proto
103bld::excl_dep        use::mod_prism
104bld::excl_dep        use::xios
105bld::excl_dep        use::iaxis
106bld::excl_dep        use::iaxis_attr
107bld::excl_dep        use::icontext_attr
108bld::excl_dep        use::idate
109bld::excl_dep        use::idomain_attr
110bld::excl_dep        use::ifield_attr
111bld::excl_dep        use::ifile_attr
112bld::excl_dep        use::ixml_tree
113
114# Don't generate interface files
115bld::tool::geninterface none
116
117# Allow ".inc" as an extension for CPP include files
118bld::infile_ext::inc  CPP::INCLUDE
119
120# extension for module output
121bld::outfile_ext::mod .mod
122bld::tool::SHELL   /bin/bash
Note: See TracBrowser for help on using the repository browser.