]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # Copyright (C) 2004 Toon Knapen |
2 | # | |
3 | # Use, modification and distribution is subject to the Boost Software | |
1e59de90 TL |
4 | # License Version 1.0. (See accompanying file LICENSE.txt or |
5 | # https://www.bfgroup.xyz/b2/LICENSE.txt) | |
7c673cae FG |
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 | { | |
1e59de90 | 32 | f77 +DD64 $(OPTIONS) -D$(DEFINES) -I$(INCLUDES) -c -o "$(<)" "$(>)" |
7c673cae FG |
33 | } |
34 | ||
1e59de90 | 35 | generators.register-fortran-compiler hpfortran.compile.fortran : FORTRAN : OBJ ; |