Makefile.am 7.1 KB

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