Skip to content
Snippets Groups Projects
bld.cfg 2.15 KiB
Newer Older
Guillaume Samson's avatar
Guillaume Samson committed
# ----------------------- FCM extract configuration file -----------------------
cfg::type                           bld
cfg::version                        1.0


# ------------------------------------------------------------------------------
# Build information
# ------------------------------------------------------------------------------

inc $COMPIL_DIR/arch_nemo.fcm
inc $COMPIL_DIR/cpp.fcm

search_src           1

src::ioipsl               $MAIN_DIR/ext/IOIPSL/src
src::agrif                $MAIN_DIR/ext/AGRIF/AGRIF_FILES
src::nemo                 $NEMO_TDIR/$NEW_CONF/NEMOFILES/obj
Guillaume Samson's avatar
Guillaume Samson committed
src::ppr_1d               $MAIN_DIR/ext/PPR/src


bld::target  nemo.exe
bld::exe_dep


dir::root            $NEMO_TDIR/$NEW_CONF/BLD


bld::tool::cpp       %CPP
bld::tool::fpp       %CPP
bld::tool::fc        %FC 
bld::tool::fflags    %FCFLAGS %USER_INC
bld::tool::fflags::agrif   %FFLAGS %USER_INC
bld::tool::ld        %LD
bld::tool::ldflags   %LDFLAGS %USER_LIB
bld::tool::ar        %AR
bld::tool::arflags   %ARFLAGS
bld::tool::make      %MK

# Pre-process code before analysing dependencies
bld::pp::ioipsl   1
bld::pp::nemo     1
bld::pp::agrif    1
bld::pp::ppr_1d   1
bld::tool::fppflags::nemo      %FPPFLAGS -I$NEMO_TDIR/$NEW_CONF/NEMOFILES/inc
Guillaume Samson's avatar
Guillaume Samson committed
bld::tool::fppflags::ioipsl    %FPPFLAGS
bld::tool::fppflags::agrif     %FPPFLAGS -include ${MAIN_DIR}/ext/AGRIF/nemo_mpi.h
bld::tool::fppflags::ppr_1d    %FPPFLAGS

# Ignore the following dependencies
bld::excl_dep        inc::netcdf.inc
bld::excl_dep        inc::VT.inc
bld::excl_dep        use::netcdf
bld::excl_dep        use::xios
bld::excl_dep        h::netcdf.inc
bld::excl_dep        h::mpif.h
bld::excl_dep        inc::mpif.h
bld::excl_dep        inc::mpe_logf.h
bld::excl_dep        use::mpi
bld::excl_dep        use::mod_oasis
bld::excl_dep        use::mkl_dfti
bld::excl_dep        use::cudafor
bld::excl_dep        use::openacc
# Don't generate interface files
bld::tool::geninterface none

# Allow ".h90" as an extension for CPP include files
bld::infile_ext::h90  CPP::INCLUDE
bld::infile_ext::f90  FPP::FPP9X::SOURCE

# extension for module output
bld::outfile_ext::mod .mod

# rename executable to nemo.exe
bld::exe_name::model  nemo.exe