Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / asio / example / cpp03 / http / server3 / Jamfile
1 #
2 # Copyright (c) 2003-2014 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
8 subproject libs/asio/example/http/server3 ;
9
10 project boost : $(BOOST_ROOT) ;
11
12 if $(UNIX)
13 {
14   switch $(JAMUNAME)
15   {
16   case SunOS* :
17     {
18       SOCKET_LIBS = <find-library>socket <find-library>nsl ;
19     }
20   }
21 }
22
23 exe http_server
24   : <lib>@boost/libs/thread/build/boost_thread
25     <lib>@boost/libs/system/build/boost_system
26     connection.cpp
27     main.cpp
28     mime_types.cpp
29     reply.cpp
30     request_handler.cpp
31     request_parser.cpp
32     server.cpp
33   : <include>$(BOOST_ROOT)
34     <include>../../../../..
35     <define>BOOST_ALL_NO_LIB=1
36     <threading>multi
37     <mingw><*><find-library>ws2_32
38     <mingw><*><find-library>mswsock
39     $(SOCKET_LIBS)
40   ;