1 # Copyright (C) 2004 Toon Knapen
3 # Use, modification and distribution is subject to the Boost Software
4 # License Version 1.0. (See accompanying file LICENSE_1_0.txt or
5 # http://www.boost.org/LICENSE_1_0.txt)
7 import toolset : flags ;
11 rule init ( version ? : command * : options * )
15 # Declare flags and action for compilation
16 flags ifort OPTIONS <fflags> ;
18 flags ifort OPTIONS <optimization>off : /Od ;
19 flags ifort OPTIONS <optimization>speed : /O3 ;
20 flags ifort OPTIONS <optimization>space : /O1 ;
22 flags ifort OPTIONS <debug-symbols>on : /debug:full ;
23 flags ifort OPTIONS <profiling>on : /Qprof_gen ;
25 flags ifort.compile FFLAGS <runtime-debugging>off/<runtime-link>shared : /MD ;
26 flags ifort.compile FFLAGS <runtime-debugging>on/<runtime-link>shared : /MDd ;
27 flags ifort.compile FFLAGS <runtime-debugging>off/<runtime-link>static/<threading>single : /ML ;
28 flags ifort.compile FFLAGS <runtime-debugging>on/<runtime-link>static/<threading>single : /MLd ;
29 flags ifort.compile FFLAGS <runtime-debugging>off/<runtime-link>static/<threading>multi : /MT ;
30 flags ifort.compile FFLAGS <runtime-debugging>on/<runtime-link>static/<threading>multi : /MTd ;
32 flags ifort DEFINES <define> ;
33 flags ifort INCLUDES <include> ;
39 actions compile.fortran
41 ifort $(FFLAGS) $(OPTIONS) /names:lowercase /D$(DEFINES) /I"$(INCLUDES)" /c /object:"$(<)" "$(>)"
44 generators.register-fortran-compiler ifort.compile.fortran : FORTRAN : OBJ ;