1 # Copyright (c) 2009-2010 Satoshi Nakamoto
2 # Distributed under the MIT/X11 software license, see the accompanying
3 # file license.txt or http://www.opensource.org/licenses/mit-license.php.
5 DEPSDIR:=/usr/i586-mingw32msvc
10 -I"$(DEPSDIR)/boost_1_47_0" \
11 -I"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
12 -I"$(DEPSDIR)/openssl-1.0.0e/include" \
16 -L"$(DEPSDIR)/boost_1_47_0/stage/lib" \
17 -L"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
18 -L"$(DEPSDIR)/openssl-1.0.0e"
21 -l boost_system-mt-s \
22 -l boost_filesystem-mt-s \
23 -l boost_program_options-mt-s \
24 -l boost_thread_win32-mt-s \
29 DEFS=-D_MT -DWIN32 -D_WINDOWS -DNOPCH -DUSE_SSL -DBOOST_THREAD_USE_LIB
31 CFLAGS=-O2 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
57 LIBPATHS += -L"$(DEPSDIR)/miniupnpc"
58 LIBS += -l miniupnpc -l iphlpapi
59 DEFS += -DSTATICLIB -DUSE_UPNP=$(USE_UPNP)
62 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
81 obj/nogui/%.o: %.cpp $(HEADERS)
82 i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $<
84 bitcoind.exe: $(OBJS:obj/%=obj/nogui/%)
85 i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
88 obj/test/%.o: obj/test/%.cpp $(HEADERS)
89 i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $<
91 test_bitcoin.exe: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%))
92 i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) -lboost_unit_test_framework-mt-s
102 -rm -f test_bitcoin.exe