-
+ FCA1751638C1698DD066F99A95C2FA06A6EB5E5031038F94BB788E5901B9937EB6976CCA739F0C0BA4517A719DFB3DFDF656B852E6CE80411461CCCD7847F7DDbitcoin/build/Makefile.rotor(0 . 0)(1 . 56)
98 ######################################
99 #Turds!
100 OPENSSL=openssl-1.0.1g
101 BDB=db-4.8.30
102 BOOST=boost_1_52_0
103 ######################################
104
105 export DIST=$(shell readlink -f ../deps)
106 export OURLIBS=$(shell readlink -f ./ourlibs)
107 export CC=$(shell readlink -f toolchain/usr/bin/x86_64-therealbitcoin-linux-musl-gcc)
108 export CXX=$(shell readlink -f toolchain/usr/bin/x86_64-therealbitcoin-linux-musl-g++)
109 export LD=$(shell readlink -f toolchain/usr/bin/x86_64-therealbitcoin-linux-musl-ld)
110 export CFLAGS=-I$(shell readlink -f toolchain/usr/include)
111 export LDFLAGS=-L$(shell readlink -f toolchain/usr/lib)
112 export PATH := $(PATH):$(shell readlink -f toolchain/usr/bin)
113 export BOOST_INCLUDE_PATH=$(OURLIBS)/include
114 export BDB_INCLUDE_PATH=$(OURLIBS)/include
115 export OPENSSL_INCLUDE_PATH=$(OURLIBS)/include
116 export BOOST_LIB_PATH=$(OURLIBS)/lib
117 export BDB_LIB_PATH=$(OURLIBS)/lib
118 export OPENSSL_LIB_PATH=$(OURLIBS)/lib
119
120
121 all: $(BOOST) $(BDB) $(OPENSSL) bitcoind
122
123 clean:
124 rm -rf $(BOOST) $(BDB) $(OPENSSL)
125
126 $(BOOST):
127 tar xvjf $(DIST)/$(BOOST).tar.bz2
128 cd $(BOOST) && \
129 echo "using gcc : : $(CXX) ;" >> tools/build/v2/user-config.jam && \
130 ./bootstrap.sh && \
131 (./bjam toolset=gcc link=static -sNO_BZIP2=1 -sNO_ZLIB=1 -sNO_COMPRESSION=1 || true) # FIX THIS ABOMINATION!!!
132 cd $(BOOST) && \
133 (./bjam toolset=gcc link=static --prefix=$(OURLIBS) install || true) # FIX THIS ABOMINATION!!!
134
135 $(BDB):
136 tar xvfz $(DIST)/$(BDB).tar.gz
137 cd $(BDB)/build_unix && \
138 ../dist/configure --enable-cxx --prefix=$(OURLIBS) --host=x86_64-linux && \
139 $(MAKE) && \
140 $(MAKE) install
141
142 $(OPENSSL):
143 tar xvfz $(DIST)/$(OPENSSL).tar.gz
144 cd $(OPENSSL) && \
145 patch -p1 < ../openssl-004-musl-termios.patch && \
146 ./Configure --prefix=$(OURLIBS) no-dso threads linux-x86_64 && \
147 $(MAKE) && \
148 $(MAKE) install_sw
149
150 bitcoind:
151 cd ../src && \
152 $(MAKE) STATIC=all -f makefile.unix bitcoind
153 strip ../src/bitcoind