Makefile.am 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. # This Makefile.am is in the public domain
  2. SUBDIRS = .
  3. plugindir = $(libdir)/gnunet
  4. AM_CPPFLAGS = \
  5. $(GNUNET_CPPFLAGS) \
  6. -I$(top_srcdir)/src/include \
  7. -I$(top_srcdir)
  8. if BUILD_CONVERSATION
  9. lib_LTLIBRARIES = \
  10. libgnunetmicrophone.la \
  11. libgnunetspeaker.la \
  12. libgnunetconversation.la
  13. bin_PROGRAMS = \
  14. gnunet-conversation-test \
  15. gnunet-conversation
  16. libexec_PROGRAMS = \
  17. gnunet-service-conversation
  18. check_PROGRAMS = \
  19. test_conversation_api \
  20. test_conversation_api_reject \
  21. test_conversation_api_twocalls
  22. pkgcfg_DATA = conversation.conf
  23. endif
  24. pkgcfgdir= $(pkgdatadir)/config.d/
  25. libexecdir= $(pkglibdir)/libexec/
  26. plugin_LTLIBRARIES = \
  27. libgnunet_plugin_gnsrecord_conversation.la
  28. libgnunet_plugin_gnsrecord_conversation_la_SOURCES = \
  29. plugin_gnsrecord_conversation.c
  30. libgnunet_plugin_gnsrecord_conversation_la_LIBADD = \
  31. $(top_builddir)/src/util/libgnunetutil.la \
  32. $(LTLIBINTL)
  33. libgnunet_plugin_gnsrecord_conversation_la_LDFLAGS = \
  34. $(GN_PLUGIN_LDFLAGS)
  35. libgnunetmicrophone_la_SOURCES = \
  36. microphone.c
  37. libgnunetmicrophone_la_LIBADD = \
  38. $(top_builddir)/src/util/libgnunetutil.la
  39. libgnunetmicrophone_la_LDFLAGS = \
  40. $(GN_LIB_LDFLAGS) \
  41. -version-info 0:0:0
  42. libgnunetspeaker_la_SOURCES = \
  43. speaker.c
  44. libgnunetspeaker_la_LIBADD = \
  45. $(top_builddir)/src/util/libgnunetutil.la
  46. libgnunetspeaker_la_LDFLAGS = \
  47. $(GN_LIB_LDFLAGS) \
  48. -version-info 0:0:0
  49. libgnunetconversation_la_SOURCES = \
  50. conversation_api.c \
  51. conversation_api_call.c \
  52. conversation.h
  53. libgnunetconversation_la_LIBADD = \
  54. $(top_builddir)/src/gns/libgnunetgns.la \
  55. $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
  56. $(top_builddir)/src/namestore/libgnunetnamestore.la \
  57. $(top_builddir)/src/identity/libgnunetidentity.la \
  58. $(top_builddir)/src/util/libgnunetutil.la
  59. libgnunetconversation_la_LDFLAGS = \
  60. $(GN_LIB_LDFLAGS) \
  61. -version-info 0:0:0
  62. if BUILD_PULSE_HELPERS
  63. AUDIO_HELPER_RECD=gnunet-helper-audio-record
  64. AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
  65. AUDIO_TESTS=$(check_PROGRAMS)
  66. else
  67. if BUILD_GST_HELPERS
  68. AUDIO_HELPER_RECD=gnunet-helper-audio-record
  69. AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
  70. AUDIO_TESTS=$(check_PROGRAMS)
  71. else
  72. if BUILD_EXPERIMENTAL_HELPERS
  73. AUDIO_HELPER_RECD=gnunet-helper-audio-record
  74. AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
  75. AUDIO_TESTS=$(check_PROGRAMS)
  76. endif
  77. endif
  78. endif
  79. if BUILD_CONVERSATION
  80. libexec_PROGRAMS += \
  81. $(AUDIO_HELPER_RECD) \
  82. $(AUDIO_HELPER_PLAY)
  83. endif
  84. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  85. if ENABLE_TEST_RUN
  86. TESTS = $(AUDIO_TESTS)
  87. endif
  88. if BUILD_PULSE_HELPERS
  89. gnunet_helper_audio_record_SOURCES = \
  90. gnunet-helper-audio-record.c
  91. gnunet_helper_audio_record_LDADD = \
  92. $(top_builddir)/src/util/libgnunetutil.la \
  93. -lpulse -lopus -logg \
  94. $(INTLLIBS)
  95. #gnunet_helper_audio_record_LDFLAGS = \
  96. #
  97. gnunet_helper_audio_playback_SOURCES = \
  98. gnunet-helper-audio-playback.c
  99. gnunet_helper_audio_playback_LDADD = \
  100. $(top_builddir)/src/util/libgnunetutil.la \
  101. -lpulse -lopus -logg \
  102. $(INTLLIBS)
  103. #gnunet_helper_audio_playback_LDFLAGS = \
  104. #
  105. else
  106. if BUILD_GST_HELPERS
  107. gnunet_helper_audio_record_SOURCES = \
  108. gnunet-helper-audio-record-gst.c
  109. gnunet_helper_audio_record_LDADD = \
  110. $(top_builddir)/src/util/libgnunetutil.la \
  111. $(GST_LIBS) \
  112. $(INTLLIBS)
  113. gnunet_helper_audio_record_LDFLAGS = \
  114. $(GST_LDFLAGS)
  115. gnunet_helper_audio_record_CFLAGS = \
  116. $(GST_CFLAGS)
  117. gnunet_helper_audio_playback_SOURCES = \
  118. gnunet-helper-audio-playback-gst.c
  119. gnunet_helper_audio_playback_LDADD = \
  120. $(top_builddir)/src/util/libgnunetutil.la \
  121. $(GST_LIBS) \
  122. $(INTLLIBS)
  123. gnunet_helper_audio_playback_LDFLAGS = \
  124. $(GST_LDFLAGS)
  125. gnunet_helper_audio_playback_CFLAGS = \
  126. $(GST_CFLAGS) -DIS_SPEAKER
  127. else
  128. if BUILD_EXPERIMENTAL_HELPERS
  129. gnunet_helper_audio_record_SOURCES = \
  130. gnunet_gst_test.c gnunet_gst.c
  131. gnunet_helper_audio_record_LDADD = \
  132. $(top_builddir)/src/util/libgnunetutil.la \
  133. $(GST_LIBS) \
  134. $(INTLLIBS)
  135. gnunet_helper_audio_record_LDFLAGS = \
  136. $(GST_LDFLAGS)
  137. gnunet_helper_audio_record_CFLAGS = \
  138. $(GST_CFLAGS) -DIS_MIC
  139. gnunet_helper_audio_playback_SOURCES = \
  140. gnunet_gst_test.c gnunet_gst.c
  141. gnunet_helper_audio_playback_LDADD = \
  142. $(top_builddir)/src/util/libgnunetutil.la \
  143. $(GST_LIBS) \
  144. $(INTLLIBS)
  145. gnunet_helper_audio_playback_LDFLAGS = \
  146. $(GST_LDFLAGS)
  147. gnunet_helper_audio_playback_CFLAGS = \
  148. $(GST_CFLAGS) -DIS_SPEAKER
  149. endif
  150. endif
  151. endif
  152. gnunet_service_conversation_SOURCES = \
  153. gnunet-service-conversation.c
  154. gnunet_service_conversation_LDADD = \
  155. libgnunetconversation.la \
  156. libgnunetspeaker.la \
  157. libgnunetmicrophone.la \
  158. $(top_builddir)/src/cadet/libgnunetcadet.la \
  159. $(top_builddir)/src/util/libgnunetutil.la \
  160. $(top_builddir)/src/identity/libgnunetidentity.la \
  161. $(INTLLIBS)
  162. #gnunet_service_conversation_LDFLAGS = \
  163. #
  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. #
  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. #
  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. -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. -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. -export-dynamic
  226. EXTRA_DIST = test_conversation.conf