-
Notifications
You must be signed in to change notification settings - Fork 46
/
Jamfile
85 lines (73 loc) · 1.84 KB
/
Jamfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import stage ;
import os ;
import modules ;
import errors ;
import feature : feature ;
import package ;
import virtual-target ;
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
OS = [ os.name ] ;
#Êä³ö»·¾³±äÁ¿BOOST_ROOT.
ECHO "BOOST_ROOT =" $(BOOST_ROOT) ;
ECHO "OS =" [ os.name ] ;
local boost-library-search-path =
<search>/opt/local/lib
<search>/usr/lib
<search>/usr/local/lib
;
lib boost_thread : : <name>boost_thread $(boost-library-search-path) ;
lib boost_system : : <name>boost_system $(boost-library-search-path) ;
lib boost_program_options : : <name>boost_program_options $(boost-library-search-path) ;
lib boost_regex : : <name>boost_regex $(boost-library-search-path) ;
lib boost_filesystem : : <name>boost_filesystem $(boost-library-search-path) ;
lib pthread : : <name>pthread $(boost-library-search-path) ;
rule linking ( properties * )
{
local result ;
if $(OS) = "NT"
{
result += <library-path>$(BOOST_ROOT:T)/stage/vc80lib ;
result += <library-path>$(BOOST_ROOT:T)/stage/lib ;
result += <linkflags>"user32.lib gdi32.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib" ;
result += <define>WIN32 ;
result += <define>_WIN32_WINNT=0x0501 ;
result += <define>_CONSOLE ;
result += <define>_CRT_SECURE_NO_WARNINGS ;
result += <define>_SCL_SECURE_NO_WARNINGS ;
}
if $(OS) = "LINUX"
{
result +=
<library>boost_thread
<library>boost_system
<library>boost_program_options
<library>boost_regex
<library>boost_filesystem
<library-path>$(BOOST_ROOT:T)/stage/lib
;
}
return $(result) ;
}
local usage-requirements =
<conditional>@linking
;
project PortMap : requirements
<include>.
<include>$(BOOST_ROOT:T)
<warnings>off
: build-dir bin
;
SOURCES =
stdafx.cpp
netmap.cpp
portmap.cpp
logger.cpp
;
exe PortMap
: $(SOURCES)
: $(usage-requirements)
:
<link>static
<runtime-link>static
<threading>multi
;