1 | # ----------------------- FCM extract configuration file ----------------------- |
---|
2 | cfg::type bld |
---|
3 | cfg::version 1.0 |
---|
4 | |
---|
5 | |
---|
6 | # ------------------------------------------------------------------------------ |
---|
7 | # Build information |
---|
8 | # ------------------------------------------------------------------------------ |
---|
9 | |
---|
10 | inc $MAIN_DIR/TOOLS/arch.fcm |
---|
11 | inc $MAIN_DIR/TOOLS/cpp.fcm |
---|
12 | |
---|
13 | %FFLAGS %FFLAGS %NCDF_INC |
---|
14 | %LD_FLAGS %BASE_LD %NCDF_LIB |
---|
15 | src::agrif $MAIN_DIR/EXTERNAL/AGRIF/AGRIF_FILES |
---|
16 | src::ioipsl $MAIN_DIR/EXTERNAL/IOIPSL/src |
---|
17 | src::xmlf90 $MAIN_DIR/EXTERNAL/XMLF90/src |
---|
18 | src::xmlio_server $MAIN_DIR/EXTERNAL/XMLIO_SERVER/src |
---|
19 | src::nemo $CONFIG_DIR/$NEW_CONF/WORK |
---|
20 | |
---|
21 | |
---|
22 | #bld::target model.exe |
---|
23 | |
---|
24 | bld::exe_dep |
---|
25 | |
---|
26 | |
---|
27 | dir::root $NEMO_TDIR/$NEW_CONF/BLD |
---|
28 | |
---|
29 | #search_src 1 |
---|
30 | |
---|
31 | bld::tool::fc %FC |
---|
32 | bld::tool::ld %LD |
---|
33 | bld::tool::ar %AR |
---|
34 | bld::tool::arflags %ARFLAGS |
---|
35 | bld::tool::make %M_K |
---|
36 | bld::tool::fflags %FFLAGS |
---|
37 | bld::tool::ldflags %LD_FLAGS |
---|
38 | |
---|
39 | bld::tool::cppflags %FPP_FLAGS |
---|
40 | bld::tool::fppflags %FPP_FLAGS |
---|
41 | |
---|
42 | |
---|
43 | # Pre-process code before analysing dependencies |
---|
44 | bld::pp::nemo 1 |
---|
45 | bld::tool::fpp $TOOLS_DIR/agrifpp.sh |
---|
46 | bld::tool::fppflags %FPP_FLAGS |
---|
47 | bld::tool::fppflags::nemo $AGRIFUSE |
---|
48 | |
---|
49 | # Ignore the following dependencies |
---|
50 | bld::excl_dep inc::netcdf.inc |
---|
51 | bld::excl_dep use::netcdf |
---|
52 | bld::excl_dep h::netcdf.inc |
---|
53 | bld::excl_dep h::mpif.h |
---|
54 | bld::excl_dep inc::mpif.h |
---|
55 | bld::excl_dep use::mod_prism_proto |
---|
56 | bld::excl_dep use::mod_prism_def_partition_proto |
---|
57 | bld::excl_dep use::mod_prism_get_proto |
---|
58 | bld::excl_dep use::mod_prism_put_proto |
---|
59 | bld::excl_dep use::mkl_dfti |
---|
60 | # Don't generate interface files |
---|
61 | bld::tool::geninterface none |
---|
62 | |
---|
63 | # Allow ".h90" as an extension for CPP include files |
---|
64 | bld::infile_ext::h90 CPP::INCLUDE |
---|
65 | |
---|
66 | # extension for module output |
---|
67 | bld::outfile_ext::mod .mod |
---|
68 | |
---|
69 | # rename executable to nemo.exe |
---|
70 | bld::exe_name::model nemo.exe |
---|
71 | |
---|