3 To build dependencies for the current arch+OS:
7 To build for another arch/OS:
9 make HOST=host-platform-triplet
13 make HOST=x86_64-w64-mingw32 -j4
15 A prefix will be generated that's suitable for plugging into Bitcoin's
16 configure. In the above example, a dir named x86_64-w64-mingw32 will be
17 created. To use it for Bitcoin:
19 ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
21 Common `host-platform-triplets` for cross compilation are:
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
28 No other options are needed, the paths are automatically configured.
31 The following can be set when running make: make FOO=bar
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)
36 PRIORITY_DOWNLOAD_PATH: Try fetching source files from here before using their own URLs
37 NO_WALLET: Don't download/build/cache libs needed to enable the wallet
38 DEBUG: disable some optimizations and enable more runtime checking
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`.
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
50 ### Other documentation
52 - [description.md](description.md): General description of the depends system
53 - [packages.md](packages.md): Steps for adding packages