# Copyright David Abrahams 2006. 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)


# Specify the path to the Boost project.  If you move this project,
# adjust this path to refer to the Boost root directory.
use-project boost
  : boost ;

# Set up the project-wide requirements that everything uses the
# boost_python library defined in the project whose global ID is
# /boost/python.
project boost-python-quickstart
  : requirements <library>/boost/python//boost_python  <library>sifel/MEFEL/SRC/_DBG/libmef.a <library>sifel/GEFEL/_DBG/libgef.a  <library>/usr/lib/libbfd.so
  ;

# Make the definition of the python-extension rule available
import python ;


lib mefel_lib : sifel/MEFEL/SRC/_DBG/libmef.a ;
lib gefel_lib : sifel/GEFEL/_DBG/libgef.a ;
lib bfd_lib :  : <file>/usr/lib/libbfd.so ;




#lib bfd_lib : libbfd.a ;

#  : requirements /usr/include/boost/python//boost_python ;
# Declare the three extension modules.  You can specify multiple
# source files after the colon separated by spaces.
python-extension mefel : mefel.cpp : <include>sifel/MEFEL/SRC <include>sifel/GEFEL <include>sifel/GEFEL/PARSER <include>sifel/GEFEL/OPTIM <include>sifel/GEFEL/RANDY <include>sifel/GEFEL/CMLFILE <define>BOOST_PYTHON <source>mefel_lib <source>gefel_lib <source>bfd_lib ;


# A little "rule" (function) to clean up the syntax of declaring tests
# of these extension modules.
local rule run-test ( test-name : sources + )
{
    import testing ;
    testing.make-test run-pyd : $(sources) : : $(test-name) ;
}

# Declare test targets
run-test hello : mefel test.py ;


