Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

makefile.linux-mingw 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.
  4. DEPSDIR:=/usr/i586-mingw32msvc
  5. USE_UPNP:=0
  6. INCLUDEPATHS= \
  7. -I"$(DEPSDIR)/boost_1_49_0" \
  8. -I"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
  9. -I"$(DEPSDIR)/openssl-1.0.1b/include" \
  10. -I"$(DEPSDIR)" \
  11. -I"$(CURDIR)"/obj \
  12. LIBPATHS= \
  13. -L"$(DEPSDIR)/boost_1_49_0/stage/lib" \
  14. -L"$(DEPSDIR)/db-4.8.30.NC/build_unix" \
  15. -L"$(DEPSDIR)/openssl-1.0.1b"
  16. LIBS= \
  17. -l boost_system-mt-s \
  18. -l boost_filesystem-mt-s \
  19. -l boost_program_options-mt-s \
  20. -l boost_thread_win32-mt-s \
  21. -l db_cxx \
  22. -l ssl \
  23. -l crypto
  24. DEFS=-D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6
  25. DEBUGFLAGS=-g
  26. CFLAGS=-O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
  27. TESTDEFS = -DTEST_DATA_DIR=$(abspath test/data)
  28. ifdef USE_UPNP
  29. LIBPATHS += -L"$(DEPSDIR)/miniupnpc"
  30. LIBS += -l miniupnpc -l iphlpapi
  31. DEFS += -DSTATICLIB -DUSE_UPNP=$(USE_UPNP)
  32. endif
  33. 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 mswsock -l shlwapi
  34. # TODO: make the mingw builds smarter about dependencies, like the linux/osx builds are
  35. HEADERS = $(wildcard *.h)
  36. OBJS= \
  37. obj/version.o \
  38. obj/checkpoints.o \
  39. obj/netbase.o \
  40. obj/addrman.o \
  41. obj/crypter.o \
  42. obj/key.o \
  43. obj/db.o \
  44. obj/init.o \
  45. obj/irc.o \
  46. obj/keystore.o \
  47. obj/main.o \
  48. obj/net.o \
  49. obj/protocol.o \
  50. obj/bitcoinrpc.o \
  51. obj/rpcdump.o \
  52. obj/rpcnet.o \
  53. obj/rpcrawtransaction.o \
  54. obj/script.o \
  55. obj/sync.o \
  56. obj/util.o \
  57. obj/wallet.o \
  58. obj/walletdb.o \
  59. obj/noui.o
  60. all: bitcoind.exe
  61. obj/build.h: FORCE
  62. /bin/sh ../share/genbuild.sh obj/build.h
  63. version.cpp: obj/build.h
  64. DEFS += -DHAVE_BUILD_INFO
  65. obj/%.o: %.cpp $(HEADERS)
  66. i586-mingw32msvc-g++ -c $(CFLAGS) -o $@ $<
  67. bitcoind.exe: $(OBJS:obj/%=obj/%)
  68. i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)
  69. TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp))
  70. obj-test/%.o: test/%.cpp $(HEADERS)
  71. i586-mingw32msvc-g++ -c $(TESTDEFS) $(CFLAGS) -o $@ $<
  72. test_bitcoin.exe: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%))
  73. i586-mingw32msvc-g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ -lboost_unit_test_framework $(LIBS)
  74. clean:
  75. -rm -f obj/*.o
  76. -rm -f bitcoind.exe
  77. -rm -f obj-test/*.o
  78. -rm -f test_bitcoin.exe
  79. -rm -f src/build.h
  80. FORCE: