1# Copyright (C) 2004 Toon Knapen
2#
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)
6
7import toolset : flags ;
8import feature ;
9import fortran ;
10
11rule init ( version ? : command * : options * )
12{
13}
14
15# Declare flags and action for compilation
16flags hpfortran OPTIONS <optimization>off : -O0 ;
17flags hpfortran OPTIONS <optimization>speed : -O3 ;
18flags hpfortran OPTIONS <optimization>space : -O1 ;
19
20flags hpfortran OPTIONS <debug-symbols>on : -g ;
21flags hpfortran OPTIONS <profiling>on : -pg ;
22
23flags hpfortran DEFINES <define> ;
24flags hpfortran INCLUDES <include> ;
25
26rule compile.fortran
27{
28}
29
30actions compile.fortran
31{
32  f77 +DD64 $(OPTIONS) -D$(DEFINES) -I$(INCLUDES) -c -o "$(<)" "$(>)"
33}
34
35generators.register-fortran-compiler hpfortran.compile.fortran : FORTRAN : OBJ ;
36