source: LMDZ5/trunk/bld.cfg @ 1811

Last change on this file since 1811 was 1802, checked in by yann meurdesoif, 11 years ago

Add parallel compiling functionality through fcm
=> 2 new options for the makelmdz_fcm

-j n : enable parallel compiling on 8 tasks
-full : recreate dependency and recompile form scratch

YM

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1# ----------------------- FCM extract configuration file -----------------------
2cfg::type                           bld
3cfg::version                        1.0
4
5
6# ------------------------------------------------------------------------------
7# Build information
8# ------------------------------------------------------------------------------
9
10#Default value of FPP fortran preprocessor
11%FPP cpp
12
13inc arch.fcm
14inc config.fcm
15
16%CONFIG_NAME       %{ARCH}%SUFF_NAME
17%BASE_CONFIG_PATH  %LIBO/%CONFIG_NAME
18%CONFIG_PATH       %BASE_CONFIG_PATH/.config
19%SRC_PATH          %LIBF
20
21%FFLAGS            %BASE_FFLAGS %COMPIL_FFLAGS %PARA_FFLAGS
22%LD_FLAGS          %BASE_LD %PARA_LD
23
24src::dyn     %SRC_PATH/%DYN
25src::phys    %SRC_PATH/%PHYS
26src::grid    %SRC_PATH/grid
27src::filtrez %SRC_PATH/filtrez
28src::bibio   %SRC_PATH/bibio
29src::cosp    %COSP
30src::ext_src %EXT_SRC
31
32bld::lib            lmdz
33
34bld::outfile_ext::exe    %SUFF_NAME.e
35bld::target              liblmdz.a
36bld::target              %EXEC%SUFF_NAME.e
37bld::exe_dep             
38
39
40dir::root            %CONFIG_PATH
41dir::lib             %BASE_CONFIG_PATH
42dir::bin             %ROOT_PATH/bin
43
44#search_src           1
45
46bld::tool::fpp       %FPP
47bld::tool::fc        %COMPILER
48bld::tool::ld        %LINK
49bld::tool::ar        %AR
50bld::tool::make      %MAKE
51bld::tool::fflags    %FFLAGS %INCDIR
52bld::tool::ldflags   %LD_FLAGS %LIB 
53
54bld::tool::cppflags  %FPP_FLAGS %INCDIR
55bld::tool::fppflags  %FPP_FLAGS %INCDIR
56bld::tool::fppkeys   %CPP_KEY %FPP_DEF
57
58
59# Example of how to set specific compiling options for a specific file
60# -> this can be including in the arch.opt file
61#bld::tool::fflags::phys::readaerosol         %BASE_FFLAGS %PROD_FFLAGS  %INCDIR -C hopt -pi auto
62
63
64inc arch.opt
65
66# Pre-process code before analysing dependencies
67bld::pp              1
68
69
70# Ignore the following dependencies
71bld::excl_dep        inc::netcdf.inc
72bld::excl_dep        use::netcdf
73bld::excl_dep        use::typesizes
74bld::excl_dep        h::netcdf.inc
75bld::excl_dep        h::mpif.h
76bld::excl_dep        inc::mpif.h
77bld::excl_dep        use::ioipsl
78bld::excl_dep        use::intersurf
79bld::excl_dep        use::mod_prism_proto
80bld::excl_dep        use::mod_prism_def_partition_proto
81bld::excl_dep        use::mod_prism_get_proto
82bld::excl_dep        use::mod_prism_put_proto
83
84# Don't generate interface files
85bld::tool::geninterface none
86
87# Allow ".inc" as an extension for CPP include files
88bld::infile_ext::inc  CPP::INCLUDE
89
90# extension for module output
91bld::outfile_ext::mod .mod
92bld::tool::SHELL   /bin/bash
Note: See TracBrowser for help on using the repository browser.