subproject libs/asio/example/tutorial ;

project boost : $(BOOST_ROOT) ;

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

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

exe timer1 : <template>asio_tutorial timer1/timer.cpp ;
exe timer2 : <template>asio_tutorial timer2/timer.cpp ;
exe timer3 : <template>asio_tutorial timer3/timer.cpp ;
exe timer4 : <template>asio_tutorial timer4/timer.cpp ;
exe timer5 : <template>asio_tutorial timer5/timer.cpp ;
exe daytime1_client : <template>asio_tutorial daytime1/client.cpp ;
exe daytime2_server : <template>asio_tutorial daytime2/server.cpp ;
exe daytime3_server : <template>asio_tutorial daytime3/server.cpp ;
exe daytime4_client : <template>asio_tutorial daytime4/client.cpp ;
exe daytime5_server : <template>asio_tutorial daytime5/server.cpp ;
exe daytime6_server : <template>asio_tutorial daytime6/server.cpp ;
exe daytime7_server : <template>asio_tutorial daytime7/server.cpp ;
