1 | # ----------------------- FCM extract configuration file ----------------------- |
---|
2 | cfg::type bld |
---|
3 | cfg::version 1.0 |
---|
4 | |
---|
5 | |
---|
6 | # ------------------------------------------------------------------------------ |
---|
7 | # Build information |
---|
8 | # ------------------------------------------------------------------------------ |
---|
9 | |
---|
10 | #Default value of FPP fortran preprocessor |
---|
11 | %FPP cpp |
---|
12 | |
---|
13 | inc arch.fcm |
---|
14 | inc config.fcm |
---|
15 | |
---|
16 | %CONFIG_NAME %{ARCH}%SUFF_NAME |
---|
17 | %BASE_CONFIG_PATH %LIBO/%CONFIG_NAME |
---|
18 | %CONFIG_PATH %BASE_CONFIG_PATH/.config |
---|
19 | %SRC_PATH %LIBF |
---|
20 | |
---|
21 | %FFLAGS %BASE_FFLAGS %COMPIL_FFLAGS %PARA_FFLAGS |
---|
22 | %LD_FLAGS %BASE_LD %PARA_LD |
---|
23 | |
---|
24 | src::dyn %SRC_PATH/%DYN |
---|
25 | src::phys %SRC_PATH/%PHYS |
---|
26 | #src::sisvat %SRC_PATH/%PHYS/sisvat |
---|
27 | src::grid %SRC_PATH/grid |
---|
28 | src::filtrez %SRC_PATH/filtrez |
---|
29 | src::bibio %SRC_PATH/bibio |
---|
30 | src::dyn3d_common %SRC_PATH/dyn3d_common |
---|
31 | src::cosp %COSP |
---|
32 | src::ext_src %EXT_SRC |
---|
33 | |
---|
34 | bld::lib lmdz |
---|
35 | |
---|
36 | bld::outfile_ext::exe %SUFF_NAME.e |
---|
37 | bld::target liblmdz.a |
---|
38 | bld::target %EXEC%SUFF_NAME.e |
---|
39 | bld::exe_dep |
---|
40 | |
---|
41 | |
---|
42 | dir::root %CONFIG_PATH |
---|
43 | dir::lib %BASE_CONFIG_PATH |
---|
44 | dir::bin %ROOT_PATH/bin |
---|
45 | |
---|
46 | #search_src 1 |
---|
47 | |
---|
48 | bld::tool::fpp %FPP |
---|
49 | bld::tool::fc %COMPILER |
---|
50 | bld::tool::ld %LINK |
---|
51 | bld::tool::ar %AR |
---|
52 | bld::tool::make %MAKE |
---|
53 | bld::tool::fflags %FFLAGS %INCDIR |
---|
54 | bld::tool::ldflags %LD_FLAGS %LIB |
---|
55 | |
---|
56 | bld::tool::cppflags %FPP_FLAGS %INCDIR |
---|
57 | bld::tool::fppflags %FPP_FLAGS %INCDIR |
---|
58 | bld::tool::fppkeys %CPP_KEY %FPP_DEF |
---|
59 | |
---|
60 | |
---|
61 | # Example of how to set specific compiling options for a specific file |
---|
62 | # -> this can be including in the arch.opt file |
---|
63 | #bld::tool::fflags::phys::readaerosol %BASE_FFLAGS %PROD_FFLAGS %INCDIR -C hopt -pi auto |
---|
64 | |
---|
65 | |
---|
66 | inc arch.opt |
---|
67 | |
---|
68 | # Pre-process code before analysing dependencies |
---|
69 | bld::pp 1 |
---|
70 | |
---|
71 | |
---|
72 | # Ignore the following dependencies |
---|
73 | bld::excl_dep inc::netcdf.inc |
---|
74 | bld::excl_dep use::netcdf |
---|
75 | bld::excl_dep use::typesizes |
---|
76 | bld::excl_dep h::netcdf.inc |
---|
77 | bld::excl_dep h::mpif.h |
---|
78 | bld::excl_dep inc::mpif.h |
---|
79 | bld::excl_dep use::ioipsl |
---|
80 | bld::excl_dep use::intersurf |
---|
81 | bld::excl_dep use::mod_prism_proto |
---|
82 | bld::excl_dep use::mod_prism_def_partition_proto |
---|
83 | bld::excl_dep use::mod_prism_get_proto |
---|
84 | bld::excl_dep use::mod_prism_put_proto |
---|
85 | bld::excl_dep use::xios |
---|
86 | bld::excl_dep use::iaxis |
---|
87 | bld::excl_dep use::iaxis_attr |
---|
88 | bld::excl_dep use::icontext_attr |
---|
89 | bld::excl_dep use::idate |
---|
90 | bld::excl_dep use::idomain_attr |
---|
91 | bld::excl_dep use::ifield_attr |
---|
92 | bld::excl_dep use::ifile_attr |
---|
93 | bld::excl_dep use::ixml_tree |
---|
94 | |
---|
95 | # Don't generate interface files |
---|
96 | bld::tool::geninterface none |
---|
97 | |
---|
98 | # Allow ".inc" as an extension for CPP include files |
---|
99 | bld::infile_ext::inc CPP::INCLUDE |
---|
100 | |
---|
101 | # extension for module output |
---|
102 | bld::outfile_ext::mod .mod |
---|
103 | bld::tool::SHELL /bin/bash |
---|
104 | bld::tool::SHELL /bin/ksh |
---|