# Copyright (C) 2006 Noel Belcourt # # Use, modification and distribution is subject to the Boost Software # License Version 1.0. (See accompanying file LICENSE_1_0.txt or # http://www.boost.org/LICENSE_1_0.txt) # # toolset configuration for the Pgi Fortran compiler (pgf77) # import toolset : flags ; import feature ; import fortran ; rule init ( version ? : command * : options * ) { } # Declare flags and action for compilation flags pgf77 OPTIONS ; flags pgf77 OPTIONS off : -O0 ; flags pgf77 OPTIONS speed : -O3 ; flags pgf77 OPTIONS space : -Os ; flags pgf77 OPTIONS on : -g ; flags pgf77 OPTIONS on : -pg ; flags pgf77 DEFINES ; flags pgf77 INCLUDES ; rule compile.fortran { } actions compile.fortran { pgf77 -D$(DEFINES) $(OPTIONS) -I$(INCLUDES) -c -o "$(<)" "$(>)" } generators.register-fortran-compiler pgf77.compile.fortran : FORTRAN : OBJ : pgf77 ;