Ignore:
Timestamp:
05/03/18 14:05:28 (6 years ago)
Author:
oabramkina
Message:

Adding the following compilation options in order to separate the build and the source directories:

--build_path : path to the build directory
--build_dir : name of the build directory
--build_suffixed : generate automatically suffixed name of the build directory.

By default the root directory of the build and the source is the same.
If both options, build_dir and build_suffixed, are specified, the suffixed name will be used.

For example, if XIOS is compiled with the following command:
./make_xios --arch GCC_LINUX --prod --build_path ~/toto --build_indexed

the build directory will be:

~/toto/config_GCC_LINUX_prod

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/bld.cfg

    r1449 r1497  
    88# ------------------------------------------------------------------------------ 
    99 
    10 inc arch.fcm 
    11 inc config.fcm 
     10# Specifying the build directory 
     11inc bld_dir.cfg 
    1212 
    1313%CFLAGS           %BASE_CFLAGS %COMPIL_CFLAGS 
     
    1515%LD_FLAGS         %ARCH_LD %BASE_LD 
    1616 
    17  
    18 dest::root   $PWD 
    19  
    2017bld::infile_ext::cpp   C::SOURCE 
    2118bld::infile_ext::conf  CPP::INCLUDE 
    2219bld::infile_ext::hpp   CPP::INCLUDE 
    2320 
     21# IMPORTANT: as the build directory may not necessarily coincide with the source directory,  
     22# each source subfolder should be declared individually 
     23search_src           false 
     24src::xios                               $PWD/src 
     25src::xios::config                       $PWD/src/config 
     26src::xios::date                         $PWD/src/date 
     27src::xios::filter                       $PWD/src/filter 
     28src::xios::functor                      $PWD/src/functor 
     29src::xios::interface::c                 $PWD/src/interface/c 
     30src::xios::interface::c_attr            $PWD/src/interface/c_attr 
     31src::xios::interface::fortran           $PWD/src/interface/fortran 
     32src::xios::interface::fortran_attr      $PWD/src/interface/fortran_attr 
     33src::xios::io                           $PWD/src/io 
     34src::xios::node                         $PWD/src/node 
     35src::xios::parse_expr                   $PWD/src/parse_expr 
     36src::xios::test                         $PWD/src/test 
     37src::xios::transformation               $PWD/src/transformation 
     38src::xios::transformation::Functions    $PWD/src/transformation/Functions 
     39src::xios::type                         $PWD/src/type 
    2440 
    25 search_src           true 
    26 src::zzz . 
     41 
    2742#src::date $PWD/extern/boost/src/date_time 
    2843src::blitz $PWD/extern/blitz/src 
     
    6075# Pre-process code before analysing dependencies 
    6176bld::pp    false           
    62 bld::pp::interface/fortran              true 
    63 bld::pp::interface/fortran_attr         true 
     77bld::pp::xios::interface::fortran              true 
     78bld::pp::xios::interface::fortran_attr         true 
    6479bld::excl_dep        use::mod_prism_get_comm 
    6580bld::excl_dep        use::mod_prism_get_localcomm_proto 
Note: See TracChangeset for help on using the changeset viewer.