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# 8# toolset configuration for the IBM Fortran compiler (xlf) 9# 10 11import toolset : flags ; 12import feature ; 13import fortran ; 14 15rule init ( version ? : command * : options * ) 16{ 17} 18 19# Declare flags and action for compilation 20flags xlf OPTIONS <optimization>off : -O0 ; 21flags xlf OPTIONS <optimization>speed : -O3 ; 22flags xlf OPTIONS <optimization>space : -Os ; 23 24flags xlf OPTIONS <debug-symbols>on : -g ; 25flags xlf OPTIONS <profiling>on : -pg ; 26 27flags xlf DEFINES <define> ; 28flags xlf INCLUDES <include> ; 29 30rule compile-fortran 31{ 32} 33 34actions compile-fortran 35{ 36 xlf $(OPTIONS) -I$(INCLUDES) -c -o "$(<)" "$(>)" 37} 38 39generators.register-fortran-compiler xlf.compile-fortran : FORTRAN : OBJ ; 40