# copyright John Maddock 2012 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt. import modules ; import path ; local ntl-path = [ modules.peek : NTL_PATH ] ; local gmp_path = [ modules.peek : GMP_PATH ] ; local mpfr_path = [ modules.peek : MPFR_PATH ] ; local tommath_path = [ modules.peek : TOMMATH_PATH ] ; project : requirements freebsd:"-lrt" linux:"-lrt" pgi:"-lrt" $(gmp_path) $(gmp_path)/mpfr $(gmp_path)/gmpfrxx $(mpfr_path) $(tommath_path) ../../.. $(gmp_path) $(mpfr_path) $(mpfr_path)/build.vc10/lib/Win32/Debug $(tommath_path) static BOOST_ALL_NO_LIB off ; lib gmp ; lib mpfr ; if $(tommath_path) { TOMMATH = [ GLOB $(tommath_path) : *.c ] ; } else { lib tommath ; TOMMATH = tommath ; } exe performance_test : performance_test.cpp /boost/system//boost_system : release [ check-target-builds ../config//has_gmp : TEST_MPF TEST_MPZ gmp : ] [ check-target-builds ../config//has_mpfr : TEST_MPFR mpfr : ] [ check-target-builds ../config//has_tommath : TEST_TOMMATH $(TOMMATH) : ] TEST_CPP_DEC_FLOAT TEST_CPP_INT ; exe miller_rabin_performance : miller_rabin_performance.cpp /boost/system//boost_system /boost/chrono//boost_chrono : release [ check-target-builds ../config//has_gmp : TEST_MPF TEST_MPZ gmp : ] [ check-target-builds ../config//has_mpfr : TEST_MPFR mpfr : ] #[ check-target-builds ../config//has_tommath : TEST_TOMMATH $(TOMMATH) : ] TEST_CPP_DEC_FLOAT TEST_CPP_INT ; exe sf_performance : sf_performance.cpp sf_performance_basic.cpp sf_performance_bessel.cpp sf_performance_bessel1.cpp sf_performance_bessel2.cpp sf_performance_bessel3.cpp sf_performance_bessel4.cpp sf_performance_bessel5.cpp sf_performance_bessel6.cpp sf_performance_nct.cpp sf_performance_nct1.cpp sf_performance_nct2.cpp sf_performance_nct3.cpp sf_performance_nct4.cpp sf_performance_nct5.cpp sf_performance_nct6.cpp sf_performance_poly.cpp /boost/system//boost_system /boost/chrono//boost_chrono /boost/thread//boost_thread : release [ check-target-builds ../config//has_gmp : TEST_MPF TEST_MPZ gmp : ] [ check-target-builds ../config//has_mpfr : TEST_MPFR mpfr : ] TEST_CPP_DEC_FLOAT msvc:-bigobj ; exe delaunay_test : delaunay_test.cpp /boost/system//boost_system /boost/chrono//boost_chrono ; obj obj_linpack_benchmark_mpfr : linpack-benchmark.cpp : release [ check-target-builds ../config//has_mpfr : : no ] TEST_MPFR_50 ; obj obj_linpack_benchmark_mpf : linpack-benchmark.cpp : release [ check-target-builds ../config//has_gmp : : no ] TEST_MPF_50 ; obj obj_linpack_benchmark_cpp_float : linpack-benchmark.cpp : release TEST_CPP_DEC_FLOAT ; obj obj_linpack_benchmark_double : linpack-benchmark.cpp : release ; lib f2c ; exe linpack_benchmark_mpfr : obj_linpack_benchmark_mpfr mpfr f2c gmp : release [ check-target-builds ../config//has_mpfr : : no ] TEST_MPFR_50 ; exe linpack_benchmark_mpf : obj_linpack_benchmark_mpf gmp f2c : release [ check-target-builds ../config//has_gmp : : no ] TEST_MPF_50 ; exe linpack_benchmark_cpp_float : obj_linpack_benchmark_cpp_float f2c : release TEST_CPP_DEC_FLOAT ; exe linpack_benchmark_double : obj_linpack_benchmark_double f2c : release ; install miller_rabin_install : miller_rabin_performance : . ; install performance_test_install : performance_test : . ; install sf_performance_install : sf_performance : . ; install . : linpack_benchmark_double linpack_benchmark_cpp_float linpack_benchmark_mpf linpack_benchmark_mpfr ; install delaunay_install : delaunay_test : . ;