bld.cfg 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # ----------------------- FCM extract configuration file -----------------------
  2. cfg::type bld
  3. cfg::version 1.0
  4. # ------------------------------------------------------------------------------
  5. # Build information
  6. # ------------------------------------------------------------------------------
  7. inc $COMPIL_DIR/arch_nemo.fcm
  8. inc $COMPIL_DIR/cpp.fcm
  9. search_src 1
  10. src::ioipsl $MAIN_DIR/EXTERNAL/IOIPSL/src
  11. src::agrif $MAIN_DIR/EXTERNAL/AGRIF/AGRIF_FILES
  12. src::nemo $CONFIG_DIR/$NEW_CONF/OPAFILES/obj
  13. bld::target nemo.exe
  14. bld::exe_dep
  15. dir::root $NEMO_TDIR/$NEW_CONF/BLD
  16. bld::tool::cpp %CPP
  17. bld::tool::fpp %CPP
  18. bld::tool::fc %FC
  19. bld::tool::fflags %FCFLAGS %USER_INC
  20. bld::tool::fflags::agrif %FFLAGS %USER_INC
  21. bld::tool::ld %LD
  22. bld::tool::ldflags %LDFLAGS %USER_LIB
  23. bld::tool::ar %AR
  24. bld::tool::arflags %ARFLAGS
  25. bld::tool::make %MK
  26. # Pre-process code before analysing dependencies
  27. bld::pp::ioipsl 1
  28. bld::pp::nemo 1
  29. bld::pp::agrif 1
  30. bld::tool::fppflags::nemo %FPPFLAGS -I$CONFIG_DIR/$NEW_CONF/OPAFILES/inc
  31. bld::tool::fppflags::ioipsl %FPPFLAGS
  32. bld::tool::fppflags::agrif %FPPFLAGS -include ${MAIN_DIR}/EXTERNAL/AGRIF/nemo_mpi.h
  33. # Ignore the following dependencies
  34. bld::excl_dep inc::netcdf.inc
  35. bld::excl_dep inc::VT.inc
  36. bld::excl_dep use::netcdf
  37. bld::excl_dep use::xios
  38. bld::excl_dep h::netcdf.inc
  39. bld::excl_dep h::mpif.h
  40. bld::excl_dep inc::mpif.h
  41. bld::excl_dep inc::mpe_logf.h
  42. bld::excl_dep use::mpi
  43. bld::excl_dep use::mod_oasis
  44. bld::excl_dep use::mkl_dfti
  45. # Don't generate interface files
  46. bld::tool::geninterface none
  47. # Allow ".h90" as an extension for CPP include files
  48. bld::infile_ext::h90 CPP::INCLUDE
  49. bld::infile_ext::f90 FPP::FPP9X::SOURCE
  50. # extension for module output
  51. bld::outfile_ext::mod .mod
  52. # rename executable to nemo.exe
  53. bld::exe_name::model nemo.exe