source: XIOS/dev/XIOS_DEV_CMIP6/bld.cfg @ 1497

Last change on this file since 1497 was 1497, checked in by oabramkina, 6 years ago

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 size: 3.4 KB
RevLine 
[245]1# ----------------------- FCM extract configuration file -----------------------
2cfg::type                           bld
3cfg::version                        1.0
4
5
6# ------------------------------------------------------------------------------
7# Build information
8# ------------------------------------------------------------------------------
9
[1497]10# Specifying the build directory
11inc bld_dir.cfg
[245]12
13%CFLAGS           %BASE_CFLAGS %COMPIL_CFLAGS
14%FFLAGS           %BASE_FFLAGS %COMPIL_FFLAGS
15%LD_FLAGS         %ARCH_LD %BASE_LD
16
17bld::infile_ext::cpp   C::SOURCE
18bld::infile_ext::conf  CPP::INCLUDE
19bld::infile_ext::hpp   CPP::INCLUDE
20
[1497]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
[245]40
[1497]41
[1449]42#src::date $PWD/extern/boost/src/date_time
[371]43src::blitz $PWD/extern/blitz/src
[410]44src::netcdf $PWD/extern/netcdf4
[688]45src::remap $PWD/extern/remap/src
[291]46bld::lib xios
[709]47bld::target libxios.a 
[1446]48#bld::target generate_fortran_interface.exe
[1280]49#bld::target test_remap.exe
[983]50bld::target xios_server.exe 
[1280]51#bld::target test_regular.exe
52#bld::target test_xios2_cmip6.exe
[983]53#bld::target test_new_features.exe test_unstruct_complete.exe
[1280]54#bld::target test_remap.exe
55#bld::target test_complete.exe
56#bld::target test_client.exe
[1139]57#bld::target test_unstruct_complete.exe
58#bld::target test_unstructured.exe
[245]59bld::exe_dep
60
61bld::tool::cc        %CCOMPILER
62bld::tool::fc        %FCOMPILER
[395]63bld::tool::fpp       %FPP
64bld::tool::cpp       %CPP
[410]65bld::tool::cppflags  %CBASE_INC -I${PWD}/extern/src_netcdf -I${PWD}/extern/boost/include -I${PWD}/extern/rapidxml/include -I${PWD}/extern/blitz/include 
[395]66bld::tool::fppflags  %BASE_INC -I${PWD}/extern/boost/include -I${PWD}/extern/rapidxml/include 
[245]67bld::tool::ld        %LINKER
68bld::tool::ldflags   %LD_FLAGS 
[410]69bld::tool::cflags    %CFLAGS %CBASE_INC -I${PWD}/extern/src_netcdf -I${PWD}/extern/boost/include -I${PWD}/extern/rapidxml/include -I${PWD}/extern/blitz/include 
[329]70bld::tool::fflags    %FFLAGS %FBASE_INC 
[287]71bld::tool::cppkeys   %CPP_KEY
72bld::tool::fppkeys   %CPP_KEY
[395]73bld::tool::make      %MAKE
[245]74
75# Pre-process code before analysing dependencies
[327]76bld::pp    false         
[1497]77bld::pp::xios::interface::fortran              true
78bld::pp::xios::interface::fortran_attr         true
[287]79bld::excl_dep        use::mod_prism_get_comm
[300]80bld::excl_dep        use::mod_prism_get_localcomm_proto
[287]81bld::excl_dep        use::mod_prism_proto
[475]82bld::excl_dep        use::mod_prism
[660]83bld::excl_dep        use::netcdf
[245]84bld::excl_dep        inc::mpif.h
Note: See TracBrowser for help on using the repository browser.