Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > b5d6e5e84fc6929edbdeef5ef92c2500 > files > 213

boost-examples-1.42.0-3.2mdv2010.1.i586.rpm

#
# Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)
#
# 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)
#

subproject libs/asio/example/timeouts ;

project boost : $(BOOST_ROOT) ;

if $(UNIX)
{
  switch $(JAMUNAME)
  {
  case SunOS* :
    {
      SOCKET_LIBS = <find-library>socket <find-library>nsl ;
    }
  }
}

template asio_timeouts_example
  : <lib>@boost/libs/thread/build/boost_thread
    <lib>@boost/libs/system/build/boost_system
  : <include>$(BOOST_ROOT)
    <include>../../../..
    <define>BOOST_ALL_NO_LIB=1
    <threading>multi
    <mingw><*><find-library>ws2_32
    <mingw><*><find-library>mswsock
    $(SOCKET_LIBS)
  ;

exe accept_timeout
  : <template>asio_timeouts_example
    accept_timeout.cpp
  ;

exe connect_timeout
  : <template>asio_timeouts_example
    connect_timeout.cpp
  ;

exe datagram_receive_timeout
  : <template>asio_timeouts_example
    datagram_receive_timeout.cpp
  ;

exe stream_receive_timeout
  : <template>asio_timeouts_example
    stream_receive_timeout.cpp
  ;