]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/src/tools/hpfortran.jam
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / src / tools / hpfortran.jam
CommitLineData
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
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{
1e59de90 32 f77 +DD64 $(OPTIONS) -D$(DEFINES) -I$(INCLUDES) -c -o "$(<)" "$(>)"
7c673cae
FG
33}
34
1e59de90 35generators.register-fortran-compiler hpfortran.compile.fortran : FORTRAN : OBJ ;