]>
Commit | Line | Data |
---|---|---|
cc3db874 SW |
1 | ### Usage |
2 | ||
3 | To build dependencies for the current arch+OS: | |
4 | ||
5 | make | |
6 | ||
7 | To build for another arch/OS: | |
8 | ||
9 | make HOST=host-platform-triplet | |
10 | ||
11 | For example: | |
12 | ||
13 | make HOST=x86_64-w64-mingw32 -j4 | |
14 | ||
15 | A prefix will be generated that's suitable for plugging into Bitcoin's | |
bfc61544 | 16 | configure. In the above example, a dir named x86_64-w64-mingw32 will be |
cc3db874 SW |
17 | created. To use it for Bitcoin: |
18 | ||
19 | ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32 | |
20 | ||
21 | Common `host-platform-triplets` for cross compilation are: | |
22 | ||
23 | - `i686-w64-mingw32` for Win32 | |
24 | - `x86_64-w64-mingw32` for Win64 | |
25 | - `x86_64-apple-darwin11` for MacOSX | |
26 | - `arm-linux-gnueabihf` for Linux ARM | |
27 | ||
28 | No other options are needed, the paths are automatically configured. | |
29 | ||
30 | Dependency Options: | |
31 | The following can be set when running make: make FOO=bar | |
32 | ||
33 | SOURCES_PATH: downloaded sources will be placed here | |
34 | BASE_CACHE: built packages will be placed here | |
35 | SDK_PATH: Path where sdk's can be found (used by OSX) | |
be60c6d7 | 36 | PRIORITY_DOWNLOAD_PATH: Try fetching source files from here before using their own URLs |
cc3db874 | 37 | NO_WALLET: Don't download/build/cache libs needed to enable the wallet |
cc3db874 SW |
38 | DEBUG: disable some optimizations and enable more runtime checking |
39 | ||
40 | If some packages are not built, for example `make NO_WALLET=1`, the appropriate | |
41 | options will be passed to bitcoin's configure. In this case, `--disable-wallet`. | |
42 | ||
43 | Additional targets: | |
44 | ||
45 | download: run 'make download' to fetch all sources without building them | |
46 | download-osx: run 'make download-osx' to fetch all sources needed for osx builds | |
47 | download-win: run 'make download-win' to fetch all sources needed for win builds | |
48 | download-linux: run 'make download-linux' to fetch all sources needed for linux builds | |
49 | ||
50 | ### Other documentation | |
51 | ||
52 | - [description.md](description.md): General description of the depends system | |
53 | - [packages.md](packages.md): Steps for adding packages | |
54 |