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 hpfortran OPTIONS <optimization>off : -O0 ;
17 flags hpfortran OPTIONS <optimization>speed : -O3 ;
18 flags hpfortran OPTIONS <optimization>space : -O1 ;
20 flags hpfortran OPTIONS <debug-symbols>on : -g ;
21 flags hpfortran OPTIONS <profiling>on : -pg ;
23 flags hpfortran DEFINES <define> ;
24 flags hpfortran INCLUDES <include> ;
30 actions compile.fortran
32 f77 +DD64 $(OPTIONS) -D$(DEFINES) -I$(INCLUDES) -c -o "$(<)" "$(>)"
35 generators.register-fortran-compiler hpfortran.compile.fortran : FORTRAN : OBJ ;