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