Skip to content
Snippets Groups Projects
bldxag.cfg 1.86 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::nemo                 $CONFIG_DIR/$NEW_CONF/WORK
src::ppr_1d               $MAIN_DIR/ext/PPR/src
Guillaume Samson's avatar
Guillaume Samson committed

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::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
Guillaume Samson's avatar
Guillaume Samson committed
bld::tool::fppflags::nemo     %FPPFLAGS
bld::tool::fppflags::ioipsl   %FPPFLAGS
bld::tool::fppflags::ppr_1d   %FPPFLAGS
Guillaume Samson's avatar
Guillaume Samson committed

# 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

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

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