Imported Upstream version 1.51.0
[platform/upstream/boost.git] / tools / build / v2 / tools / hpfortran.jam
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
7 import toolset : flags ;
8 import feature ;
9 import fortran ;
10
11 rule init ( version ? : command * : options * )
12 {
13 }
14
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 ;
19
20 flags hpfortran OPTIONS <debug-symbols>on : -g ;
21 flags hpfortran OPTIONS <profiling>on : -pg ;
22
23 flags hpfortran DEFINES <define> ;
24 flags hpfortran INCLUDES <include> ;
25
26 rule compile.fortran
27 {
28 }
29
30 actions compile.fortran
31 {
32   f77 +DD64 $(OPTIONS) -D$(DEFINES) -I$(INCLUDES) -c -o "$(<)" "$(>)" 
33 }
34
35 generators.register-fortran-compiler hpfortran.compile.fortran : FORTRAN : OBJ ;