-
+ A5C8C1808267DF2783F5B6EAF5B792F0B4F9A165C652BE1832563FC6AAFDAE861A4EEE1143D717E0E5A6F78E93AE1B00292CD462A319F4B4F33ACBBE91A37B8F
bitcoin/src/makefile.linux-mingw
(0 . 0)(1 . 133)
15220 # /****************************\
15221 # * EXPERIMENTAL BRANCH. *
15222 # * FOR LABORATORY USE ONLY. *
15223 # ********************************
15224 # ************
15225 # **************
15226 # ****************
15227 # **** **** ****
15228 # *** *** ***
15229 # *** *** ***
15230 # *** * * **
15231 # ******** ********
15232 # ******* ******
15233 # *** **
15234 # * ******* **
15235 # ** * * * * *
15236 # ** * * ***
15237 # **** * * * * ****
15238 # **** *** * * ** ***
15239 # **** ********* ******
15240 # ******* ***** *******
15241 # ********* ****** **
15242 # ** ****** ******
15243 # ** ******* **
15244 # ** ******* ***
15245 # **** ******** ************
15246 # ************ ************
15247 # ******** *******
15248 # ****** ****
15249 # *** ***
15250 # ********************************
15251 # Copyright (c) 2009-2010 Satoshi Nakamoto
15252 # Distributed under the MIT/X11 software license, see the accompanying
15253 # file license.txt or http://www.opensource.org/licenses/mit-license.php.
15254
15255 DEPSDIR:=/usr/i586-mingw32msvc
15256
15257 USE_UPNP:=0
15258
15259 INCLUDEPATHS= \
15260 -I"$(DEPSDIR)/boost_1_47_0" \
15261 -I"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
15262 -I"$(DEPSDIR)/openssl-1.0.0e/include" \
15263 -I"$(DEPSDIR)"
15264
15265 LIBPATHS= \
15266 -L"$(DEPSDIR)/boost_1_47_0/stage/lib" \
15267 -L"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
15268 -L"$(DEPSDIR)/openssl-1.0.0e"
15269
15270 LIBS= \
15271 -l boost_system-mt-s \
15272 -l boost_filesystem-mt-s \
15273 -l boost_program_options-mt-s \
15274 -l boost_thread_win32-mt-s \
15275 -l db_cxx \
15276 -l ssl \
15277 -l crypto
15278
15279 DEFS=-D_MT -DWIN32 -D_WINDOWS -DNOPCH -DUSE_SSL -DBOOST_THREAD_USE_LIB
15280 DEBUGFLAGS=-g
15281 CFLAGS=-O2 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
15282 HEADERS = \
15283 base58.h \
15284 bignum.h \
15285 checkpoints.h \
15286 crypter.h \
15287 db.h \
15288 headers.h \
15289 init.h \
15290 irc.h \
15291 key.h \
15292 keystore.h \
15293 main.h \
15294 net.h \
15295 noui.h \
15296 protocol.h \
15297 bitcoinrpc.h \
15298 script.h \
15299 serialize.h \
15300 strlcpy.h \
15301 uint256.h \
15302 util.h \
15303 wallet.h
15304
15305
15306 ifdef USE_UPNP
15307 LIBPATHS += -L"$(DEPSDIR)/miniupnpc"
15308 LIBS += -l miniupnpc -l iphlpapi
15309 DEFS += -DSTATICLIB -DUSE_UPNP=$(USE_UPNP)
15310 endif
15311
15312 LIBS += -l mingwthrd -l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l shlwapi
15313
15314 OBJS= \
15315 obj/checkpoints.o \
15316 obj/crypter.o \
15317 obj/db.o \
15318 obj/init.o \
15319 obj/irc.o \
15320 obj/keystore.o \
15321 obj/main.o \
15322 obj/net.o \
15323 obj/protocol.o \
15324 obj/bitcoinrpc.o \
15325 obj/script.o \
15326 obj/util.o \
15327 obj/wallet.o
15328
15329 all: bitcoind.exe
15330
15331 obj/nogui/%.o: %.cpp $(HEADERS)
15332 i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $<
15333
15334 bitcoind.exe: $(OBJS:obj/%=obj/nogui/%)
15335 i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
15336
15337
15338 obj/test/%.o: obj/test/%.cpp $(HEADERS)
15339 i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $<
15340
15341 test_bitcoin.exe: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%))
15342 i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) -lboost_unit_test_framework-mt-s
15343
15344
15345 clean:
15346 -rm -f obj/*.o
15347 -rm -f obj/nogui/*.o
15348 -rm -f obj/test/*.o
15349 -rm -f test/*.o
15350 -rm -f headers.h.gch
15351 -rm -f bitcoind.exe
15352 -rm -f test_bitcoin.exe