You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 8.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. include $(top_srcdir)/src/Makefile.include
  2. AM_CPPFLAGS += -I$(top_srcdir)/src \
  3. -I$(top_builddir)/src/qt \
  4. -I$(top_builddir)/src/qt/forms \
  5. $(PROTOBUF_CFLAGS) \
  6. $(QR_CFLAGS)
  7. bin_PROGRAMS = bitcoin-qt
  8. noinst_LIBRARIES = libbitcoinqt.a
  9. SUBDIRS = $(BUILD_TEST_QT)
  10. DIST_SUBDIRS = test
  11. # bitcoin qt core #
  12. QT_TS = \
  13. locale/bitcoin_ach.ts \
  14. locale/bitcoin_af_ZA.ts \
  15. locale/bitcoin_ar.ts \
  16. locale/bitcoin_be_BY.ts \
  17. locale/bitcoin_bg.ts \
  18. locale/bitcoin_bs.ts \
  19. locale/bitcoin_ca_ES.ts \
  20. locale/bitcoin_ca.ts \
  21. locale/bitcoin_cs.ts \
  22. locale/bitcoin_cy.ts \
  23. locale/bitcoin_da.ts \
  24. locale/bitcoin_de_AT.ts \
  25. locale/bitcoin_de.ts \
  26. locale/bitcoin_el_GR.ts \
  27. locale/bitcoin_en.ts \
  28. locale/bitcoin_eo.ts \
  29. locale/bitcoin_es_CL.ts \
  30. locale/bitcoin_es_MX.ts \
  31. locale/bitcoin_es.ts \
  32. locale/bitcoin_et.ts \
  33. locale/bitcoin_eu_ES.ts \
  34. locale/bitcoin_fa_IR.ts \
  35. locale/bitcoin_fa.ts \
  36. locale/bitcoin_fi.ts \
  37. locale/bitcoin_fr_CA.ts \
  38. locale/bitcoin_fr.ts \
  39. locale/bitcoin_gl.ts \
  40. locale/bitcoin_gu_IN.ts \
  41. locale/bitcoin_he.ts \
  42. locale/bitcoin_hi_IN.ts \
  43. locale/bitcoin_hr.ts \
  44. locale/bitcoin_hu.ts \
  45. locale/bitcoin_id_ID.ts \
  46. locale/bitcoin_it.ts \
  47. locale/bitcoin_ja.ts \
  48. locale/bitcoin_kk_KZ.ts \
  49. locale/bitcoin_ko_KR.ts \
  50. locale/bitcoin_la.ts \
  51. locale/bitcoin_lt.ts \
  52. locale/bitcoin_lv_LV.ts \
  53. locale/bitcoin_ms_MY.ts \
  54. locale/bitcoin_nb.ts \
  55. locale/bitcoin_nl.ts \
  56. locale/bitcoin_pam.ts \
  57. locale/bitcoin_pl.ts \
  58. locale/bitcoin_pt_BR.ts \
  59. locale/bitcoin_pt_PT.ts \
  60. locale/bitcoin_ro_RO.ts \
  61. locale/bitcoin_ru.ts \
  62. locale/bitcoin_sk.ts \
  63. locale/bitcoin_sl_SI.ts \
  64. locale/bitcoin_sq.ts \
  65. locale/bitcoin_sr.ts \
  66. locale/bitcoin_sv.ts \
  67. locale/bitcoin_th_TH.ts \
  68. locale/bitcoin_tr.ts \
  69. locale/bitcoin_uk.ts \
  70. locale/bitcoin_vi.ts \
  71. locale/bitcoin_vi_VN.ts \
  72. locale/bitcoin_zh_CN.ts \
  73. locale/bitcoin_zh_TW.ts
  74. QT_FORMS_UI = forms/aboutdialog.ui forms/addressbookpage.ui \
  75. forms/askpassphrasedialog.ui \
  76. forms/coincontroldialog.ui \
  77. forms/editaddressdialog.ui \
  78. forms/intro.ui \
  79. forms/openuridialog.ui \
  80. forms/optionsdialog.ui forms/overviewpage.ui forms/receiverequestdialog.ui \
  81. forms/receivecoinsdialog.ui \
  82. forms/rpcconsole.ui forms/sendcoinsdialog.ui forms/sendcoinsentry.ui \
  83. forms/signverifymessagedialog.ui forms/transactiondescdialog.ui
  84. QT_MOC_CPP = moc_aboutdialog.cpp moc_addressbookpage.cpp \
  85. moc_addresstablemodel.cpp moc_askpassphrasedialog.cpp \
  86. moc_bitcoinaddressvalidator.cpp moc_bitcoinamountfield.cpp \
  87. moc_bitcoingui.cpp moc_bitcoinunits.cpp moc_clientmodel.cpp \
  88. moc_coincontroldialog.cpp \
  89. moc_coincontroltreewidget.cpp \
  90. moc_csvmodelwriter.cpp moc_editaddressdialog.cpp moc_guiutil.cpp \
  91. moc_intro.cpp moc_macdockiconhandler.cpp moc_macnotificationhandler.cpp \
  92. moc_monitoreddatamapper.cpp moc_notificator.cpp \
  93. moc_openuridialog.cpp \
  94. moc_optionsdialog.cpp \
  95. moc_optionsmodel.cpp moc_overviewpage.cpp moc_paymentserver.cpp \
  96. moc_receiverequestdialog.cpp moc_qvalidatedlineedit.cpp moc_qvaluecombobox.cpp \
  97. moc_receivecoinsdialog.cpp \
  98. moc_recentrequeststablemodel.cpp \
  99. moc_rpcconsole.cpp moc_sendcoinsdialog.cpp moc_sendcoinsentry.cpp \
  100. moc_signverifymessagedialog.cpp moc_splashscreen.cpp moc_trafficgraphwidget.cpp moc_transactiondesc.cpp \
  101. moc_transactiondescdialog.cpp moc_transactionfilterproxy.cpp \
  102. moc_transactiontablemodel.cpp moc_transactionview.cpp moc_walletframe.cpp \
  103. moc_walletmodel.cpp moc_walletview.cpp
  104. BITCOIN_MM = macdockiconhandler.mm macnotificationhandler.mm
  105. QT_MOC = intro.moc overviewpage.moc rpcconsole.moc
  106. QT_QRC_CPP = qrc_bitcoin.cpp
  107. QT_QRC = bitcoin.qrc
  108. PROTOBUF_CC = paymentrequest.pb.cc
  109. PROTOBUF_H = paymentrequest.pb.h
  110. PROTOBUF_PROTO = paymentrequest.proto
  111. BITCOIN_QT_H = aboutdialog.h addressbookpage.h addresstablemodel.h \
  112. askpassphrasedialog.h bitcoinaddressvalidator.h bitcoinamountfield.h \
  113. bitcoingui.h bitcoinunits.h clientmodel.h coincontroldialog.h coincontroltreewidget.h csvmodelwriter.h \
  114. editaddressdialog.h guiconstants.h guiutil.h intro.h macdockiconhandler.h \
  115. macnotificationhandler.h monitoreddatamapper.h notificator.h \
  116. openuridialog.h \
  117. optionsdialog.h \
  118. optionsmodel.h overviewpage.h paymentrequestplus.h paymentserver.h \
  119. receivecoinsdialog.h \
  120. recentrequeststablemodel.h \
  121. receiverequestdialog.h qvalidatedlineedit.h qvaluecombobox.h rpcconsole.h \
  122. sendcoinsdialog.h sendcoinsentry.h signverifymessagedialog.h splashscreen.h \
  123. trafficgraphwidget.h transactiondescdialog.h transactiondesc.h transactionfilterproxy.h \
  124. transactionrecord.h transactiontablemodel.h transactionview.h walletframe.h \
  125. walletmodel.h walletmodeltransaction.h walletview.h
  126. RES_ICONS = res/icons/bitcoin.png res/icons/address-book.png \
  127. res/icons/quit.png res/icons/send.png res/icons/toolbar.png \
  128. res/icons/connect0_16.png res/icons/connect1_16.png \
  129. res/icons/connect2_16.png res/icons/connect3_16.png \
  130. res/icons/connect4_16.png res/icons/transaction0.png \
  131. res/icons/transaction2.png res/icons/clock1.png res/icons/clock2.png \
  132. res/icons/clock3.png res/icons/clock4.png res/icons/clock5.png \
  133. res/icons/configure.png res/icons/receive.png res/icons/editpaste.png \
  134. res/icons/editcopy.png res/icons/add.png res/icons/bitcoin_testnet.png \
  135. res/icons/toolbar_testnet.png res/icons/edit.png res/icons/history.png \
  136. res/icons/overview.png res/icons/export.png res/icons/synced.png \
  137. res/icons/remove.png res/icons/tx_mined.png res/icons/tx_input.png \
  138. res/icons/tx_output.png res/icons/tx_inout.png res/icons/lock_closed.png \
  139. res/icons/lock_open.png res/icons/key.png res/icons/filesave.png \
  140. res/icons/qrcode.png res/icons/debugwindow.png res/icons/bitcoin.ico \
  141. res/icons/bitcoin_testnet.ico
  142. BITCOIN_QT_CPP = aboutdialog.cpp addressbookpage.cpp \
  143. addresstablemodel.cpp askpassphrasedialog.cpp bitcoinaddressvalidator.cpp \
  144. bitcoinamountfield.cpp bitcoin.cpp bitcoingui.cpp \
  145. bitcoinunits.cpp clientmodel.cpp \
  146. coincontroldialog.cpp \
  147. coincontroltreewidget.cpp \
  148. csvmodelwriter.cpp editaddressdialog.cpp \
  149. guiutil.cpp intro.cpp monitoreddatamapper.cpp notificator.cpp \
  150. openuridialog.cpp \
  151. optionsdialog.cpp optionsmodel.cpp overviewpage.cpp paymentrequestplus.cpp \
  152. paymentserver.cpp qvalidatedlineedit.cpp qvaluecombobox.cpp \
  153. receivecoinsdialog.cpp receiverequestdialog.cpp \
  154. recentrequeststablemodel.cpp \
  155. rpcconsole.cpp sendcoinsdialog.cpp sendcoinsentry.cpp \
  156. signverifymessagedialog.cpp splashscreen.cpp trafficgraphwidget.cpp transactiondesc.cpp \
  157. transactiondescdialog.cpp transactionfilterproxy.cpp transactionrecord.cpp \
  158. transactiontablemodel.cpp transactionview.cpp walletframe.cpp \
  159. walletmodel.cpp walletmodeltransaction.cpp walletview.cpp
  160. RES_IMAGES = res/images/about.png res/images/splash.png \
  161. res/images/splash_testnet.png
  162. RES_MOVIES = res/movies/update_spinner.mng
  163. BITCOIN_RC = res/bitcoin-qt-res.rc
  164. libbitcoinqt_a_CPPFLAGS = $(AM_CPPFLAGS) $(QT_INCLUDES) \
  165. -I$(top_srcdir)/src/qt/forms $(QT_DBUS_INCLUDES)
  166. libbitcoinqt_a_SOURCES = $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(QT_FORMS_UI) \
  167. $(QT_QRC) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES)
  168. nodist_libbitcoinqt_a_SOURCES = $(QT_MOC_CPP) $(QT_MOC) $(PROTOBUF_CC) \
  169. $(PROTOBUF_H) $(QT_QRC_CPP)
  170. BUILT_SOURCES = $(nodist_libbitcoinqt_a_SOURCES)
  171. #Generating these with a half-written protobuf header leads to wacky results.
  172. #This makes sure it's done.
  173. $(QT_MOC): $(PROTOBUF_H)
  174. $(QT_MOC_CPP): $(PROTOBUF_H)
  175. if TARGET_DARWIN
  176. libbitcoinqt_a_SOURCES += $(BITCOIN_MM)
  177. endif
  178. if TARGET_WINDOWS
  179. libbitcoinqt_a_SOURCES += $(BITCOIN_RC)
  180. endif
  181. #
  182. # bitcoin-qt binary #
  183. bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(QT_INCLUDES) \
  184. -I$(top_srcdir)/src/qt/forms
  185. bitcoin_qt_SOURCES = bitcoin.cpp
  186. bitcoin_qt_LDADD = libbitcoinqt.a $(LIBBITCOIN_SERVER) $(LIBBITCOIN_WALLET) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBLEVELDB) $(LIBMEMENV) \
  187. $(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS)
  188. # forms/foo.h -> forms/ui_foo.h
  189. QT_FORMS_H=$(join $(dir $(QT_FORMS_UI)),$(addprefix ui_, $(notdir $(QT_FORMS_UI:.ui=.h))))
  190. #locale/foo.ts -> locale/foo.qm
  191. QT_QM=$(QT_TS:.ts=.qm)
  192. .PHONY: FORCE
  193. .SECONDARY: $(QT_QM)
  194. bitcoinstrings.cpp: FORCE
  195. $(MAKE) -C $(top_srcdir)/src qt/bitcoinstrings.cpp
  196. translate: bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(BITCOIN_MM)
  197. @test -n $(LUPDATE) || echo "lupdate is required for updating translations"
  198. @$(LUPDATE) $^ -locations relative -no-obsolete -ts locale/bitcoin_en.ts
  199. $(QT_QRC_CPP): $(QT_QRC) $(QT_QM) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(PROTOBUF_H)
  200. @cd $(abs_srcdir); test -f $(RCC) && $(RCC) -name bitcoin -o $(abs_builddir)/$@ $< || \
  201. echo error: could not build $@
  202. $(SED) -i.bak -e '/^\*\*.*Created:/d' $@ && rm $@.bak
  203. $(SED) -i.bak -e '/^\*\*.*by:/d' $@ && rm $@.bak
  204. CLEANFILES = $(BUILT_SOURCES) $(QT_QM) $(QT_FORMS_H) *.gcda *.gcno