1#==============================================================================
2#         Copyright 2014          LRI    UMR 8623 CNRS/Univ Paris Sud XI
3#         Copyright 2014          NumScale SAS
4#
5#          Distributed under the Boost Software License, Version 1.0.
6#                 See accompanying file LICENSE.txt or copy at
7#                     http://www.boost.org/LICENSE_1_0.txt
8#==============================================================================
9
10use-project boost : $(BOOST_ROOT) ;
11
12import os ;
13
14# This must be built using an NT2 installation.
15# NT2_ROOT_PATH should point to the build directory.
16# Currently, cxxflags needs to be set to the required architecture
17# if using avx/avx2, set the environemnt variable NT2_SIMD_FLAGS to the
18# required value for your compiler (i.e. -mavx2 on g++)
19# If using sse2/3/4 in 64 bits, this is set automatically.
20
21local NT2_ROOT_PATH = [ os.environ NT2_ROOT_PATH ] ;
22local NT2_SIMD_FLAGS = [ os.environ NT2_SIMD_FLAGS ] ;
23
24project
25  : requirements
26    <define>BOOST_ALL_NO_LIB=1
27    <include>$(NT2_ROOT_PATH)/include/
28    <link>static
29    <toolset>gcc:<cxxflags>-DBOOST_SIMD_NO_STRICT_ALIASING
30    <toolset>gcc:<cxxflags>-fno-strict-aliasing
31    <cxxflags>$(NT2_SIMD_FLAGS)
32  ;
33
34exe phase_oscillator_ensemble : phase_oscillator_ensemble.cpp ;
35