-
+ 4B7074D3A08D375347F9534DFB9D5A623E443A04E68A739CA780A569E5B5E91B0EB2C683233A72ACAB8AF08825C29EB731270E065BF37F4D487251ABDF15AD78
bitcoin/src/makefile.linux-mingw
(0 . 0)(1 . 102)
14135 # Copyright (c) 2009-2010 Satoshi Nakamoto
14136 # Distributed under the MIT/X11 software license, see the accompanying
14137 # file license.txt or http://www.opensource.org/licenses/mit-license.php.
14138
14139 DEPSDIR:=/usr/i586-mingw32msvc
14140
14141 USE_UPNP:=0
14142
14143 INCLUDEPATHS= \
14144 -I"$(DEPSDIR)/boost_1_47_0" \
14145 -I"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
14146 -I"$(DEPSDIR)/openssl-1.0.0e/include" \
14147 -I"$(DEPSDIR)"
14148
14149 LIBPATHS= \
14150 -L"$(DEPSDIR)/boost_1_47_0/stage/lib" \
14151 -L"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
14152 -L"$(DEPSDIR)/openssl-1.0.0e"
14153
14154 LIBS= \
14155 -l boost_system-mt-s \
14156 -l boost_filesystem-mt-s \
14157 -l boost_program_options-mt-s \
14158 -l boost_thread_win32-mt-s \
14159 -l db_cxx \
14160 -l ssl \
14161 -l crypto
14162
14163 DEFS=-D_MT -DWIN32 -D_WINDOWS -DNOPCH -DUSE_SSL -DBOOST_THREAD_USE_LIB
14164 DEBUGFLAGS=-g
14165 CFLAGS=-O2 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
14166 HEADERS = \
14167 base58.h \
14168 bignum.h \
14169 checkpoints.h \
14170 crypter.h \
14171 db.h \
14172 headers.h \
14173 init.h \
14174 irc.h \
14175 key.h \
14176 keystore.h \
14177 main.h \
14178 net.h \
14179 noui.h \
14180 protocol.h \
14181 bitcoinrpc.h \
14182 script.h \
14183 serialize.h \
14184 strlcpy.h \
14185 uint256.h \
14186 util.h \
14187 wallet.h
14188
14189
14190 ifdef USE_UPNP
14191 LIBPATHS += -L"$(DEPSDIR)/miniupnpc"
14192 LIBS += -l miniupnpc -l iphlpapi
14193 DEFS += -DSTATICLIB -DUSE_UPNP=$(USE_UPNP)
14194 endif
14195
14196 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
14197
14198 OBJS= \
14199 obj/checkpoints.o \
14200 obj/crypter.o \
14201 obj/db.o \
14202 obj/init.o \
14203 obj/irc.o \
14204 obj/keystore.o \
14205 obj/main.o \
14206 obj/net.o \
14207 obj/protocol.o \
14208 obj/bitcoinrpc.o \
14209 obj/script.o \
14210 obj/util.o \
14211 obj/wallet.o
14212
14213 all: bitcoind.exe
14214
14215 obj/nogui/%.o: %.cpp $(HEADERS)
14216 i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $<
14217
14218 bitcoind.exe: $(OBJS:obj/%=obj/nogui/%)
14219 i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
14220
14221
14222 obj/test/%.o: obj/test/%.cpp $(HEADERS)
14223 i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $<
14224
14225 test_bitcoin.exe: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%))
14226 i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS) -lboost_unit_test_framework-mt-s
14227
14228
14229 clean:
14230 -rm -f obj/*.o
14231 -rm -f obj/nogui/*.o
14232 -rm -f obj/test/*.o
14233 -rm -f test/*.o
14234 -rm -f headers.h.gch
14235 -rm -f bitcoind.exe
14236 -rm -f test_bitcoin.exe