[808] | 1 | # ----------------------- FCM extract configuration file ----------------------- |
---|
| 2 | cfg::type bld |
---|
| 3 | cfg::version 1.0 |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | # ------------------------------------------------------------------------------ |
---|
| 7 | # Build information |
---|
| 8 | # ------------------------------------------------------------------------------ |
---|
| 9 | |
---|
[875] | 10 | #Default value of FPP fortran preprocessor |
---|
| 11 | %FPP cpp |
---|
[808] | 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 | |
---|
| 22 | src::dyn %SRC_PATH/%DYN |
---|
| 23 | src::phys %SRC_PATH/%PHYS |
---|
| 24 | src::grid %SRC_PATH/grid |
---|
| 25 | src::filtrez %SRC_PATH/filtrez |
---|
| 26 | src::bibio %SRC_PATH/bibio |
---|
| 27 | |
---|
| 28 | bld::lib::dyn %DYN |
---|
| 29 | bld::lib::phys %PHYS |
---|
| 30 | bld::lib::grid grid |
---|
| 31 | bld::lib::filtrez filtrez |
---|
| 32 | bld::lib::bibio bibio |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | bld::outfile_ext::exe %SUFF_NAME.e |
---|
| 36 | bld::target lib%{DYN}.a lib%{PHYS}.a libgrid.a libfiltrez.a libbibio.a |
---|
| 37 | bld::target %EXEC%SUFF_NAME.e |
---|
| 38 | bld::exe_dep %{DYN} %{PHYS} grid filtrez bibio |
---|
| 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 | |
---|
[875] | 47 | bld::tool::fpp %FPP |
---|
[808] | 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 | # Pre-process code before analysing dependencies |
---|
| 61 | bld::pp 1 |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | # Ignore the following dependencies |
---|
| 65 | bld::excl_dep inc::netcdf.inc |
---|
| 66 | bld::excl_dep use::netcdf |
---|
| 67 | bld::excl_dep h::netcdf.inc |
---|
| 68 | bld::excl_dep h::mpif.h |
---|
| 69 | bld::excl_dep inc::mpif.h |
---|
| 70 | bld::excl_dep use::ioipsl |
---|
| 71 | bld::excl_dep use::intersurf |
---|
[816] | 72 | bld::excl_dep use::mod_prism_proto |
---|
| 73 | bld::excl_dep use::mod_prism_def_partition_proto |
---|
| 74 | bld::excl_dep use::mod_prism_get_proto |
---|
| 75 | bld::excl_dep use::mod_prism_put_proto |
---|
[808] | 76 | |
---|
| 77 | # Don't generate interface files |
---|
| 78 | bld::tool::geninterface none |
---|
| 79 | |
---|
| 80 | # Allow ".inc" as an extension for CPP include files |
---|
| 81 | bld::infile_ext::inc CPP::INCLUDE |
---|
| 82 | |
---|
| 83 | # extension for module output |
---|
| 84 | bld::outfile_ext::mod .mod |
---|