1#
2# Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
3#
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)
6#
7
8import os ;
9
10if [ os.name ] = SOLARIS
11{
12  lib socket ;
13  lib nsl ;
14}
15else if [ os.name ] = NT
16{
17  lib ws2_32 ;
18  lib mswsock ;
19}
20else if [ os.name ] = HPUX
21{
22  lib ipv6 ;
23}
24
25project
26  : requirements
27    <library>/boost/system//boost_system
28    <define>BOOST_ALL_NO_LIB=1
29    <threading>multi
30    <os>SOLARIS:<library>socket
31    <os>SOLARIS:<library>nsl
32    <os>NT:<define>_WIN32_WINNT=0x0501
33    <os>NT,<toolset>gcc:<library>ws2_32
34    <os>NT,<toolset>gcc:<library>mswsock
35    <os>NT,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS
36    <os>HPUX,<toolset>gcc:<define>_XOPEN_SOURCE_EXTENDED
37    <os>HPUX:<library>ipv6
38  ;
39
40exe receiver : receiver.cpp ;
41exe sender : sender.cpp ;
42