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::grid %SRC_PATH/grid |
---|
27 | src::filtrez %SRC_PATH/filtrez |
---|
28 | src::bibio %SRC_PATH/bibio |
---|
29 | |
---|
30 | bld::lib::dyn %DYN |
---|
31 | bld::lib::phys %PHYS |
---|
32 | bld::lib::grid grid |
---|
33 | bld::lib::filtrez filtrez |
---|
34 | bld::lib::bibio bibio |
---|
35 | |
---|
36 | |
---|
37 | bld::outfile_ext::exe %SUFF_NAME.e |
---|
38 | bld::target lib%{DYN}.a lib%{PHYS}.a libgrid.a libfiltrez.a libbibio.a |
---|
39 | bld::target %EXEC%SUFF_NAME.e |
---|
40 | bld::exe_dep %{DYN} %{PHYS} grid filtrez bibio |
---|
41 | |
---|
42 | |
---|
43 | dir::root %CONFIG_PATH |
---|
44 | dir::lib %BASE_CONFIG_PATH |
---|
45 | dir::bin %ROOT_PATH/bin |
---|
46 | |
---|
47 | #search_src 1 |
---|
48 | |
---|
49 | bld::tool::fpp %FPP |
---|
50 | bld::tool::fc %COMPILER |
---|
51 | bld::tool::ld %LINK |
---|
52 | bld::tool::ar %AR |
---|
53 | bld::tool::make %MAKE |
---|
54 | bld::tool::fflags %FFLAGS %INCDIR |
---|
55 | bld::tool::ldflags %LD_FLAGS %LIB |
---|
56 | |
---|
57 | bld::tool::cppflags %FPP_FLAGS %INCDIR |
---|
58 | bld::tool::fppflags %FPP_FLAGS %INCDIR |
---|
59 | bld::tool::fppkeys %CPP_KEY %FPP_DEF |
---|
60 | |
---|
61 | |
---|
62 | # Pre-process code before analysing dependencies |
---|
63 | bld::pp 1 |
---|
64 | |
---|
65 | |
---|
66 | # Ignore the following dependencies |
---|
67 | bld::excl_dep inc::netcdf.inc |
---|
68 | bld::excl_dep use::netcdf |
---|
69 | bld::excl_dep h::netcdf.inc |
---|
70 | bld::excl_dep h::mpif.h |
---|
71 | bld::excl_dep inc::mpif.h |
---|
72 | bld::excl_dep use::ioipsl |
---|
73 | bld::excl_dep use::intersurf |
---|
74 | bld::excl_dep use::mod_prism_proto |
---|
75 | bld::excl_dep use::mod_prism_def_partition_proto |
---|
76 | bld::excl_dep use::mod_prism_get_proto |
---|
77 | bld::excl_dep use::mod_prism_put_proto |
---|
78 | |
---|
79 | # Don't generate interface files |
---|
80 | bld::tool::geninterface none |
---|
81 | |
---|
82 | # Allow ".inc" as an extension for CPP include files |
---|
83 | bld::infile_ext::inc CPP::INCLUDE |
---|
84 | |
---|
85 | # extension for module output |
---|
86 | bld::outfile_ext::mod .mod |
---|