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::cosp %COSP |
---|
31 | src::ext_src %EXT_SRC |
---|
32 | |
---|
33 | bld::lib lmdz |
---|
34 | |
---|
35 | bld::outfile_ext::exe %SUFF_NAME.e |
---|
36 | bld::target liblmdz.a |
---|
37 | bld::target %EXEC%SUFF_NAME.e |
---|
38 | bld::exe_dep |
---|
39 | |
---|
40 | |
---|
41 | dir::root %CONFIG_PATH |
---|
42 | dir::lib %BASE_CONFIG_PATH |
---|
43 | dir::bin %ROOT_PATH/bin |
---|
44 | |
---|
45 | #search_src 1 |
---|
46 | |
---|
47 | bld::tool::fpp %FPP |
---|
48 | bld::tool::fc %COMPILER |
---|
49 | bld::tool::ld %LINK |
---|
50 | bld::tool::ar %AR |
---|
51 | bld::tool::make %MAKE |
---|
52 | bld::tool::fflags %FFLAGS %INCDIR |
---|
53 | bld::tool::ldflags %LD_FLAGS %LIB |
---|
54 | |
---|
55 | bld::tool::cppflags %FPP_FLAGS %INCDIR |
---|
56 | bld::tool::fppflags %FPP_FLAGS %INCDIR |
---|
57 | bld::tool::fppkeys %CPP_KEY %FPP_DEF |
---|
58 | |
---|
59 | |
---|
60 | # Example of how to set specific compiling options for a specific file |
---|
61 | # -> this can be including in the arch.opt file |
---|
62 | #bld::tool::fflags::phys::readaerosol %BASE_FFLAGS %PROD_FFLAGS %INCDIR -C hopt -pi auto |
---|
63 | |
---|
64 | |
---|
65 | inc arch.opt |
---|
66 | |
---|
67 | # Pre-process code before analysing dependencies |
---|
68 | bld::pp 1 |
---|
69 | |
---|
70 | |
---|
71 | # Ignore the following dependencies |
---|
72 | bld::excl_dep inc::netcdf.inc |
---|
73 | bld::excl_dep use::netcdf |
---|
74 | bld::excl_dep use::typesizes |
---|
75 | bld::excl_dep h::netcdf.inc |
---|
76 | bld::excl_dep h::mpif.h |
---|
77 | bld::excl_dep inc::mpif.h |
---|
78 | bld::excl_dep use::ioipsl |
---|
79 | bld::excl_dep use::intersurf |
---|
80 | bld::excl_dep use::mod_prism_proto |
---|
81 | bld::excl_dep use::mod_prism_def_partition_proto |
---|
82 | bld::excl_dep use::mod_prism_get_proto |
---|
83 | bld::excl_dep use::mod_prism_put_proto |
---|
84 | bld::excl_dep use::xios |
---|
85 | bld::excl_dep use::iaxis |
---|
86 | bld::excl_dep use::iaxis_attr |
---|
87 | bld::excl_dep use::icontext_attr |
---|
88 | bld::excl_dep use::idate |
---|
89 | bld::excl_dep use::idomain_attr |
---|
90 | bld::excl_dep use::ifield_attr |
---|
91 | bld::excl_dep use::ifile_attr |
---|
92 | bld::excl_dep use::ixml_tree |
---|
93 | |
---|
94 | # Don't generate interface files |
---|
95 | bld::tool::geninterface none |
---|
96 | |
---|
97 | # Allow ".inc" as an extension for CPP include files |
---|
98 | bld::infile_ext::inc CPP::INCLUDE |
---|
99 | |
---|
100 | # extension for module output |
---|
101 | bld::outfile_ext::mod .mod |
---|
102 | bld::tool::SHELL /bin/bash |
---|
103 | bld::tool::SHELL /bin/ksh |
---|