raw
genesis                 1 # Copyright (c) 2009-2010 Satoshi Nakamoto
genesis 2 # Distributed under the MIT/X11 software license, see the accompanying
genesis 3 # file license.txt or http://www.opensource.org/licenses/mit-license.php.
genesis 4
genesis 5 DEPSDIR:=/usr/i586-mingw32msvc
genesis 6
genesis 7 INCLUDEPATHS= \
genesis 8 -I"$(DEPSDIR)/boost_1_47_0" \
genesis 9 -I"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
genesis 10 -I"$(DEPSDIR)/openssl-1.0.0e/include" \
genesis 11 -I"$(DEPSDIR)"
genesis 12
genesis 13 LIBPATHS= \
genesis 14 -L"$(DEPSDIR)/boost_1_47_0/stage/lib" \
genesis 15 -L"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
genesis 16 -L"$(DEPSDIR)/openssl-1.0.0e"
genesis 17
genesis 18 LIBS= \
genesis 19 -l boost_system-mt-s \
genesis 20 -l boost_filesystem-mt-s \
genesis 21 -l boost_program_options-mt-s \
genesis 22 -l boost_thread_win32-mt-s \
genesis 23 -l db_cxx \
genesis 24 -l ssl \
genesis 25 -l crypto
genesis 26
genesis 27 DEFS=-D_MT -DWIN32 -D_WINDOWS -DNOPCH -DUSE_SSL -DBOOST_THREAD_USE_LIB
genesis 28 DEBUGFLAGS=-g
genesis 29 CFLAGS=-O2 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
genesis 30 HEADERS = \
genesis 31 base58.h \
genesis 32 bignum.h \
genesis 33 checkpoints.h \
genesis 34 crypter.h \
genesis 35 db.h \
genesis 36 headers.h \
genesis 37 init.h \
genesis 38 irc.h \
genesis 39 key.h \
genesis 40 keystore.h \
genesis 41 main.h \
genesis 42 net.h \
genesis 43 noui.h \
genesis 44 protocol.h \
genesis 45 bitcoinrpc.h \
genesis 46 script.h \
genesis 47 serialize.h \
genesis 48 strlcpy.h \
genesis 49 uint256.h \
genesis 50 util.h \
genesis 51 wallet.h
genesis 52
genesis 53
genesis 54
genesis 55 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
genesis 56
genesis 57 OBJS= \
genesis 58 obj/checkpoints.o \
genesis 59 obj/crypter.o \
genesis 60 obj/db.o \
genesis 61 obj/init.o \
genesis 62 obj/irc.o \
genesis 63 obj/keystore.o \
genesis 64 obj/main.o \
genesis 65 obj/net.o \
genesis 66 obj/protocol.o \
genesis 67 obj/bitcoinrpc.o \
genesis 68 obj/script.o \
genesis 69 obj/util.o \
genesis 70 obj/wallet.o
genesis 71
genesis 72 all: bitcoind.exe
genesis 73
genesis 74 obj/nogui/%.o: %.cpp $(HEADERS)
genesis 75 i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $<
genesis 76
genesis 77 bitcoind.exe: $(OBJS:obj/%=obj/nogui/%)
genesis 78 i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
genesis 79
genesis 80
genesis 81 obj/test/%.o: obj/test/%.cpp $(HEADERS)
genesis 82 i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $<
genesis 83
genesis 84 test_bitcoin.exe: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%))
genesis 85 i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) -lboost_unit_test_framework-mt-s
genesis 86
genesis 87
genesis 88 clean:
genesis 89 -rm -f obj/*.o
genesis 90 -rm -f obj/nogui/*.o
genesis 91 -rm -f obj/test/*.o
genesis 92 -rm -f test/*.o
genesis 93 -rm -f headers.h.gch
genesis 94 -rm -f bitcoind.exe
genesis 95 -rm -f test_bitcoin.exe