2 # Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
4 # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 subproject libs/asio/example/echo ;
10 project boost : $(BOOST_ROOT) ;
18 SOCKET_LIBS = <find-library>socket <find-library>nsl ;
23 template asio_echo_example
24 : <lib>@boost/libs/thread/build/boost_thread
25 <lib>@boost/libs/system/build/boost_system
26 : <include>$(BOOST_ROOT)
28 <define>BOOST_ALL_NO_LIB=1
30 <mingw><*><find-library>ws2_32
31 <mingw><*><find-library>mswsock
35 exe async_tcp_echo_server
36 : <template>asio_echo_example
37 async_tcp_echo_server.cpp
40 exe async_udp_echo_server
41 : <template>asio_echo_example
42 async_udp_echo_server.cpp
45 exe blocking_tcp_echo_client
46 : <template>asio_echo_example
47 blocking_tcp_echo_client.cpp
50 exe blocking_tcp_echo_server
51 : <template>asio_echo_example
52 blocking_tcp_echo_server.cpp
55 exe blocking_udp_echo_client
56 : <template>asio_echo_example
57 blocking_udp_echo_client.cpp
60 exe blocking_udp_echo_server
61 : <template>asio_echo_example
62 blocking_udp_echo_server.cpp