forked from xCoreDev/minerpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jamfile
executable file
·110 lines (93 loc) · 2.25 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import modules ;
import os ;
ECHO "OS =" [ os.name ] ;
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
if [ os.name ] = MACOSX
{
BOOST_ROOT = ./deps/boost ;
}
else if [ os.name ] = NT
{
BOOST_ROOT = ./deps/boost ;
}
else if [ os.name ] = LINUX
{
BOOST_ROOT = ./deps/boost ;
}
else
{
if ! $(BOOST_ROOT)
{
BOOST_ROOT = ./deps/boost ;
}
}
ECHO "BOOST_ROOT =" $(BOOST_ROOT) ;
if $(BOOST_ROOT)
{
use-project /boost : $(BOOST_ROOT) ;
}
SOURCES =
configuration
cpu_manager
cpu
gpu
gpu_handler
gpu_manager
hash
serial_handler_mojov3
serial_handler_ztex
serial_handler
serial_manager
serial_port
sha256
stack_impl
stack
statistics
stratum_connection
stratum_work
stratum
utility
whirlpool
work_manager
;
local usage-requirements =
<include>./include
<include>./miner/include
<include>./deps
<toolset>gcc:<include>$(BOOST_ROOT)
<toolset>clang-darwin:<include>$(BOOST_ROOT)
<toolset>darwin:<include>$(BOOST_ROOT)
<toolset>msvc:<include>$(BOOST_ROOT)
<toolset>gcc:<include>./deps/openssl/include
<toolset>clang-darwin:<include>./deps/platforms/osx/openssl/include
<toolset>darwin:<include>./deps/platforms/osx/openssl/include
<toolset>msvc:<include>./deps/platforms/windows/openssl/include
<toolset>msvc,<variant>debug:<include>$(BOOST_ROOT)/build/debug/include
<toolset>msvc,<variant>release:<include>$(BOOST_ROOT)/build/release/include
<variant>release:<define>NDEBUG
<define>_FILE_OFFSET_BITS=64
<toolset>clang-darwin:<define>BOOST_NO_CXX11_NUMERIC_LIMITS
<toolset>msvc:<define>_WIN32_WINNT=0x0501
<toolset>msvc:<define>_UNICODE
<toolset>msvc:<define>UNICODE
<toolset>msvc:<cxxflags>/Zc:wchar_t
<toolset>msvc:<cxxflags>/Zc:forScope
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_WIN32_WINNT=0x0501
<toolset>msvc:<define>BOOST_ALL_NO_LIB=1
<toolset>msvc,<variant>release:<linkflags>/OPT:ICF=5
<toolset>msvc,<variant>release:<linkflags>/OPT:REF
;
project miner ;
lib miner
: # sources
src/$(SOURCES).cpp
: # requirements
<threading>multi
$(usage-requirements)
: # default build
<link>static
: # usage requirements
$(usage-requirements)
;