[1] | 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 |
---|
[895] | 12 | # C preprocessor |
---|
| 13 | %CPP cpp |
---|
[1] | 14 | |
---|
| 15 | inc arch.fcm |
---|
| 16 | inc config.fcm |
---|
| 17 | |
---|
| 18 | %CONFIG_NAME %{ARCH}%SUFF_NAME |
---|
| 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 | |
---|
| 26 | src::dyn %SRC_PATH/%DYN |
---|
| 27 | src::phys %SRC_PATH/%PHYS |
---|
| 28 | src::grid %SRC_PATH/grid |
---|
| 29 | src::filtrez %SRC_PATH/filtrez |
---|
| 30 | src::bibio %SRC_PATH/bibio |
---|
| 31 | src::cosp %COSP |
---|
[895] | 32 | src::chem %CHEM |
---|
[1107] | 33 | src::aerono %AERONO |
---|
[1] | 34 | |
---|
[1019] | 35 | bld::lib lmdz |
---|
[1] | 36 | |
---|
| 37 | |
---|
| 38 | bld::outfile_ext::exe %SUFF_NAME.e |
---|
[1019] | 39 | bld::target liblmdz.a |
---|
[1] | 40 | bld::target %EXEC%SUFF_NAME.e |
---|
[1019] | 41 | bld::exe_dep |
---|
[1] | 42 | |
---|
| 43 | |
---|
| 44 | dir::root %CONFIG_PATH |
---|
| 45 | dir::lib %BASE_CONFIG_PATH |
---|
| 46 | dir::bin %ROOT_PATH/bin |
---|
| 47 | |
---|
| 48 | #search_src 1 |
---|
| 49 | |
---|
| 50 | bld::tool::fpp %FPP |
---|
[895] | 51 | bld::tool::cpp %CPP |
---|
[1] | 52 | bld::tool::fc %COMPILER |
---|
[895] | 53 | bld::tool::cc %C_COMPILER |
---|
[1] | 54 | bld::tool::ld %LINK |
---|
| 55 | bld::tool::ar %AR |
---|
| 56 | bld::tool::make %MAKE |
---|
[895] | 57 | bld::tool::fflags %FFLAGS %INCDIR |
---|
| 58 | bld::tool::cflags %C_OPTIM %INCDIR |
---|
[1] | 59 | bld::tool::ldflags %LD_FLAGS %LIB |
---|
| 60 | |
---|
[895] | 61 | bld::tool::cppflags %CPP_FLAGS %INCDIR |
---|
[1] | 62 | bld::tool::fppflags %FPP_FLAGS %INCDIR |
---|
| 63 | bld::tool::fppkeys %CPP_KEY %FPP_DEF |
---|
| 64 | |
---|
[1019] | 65 | # Example of how to set specific compiling options for a specific file |
---|
| 66 | # -> this can be including in the arch.opt file |
---|
[1] | 67 | #bld::tool::fflags::phys::readaerosol %BASE_FFLAGS %PROD_FFLAGS %INCDIR -C hopt -pi auto |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | inc arch.opt |
---|
| 71 | |
---|
| 72 | # Pre-process code before analysing dependencies |
---|
| 73 | bld::pp 1 |
---|
| 74 | |
---|
| 75 | # Ignore the following dependencies |
---|
| 76 | bld::excl_dep inc::netcdf.inc |
---|
| 77 | bld::excl_dep use::netcdf |
---|
| 78 | bld::excl_dep use::typesizes |
---|
| 79 | bld::excl_dep h::netcdf.inc |
---|
| 80 | bld::excl_dep h::mpif.h |
---|
| 81 | bld::excl_dep inc::mpif.h |
---|
| 82 | bld::excl_dep use::ioipsl |
---|
| 83 | bld::excl_dep use::intersurf |
---|
| 84 | bld::excl_dep use::mod_prism_proto |
---|
| 85 | bld::excl_dep use::mod_prism_def_partition_proto |
---|
| 86 | bld::excl_dep use::mod_prism_get_proto |
---|
| 87 | bld::excl_dep use::mod_prism_put_proto |
---|
| 88 | |
---|
| 89 | # Don't generate interface files |
---|
| 90 | bld::tool::geninterface none |
---|
| 91 | |
---|
| 92 | # Allow ".inc" as an extension for CPP include files |
---|
| 93 | bld::infile_ext::inc CPP::INCLUDE |
---|
| 94 | |
---|
| 95 | # extension for module output |
---|
| 96 | bld::outfile_ext::mod .mod |
---|
| 97 | bld::tool::SHELL /bin/bash |
---|