1 # copyright John Maddock 2012
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE_1_0.txt or copy at
4 # http://www.boost.org/LICENSE_1_0.txt.
9 local ntl-path = [ modules.peek : NTL_PATH ] ;
10 local gmp_path = [ modules.peek : GMP_PATH ] ;
11 local mpfr_path = [ modules.peek : MPFR_PATH ] ;
12 local tommath_path = [ modules.peek : TOMMATH_PATH ] ;
14 project : requirements
15 <target-os>freebsd:<linkflags>"-lrt"
16 <target-os>linux:<linkflags>"-lrt"
17 <toolset>pgi:<linkflags>"-lrt"
19 <include>$(gmp_path)/mpfr
20 <include>$(gmp_path)/gmpfrxx
22 <include>$(tommath_path)
26 <search>$(mpfr_path)/build.vc10/lib/Win32/Debug
27 <search>$(tommath_path)
29 <define>BOOST_ALL_NO_LIB
39 TOMMATH = [ GLOB $(tommath_path) : *.c ] ;
47 exe performance_test : performance_test.cpp /boost/system//boost_system
49 [ check-target-builds ../config//has_gmp : <define>TEST_MPF <define>TEST_MPZ <source>gmp : ]
50 [ check-target-builds ../config//has_mpfr : <define>TEST_MPFR <source>mpfr : ]
51 [ check-target-builds ../config//has_tommath : <define>TEST_TOMMATH <source>$(TOMMATH) : ]
52 <define>TEST_CPP_DEC_FLOAT
56 exe miller_rabin_performance : miller_rabin_performance.cpp /boost/system//boost_system /boost/chrono//boost_chrono
58 [ check-target-builds ../config//has_gmp : <define>TEST_MPF <define>TEST_MPZ <source>gmp : ]
59 [ check-target-builds ../config//has_mpfr : <define>TEST_MPFR <source>mpfr : ]
60 #[ check-target-builds ../config//has_tommath : <define>TEST_TOMMATH <source>$(TOMMATH) : ]
61 <define>TEST_CPP_DEC_FLOAT
65 exe sf_performance : sf_performance.cpp sf_performance_basic.cpp sf_performance_bessel.cpp
66 sf_performance_bessel1.cpp sf_performance_bessel2.cpp sf_performance_bessel3.cpp
67 sf_performance_bessel4.cpp sf_performance_bessel5.cpp sf_performance_bessel6.cpp
68 sf_performance_nct.cpp sf_performance_nct1.cpp
69 sf_performance_nct2.cpp sf_performance_nct3.cpp sf_performance_nct4.cpp
70 sf_performance_nct5.cpp sf_performance_nct6.cpp
71 sf_performance_poly.cpp
72 /boost/system//boost_system /boost/chrono//boost_chrono /boost/thread//boost_thread
74 [ check-target-builds ../config//has_gmp : <define>TEST_MPF <define>TEST_MPZ <source>gmp : ]
75 [ check-target-builds ../config//has_mpfr : <define>TEST_MPFR <source>mpfr : ]
76 <define>TEST_CPP_DEC_FLOAT
77 <toolset>msvc:<cxxflags>-bigobj
80 exe delaunay_test : delaunay_test.cpp /boost/system//boost_system /boost/chrono//boost_chrono ;
82 obj obj_linpack_benchmark_mpfr : linpack-benchmark.cpp
84 [ check-target-builds ../config//has_mpfr : : <build>no ]
88 obj obj_linpack_benchmark_mpf : linpack-benchmark.cpp
90 [ check-target-builds ../config//has_gmp : : <build>no ]
94 obj obj_linpack_benchmark_cpp_float : linpack-benchmark.cpp
96 <define>TEST_CPP_DEC_FLOAT
99 obj obj_linpack_benchmark_double : linpack-benchmark.cpp
103 obj obj_linpack_benchmark_native_float128 : linpack-benchmark.cpp
105 <define>NATIVE_FLOAT128
108 obj obj_linpack_benchmark_float128 : linpack-benchmark.cpp
110 <define>TEST_FLOAT128
113 obj obj_linpack_benchmark_cpp_float_quad : linpack-benchmark.cpp
115 <define>TEST_CPP_BIN_FLOAT_QUAD
118 obj obj_linpack_benchmark_cpp_float_oct : linpack-benchmark.cpp
120 <define>TEST_CPP_BIN_FLOAT_OCT
125 exe linpack_benchmark_mpfr : obj_linpack_benchmark_mpfr mpfr f2c gmp
127 [ check-target-builds ../config//has_mpfr : : <build>no ]
131 exe linpack_benchmark_mpf : obj_linpack_benchmark_mpf gmp f2c
133 [ check-target-builds ../config//has_gmp : : <build>no ]
137 exe linpack_benchmark_cpp_float : obj_linpack_benchmark_cpp_float f2c
139 <define>TEST_CPP_DEC_FLOAT
142 exe linpack_benchmark_double : obj_linpack_benchmark_double f2c
146 exe linpack_benchmark_native_float128 : obj_linpack_benchmark_native_float128 f2c
150 exe linpack_benchmark_float128 : obj_linpack_benchmark_float128 f2c
154 exe linpack_benchmark_cpp_quad_float : obj_linpack_benchmark_cpp_quad_float f2c
158 exe linpack_benchmark_cpp_oct_float : obj_linpack_benchmark_cpp_oct_float f2c
162 install miller_rabin_install : miller_rabin_performance : <location>. ;
163 install performance_test_install : performance_test : <location>. ;
164 install sf_performance_install : sf_performance : <location>. ;
165 install . : linpack_benchmark_double linpack_benchmark_cpp_float linpack_benchmark_mpf linpack_benchmark_mpfr ;
166 install delaunay_install : delaunay_test : <location>. ;