Makefile.am 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. # This Makefile.am is in the public domain
  2. SUBDIRS = .
  3. plugindir = $(libdir)/gnunet
  4. if MINGW
  5. WINFLAGS = -no-undefined -Wl,--export-all-symbols
  6. endif
  7. AM_CPPFLAGS = \
  8. $(GNUNET_CPPFLAGS) \
  9. -I$(top_srcdir)/src/include \
  10. -I$(top_srcdir)
  11. if BUILD_CONVERSATION
  12. lib_LTLIBRARIES = \
  13. libgnunetmicrophone.la \
  14. libgnunetspeaker.la \
  15. libgnunetconversation.la
  16. bin_PROGRAMS = \
  17. gnunet-conversation-test \
  18. gnunet-conversation
  19. libexec_PROGRAMS = \
  20. gnunet-service-conversation
  21. check_PROGRAMS = \
  22. test_conversation_api \
  23. test_conversation_api_reject \
  24. test_conversation_api_twocalls
  25. pkgcfg_DATA = conversation.conf
  26. endif
  27. pkgcfgdir= $(pkgdatadir)/config.d/
  28. libexecdir= $(pkglibdir)/libexec/
  29. plugin_LTLIBRARIES = \
  30. libgnunet_plugin_gnsrecord_conversation.la
  31. libgnunet_plugin_gnsrecord_conversation_la_SOURCES = \
  32. plugin_gnsrecord_conversation.c
  33. libgnunet_plugin_gnsrecord_conversation_la_LIBADD = \
  34. $(top_builddir)/src/util/libgnunetutil.la \
  35. $(LTLIBINTL)
  36. libgnunet_plugin_gnsrecord_conversation_la_LDFLAGS = \
  37. $(GN_PLUGIN_LDFLAGS)
  38. libgnunetmicrophone_la_SOURCES = \
  39. microphone.c
  40. libgnunetmicrophone_la_LIBADD = \
  41. $(top_builddir)/src/util/libgnunetutil.la
  42. libgnunetmicrophone_la_LDFLAGS = \
  43. $(GN_LIB_LDFLAGS) $(WINFLAGS) \
  44. -version-info 0:0:0
  45. libgnunetspeaker_la_SOURCES = \
  46. speaker.c
  47. libgnunetspeaker_la_LIBADD = \
  48. $(top_builddir)/src/util/libgnunetutil.la
  49. libgnunetspeaker_la_LDFLAGS = \
  50. $(GN_LIB_LDFLAGS) $(WINFLAGS) \
  51. -version-info 0:0:0
  52. libgnunetconversation_la_SOURCES = \
  53. conversation_api.c \
  54. conversation_api_call.c \
  55. conversation.h
  56. libgnunetconversation_la_LIBADD = \
  57. $(top_builddir)/src/gns/libgnunetgns.la \
  58. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
  59. $(top_builddir)/src/namestore/libgnunetnamestore.la \
  60. $(top_builddir)/src/identity/libgnunetidentity.la \
  61. $(top_builddir)/src/util/libgnunetutil.la
  62. libgnunetconversation_la_LDFLAGS = \
  63. $(GN_LIB_LDFLAGS) $(WINFLAGS) \
  64. -version-info 0:0:0
  65. if BUILD_PULSE_HELPERS
  66. AUDIO_HELPER_RECD=gnunet-helper-audio-record
  67. AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
  68. AUDIO_TESTS=$(check_PROGRAMS)
  69. else
  70. if BUILD_GST_HELPERS
  71. AUDIO_HELPER_RECD=gnunet-helper-audio-record
  72. AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
  73. AUDIO_TESTS=$(check_PROGRAMS)
  74. else
  75. if BUILD_EXPERIMENTAL_HELPERS
  76. AUDIO_HELPER_RECD=gnunet-helper-audio-record
  77. AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
  78. AUDIO_TESTS=$(check_PROGRAMS)
  79. endif
  80. endif
  81. endif
  82. libexec_PROGRAMS += \
  83. $(AUDIO_HELPER_RECD) \
  84. $(AUDIO_HELPER_PLAY)
  85. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  86. if ENABLE_TEST_RUN
  87. TESTS = $(AUDIO_TESTS)
  88. endif
  89. if BUILD_PULSE_HELPERS
  90. gnunet_helper_audio_record_SOURCES = \
  91. gnunet-helper-audio-record.c
  92. gnunet_helper_audio_record_LDADD = \
  93. $(top_builddir)/src/util/libgnunetutil.la \
  94. -lpulse -lopus -logg \
  95. $(INTLLIBS)
  96. gnunet_helper_audio_record_LDFLAGS = \
  97. $(WINFLAGS)
  98. gnunet_helper_audio_playback_SOURCES = \
  99. gnunet-helper-audio-playback.c
  100. gnunet_helper_audio_playback_LDADD = \
  101. $(top_builddir)/src/util/libgnunetutil.la \
  102. -lpulse -lopus -logg \
  103. $(INTLLIBS)
  104. gnunet_helper_audio_playback_LDFLAGS = \
  105. $(WINFLAGS)
  106. else
  107. if BUILD_GST_HELPERS
  108. gnunet_helper_audio_record_SOURCES = \
  109. gnunet-helper-audio-record-gst.c
  110. gnunet_helper_audio_record_LDADD = \
  111. $(top_builddir)/src/util/libgnunetutil.la \
  112. $(GST_LIBS) \
  113. $(INTLLIBS)
  114. gnunet_helper_audio_record_LDFLAGS = \
  115. $(WINFLAGS) $(GST_LDFLAGS)
  116. gnunet_helper_audio_record_CFLAGS = \
  117. $(GST_CFLAGS)
  118. gnunet_helper_audio_playback_SOURCES = \
  119. gnunet-helper-audio-playback-gst.c
  120. gnunet_helper_audio_playback_LDADD = \
  121. $(top_builddir)/src/util/libgnunetutil.la \
  122. $(GST_LIBS) \
  123. $(INTLLIBS)
  124. gnunet_helper_audio_playback_LDFLAGS = \
  125. $(WINFLAGS) $(GST_LDFLAGS)
  126. gnunet_helper_audio_playback_CFLAGS = \
  127. $(GST_CFLAGS) -DIS_SPEAKER
  128. else
  129. if BUILD_EXPERIMENTAL_HELPERS
  130. gnunet_helper_audio_record_SOURCES = \
  131. gnunet_gst_test.c gnunet_gst.c
  132. gnunet_helper_audio_record_LDADD = \
  133. $(top_builddir)/src/util/libgnunetutil.la \
  134. $(GST_LIBS) \
  135. $(INTLLIBS)
  136. gnunet_helper_audio_record_LDFLAGS = \
  137. $(WINFLAGS) $(GST_LDFLAGS)
  138. gnunet_helper_audio_record_CFLAGS = \
  139. $(GST_CFLAGS) -DIS_MIC
  140. gnunet_helper_audio_playback_SOURCES = \
  141. gnunet_gst_test.c gnunet_gst.c
  142. gnunet_helper_audio_playback_LDADD = \
  143. $(top_builddir)/src/util/libgnunetutil.la \
  144. $(GST_LIBS) \
  145. $(INTLLIBS)
  146. gnunet_helper_audio_playback_LDFLAGS = \
  147. $(WINFLAGS) $(GST_LDFLAGS)
  148. gnunet_helper_audio_playback_CFLAGS = \
  149. $(GST_CFLAGS) -DIS_SPEAKER
  150. endif
  151. endif
  152. endif
  153. gnunet_service_conversation_SOURCES = \
  154. gnunet-service-conversation.c
  155. gnunet_service_conversation_LDADD = \
  156. libgnunetconversation.la \
  157. libgnunetspeaker.la \
  158. libgnunetmicrophone.la \
  159. $(top_builddir)/src/cadet/libgnunetcadet.la \
  160. $(top_builddir)/src/util/libgnunetutil.la \
  161. $(INTLLIBS)
  162. gnunet_service_conversation_LDFLAGS = \
  163. $(WINFLAGS)
  164. gnunet_conversation_SOURCES = \
  165. gnunet-conversation.c
  166. gnunet_conversation_LDADD = \
  167. libgnunetmicrophone.la \
  168. libgnunetspeaker.la \
  169. libgnunetconversation.la \
  170. $(top_builddir)/src/gns/libgnunetgns.la \
  171. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
  172. $(top_builddir)/src/namestore/libgnunetnamestore.la \
  173. $(top_builddir)/src/identity/libgnunetidentity.la \
  174. $(top_builddir)/src/util/libgnunetutil.la \
  175. $(INTLLIBS)
  176. gnunet_conversation_LDFLAGS = \
  177. $(WINFLAGS)
  178. gnunet_conversation_test_SOURCES = \
  179. gnunet-conversation-test.c
  180. gnunet_conversation_test_LDADD = \
  181. libgnunetmicrophone.la \
  182. libgnunetspeaker.la \
  183. $(top_builddir)/src/util/libgnunetutil.la \
  184. $(INTLLIBS)
  185. gnunet_conversation_test_LDFLAGS = \
  186. $(WINFLAGS)
  187. test_conversation_api_SOURCES = \
  188. test_conversation_api.c
  189. test_conversation_api_LDADD = \
  190. libgnunetconversation.la \
  191. libgnunetspeaker.la \
  192. libgnunetmicrophone.la \
  193. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
  194. $(top_builddir)/src/namestore/libgnunetnamestore.la \
  195. $(top_builddir)/src/identity/libgnunetidentity.la \
  196. $(top_builddir)/src/testing/libgnunettesting.la \
  197. $(top_builddir)/src/util/libgnunetutil.la
  198. test_conversation_api_LDFLAGS = \
  199. $(WINFLAGS) -export-dynamic
  200. test_conversation_api_twocalls_SOURCES = \
  201. test_conversation_api_twocalls.c
  202. test_conversation_api_twocalls_LDADD = \
  203. libgnunetconversation.la \
  204. libgnunetspeaker.la \
  205. libgnunetmicrophone.la \
  206. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
  207. $(top_builddir)/src/namestore/libgnunetnamestore.la \
  208. $(top_builddir)/src/identity/libgnunetidentity.la \
  209. $(top_builddir)/src/testing/libgnunettesting.la \
  210. $(top_builddir)/src/util/libgnunetutil.la
  211. test_conversation_api_twocalls_LDFLAGS = \
  212. $(WINFLAGS) -export-dynamic
  213. test_conversation_api_reject_SOURCES = \
  214. test_conversation_api_reject.c
  215. test_conversation_api_reject_LDADD = \
  216. libgnunetconversation.la \
  217. libgnunetspeaker.la \
  218. libgnunetmicrophone.la \
  219. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
  220. $(top_builddir)/src/namestore/libgnunetnamestore.la \
  221. $(top_builddir)/src/identity/libgnunetidentity.la \
  222. $(top_builddir)/src/testing/libgnunettesting.la \
  223. $(top_builddir)/src/util/libgnunetutil.la
  224. test_conversation_api_reject_LDFLAGS = \
  225. $(WINFLAGS) -export-dynamic
  226. EXTRA_DIST = test_conversation.conf