1 # This Makefile.am is in the public domain
4 plugindir = $(libdir)/gnunet
8 -I$(top_srcdir)/src/include \
14 libgnunetmicrophone.la \
16 libgnunetconversation.la
19 gnunet-conversation-test \
23 gnunet-service-conversation
26 test_conversation_api \
27 test_conversation_api_reject \
28 test_conversation_api_twocalls
30 pkgcfg_DATA = conversation.conf
33 pkgcfgdir= $(pkgdatadir)/config.d/
35 libexecdir= $(pkglibdir)/libexec/
37 plugin_LTLIBRARIES = \
38 libgnunet_plugin_gnsrecord_conversation.la
41 libgnunet_plugin_gnsrecord_conversation_la_SOURCES = \
42 plugin_gnsrecord_conversation.c
43 libgnunet_plugin_gnsrecord_conversation_la_LIBADD = \
44 $(top_builddir)/src/util/libgnunetutil.la \
46 libgnunet_plugin_gnsrecord_conversation_la_LDFLAGS = \
50 libgnunetmicrophone_la_SOURCES = \
52 libgnunetmicrophone_la_LIBADD = \
53 $(top_builddir)/src/util/libgnunetutil.la
54 libgnunetmicrophone_la_LDFLAGS = \
58 libgnunetspeaker_la_SOURCES = \
60 libgnunetspeaker_la_LIBADD = \
61 $(top_builddir)/src/util/libgnunetutil.la
62 libgnunetspeaker_la_LDFLAGS = \
67 libgnunetconversation_la_SOURCES = \
69 conversation_api_call.c \
71 libgnunetconversation_la_LIBADD = \
72 $(top_builddir)/src/gns/libgnunetgns.la \
73 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
74 $(top_builddir)/src/namestore/libgnunetnamestore.la \
75 $(top_builddir)/src/identity/libgnunetidentity.la \
76 $(top_builddir)/src/util/libgnunetutil.la
78 libgnunetconversation_la_LDFLAGS = \
83 if BUILD_PULSE_HELPERS
84 AUDIO_HELPER_RECD=gnunet-helper-audio-record
85 AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
86 AUDIO_TESTS=$(check_PROGRAMS)
89 AUDIO_HELPER_RECD=gnunet-helper-audio-record
90 AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
91 AUDIO_TESTS=$(check_PROGRAMS)
93 if BUILD_EXPERIMENTAL_HELPERS
94 AUDIO_HELPER_RECD=gnunet-helper-audio-record
95 AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
96 AUDIO_TESTS=$(check_PROGRAMS)
101 if BUILD_CONVERSATION
102 libexec_PROGRAMS += \
103 $(AUDIO_HELPER_RECD) \
107 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
109 TESTS = $(AUDIO_TESTS)
112 if BUILD_PULSE_HELPERS
113 gnunet_helper_audio_record_SOURCES = \
114 gnunet-helper-audio-record.c
115 gnunet_helper_audio_record_LDADD = \
116 $(top_builddir)/src/util/libgnunetutil.la \
117 -lpulse -lopus -logg \
119 #gnunet_helper_audio_record_LDFLAGS = \
122 gnunet_helper_audio_playback_SOURCES = \
123 gnunet-helper-audio-playback.c
124 gnunet_helper_audio_playback_LDADD = \
125 $(top_builddir)/src/util/libgnunetutil.la \
126 -lpulse -lopus -logg \
128 #gnunet_helper_audio_playback_LDFLAGS = \
132 gnunet_helper_audio_record_SOURCES = \
133 gnunet-helper-audio-record-gst.c
134 gnunet_helper_audio_record_LDADD = \
135 $(top_builddir)/src/util/libgnunetutil.la \
138 gnunet_helper_audio_record_LDFLAGS = \
140 gnunet_helper_audio_record_CFLAGS = \
143 gnunet_helper_audio_playback_SOURCES = \
144 gnunet-helper-audio-playback-gst.c
145 gnunet_helper_audio_playback_LDADD = \
146 $(top_builddir)/src/util/libgnunetutil.la \
149 gnunet_helper_audio_playback_LDFLAGS = \
151 gnunet_helper_audio_playback_CFLAGS = \
152 $(GST_CFLAGS) -DIS_SPEAKER
154 if BUILD_EXPERIMENTAL_HELPERS
155 gnunet_helper_audio_record_SOURCES = \
156 gnunet_gst_test.c gnunet_gst.c
157 gnunet_helper_audio_record_LDADD = \
158 $(top_builddir)/src/util/libgnunetutil.la \
161 gnunet_helper_audio_record_LDFLAGS = \
163 gnunet_helper_audio_record_CFLAGS = \
164 $(GST_CFLAGS) -DIS_MIC
166 gnunet_helper_audio_playback_SOURCES = \
167 gnunet_gst_test.c gnunet_gst.c
168 gnunet_helper_audio_playback_LDADD = \
169 $(top_builddir)/src/util/libgnunetutil.la \
172 gnunet_helper_audio_playback_LDFLAGS = \
174 gnunet_helper_audio_playback_CFLAGS = \
175 $(GST_CFLAGS) -DIS_SPEAKER
180 gnunet_service_conversation_SOURCES = \
181 gnunet-service-conversation.c
182 gnunet_service_conversation_LDADD = \
183 libgnunetconversation.la \
184 libgnunetspeaker.la \
185 libgnunetmicrophone.la \
186 $(top_builddir)/src/cadet/libgnunetcadet.la \
187 $(top_builddir)/src/util/libgnunetutil.la \
189 #gnunet_service_conversation_LDFLAGS = \
192 gnunet_conversation_SOURCES = \
193 gnunet-conversation.c
194 gnunet_conversation_LDADD = \
195 libgnunetmicrophone.la \
196 libgnunetspeaker.la \
197 libgnunetconversation.la \
198 $(top_builddir)/src/gns/libgnunetgns.la \
199 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
200 $(top_builddir)/src/namestore/libgnunetnamestore.la \
201 $(top_builddir)/src/identity/libgnunetidentity.la \
202 $(top_builddir)/src/util/libgnunetutil.la \
204 #gnunet_conversation_LDFLAGS = \
207 gnunet_conversation_test_SOURCES = \
208 gnunet-conversation-test.c
209 gnunet_conversation_test_LDADD = \
210 libgnunetmicrophone.la \
211 libgnunetspeaker.la \
212 $(top_builddir)/src/util/libgnunetutil.la \
214 #gnunet_conversation_test_LDFLAGS = \
218 test_conversation_api_SOURCES = \
219 test_conversation_api.c
220 test_conversation_api_LDADD = \
221 libgnunetconversation.la \
222 libgnunetspeaker.la \
223 libgnunetmicrophone.la \
224 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
225 $(top_builddir)/src/namestore/libgnunetnamestore.la \
226 $(top_builddir)/src/identity/libgnunetidentity.la \
227 $(top_builddir)/src/testing/libgnunettesting.la \
228 $(top_builddir)/src/util/libgnunetutil.la
229 test_conversation_api_LDFLAGS = \
232 test_conversation_api_twocalls_SOURCES = \
233 test_conversation_api_twocalls.c
234 test_conversation_api_twocalls_LDADD = \
235 libgnunetconversation.la \
236 libgnunetspeaker.la \
237 libgnunetmicrophone.la \
238 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
239 $(top_builddir)/src/namestore/libgnunetnamestore.la \
240 $(top_builddir)/src/identity/libgnunetidentity.la \
241 $(top_builddir)/src/testing/libgnunettesting.la \
242 $(top_builddir)/src/util/libgnunetutil.la
243 test_conversation_api_twocalls_LDFLAGS = \
246 test_conversation_api_reject_SOURCES = \
247 test_conversation_api_reject.c
248 test_conversation_api_reject_LDADD = \
249 libgnunetconversation.la \
250 libgnunetspeaker.la \
251 libgnunetmicrophone.la \
252 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
253 $(top_builddir)/src/namestore/libgnunetnamestore.la \
254 $(top_builddir)/src/identity/libgnunetidentity.la \
255 $(top_builddir)/src/testing/libgnunettesting.la \
256 $(top_builddir)/src/util/libgnunetutil.la
257 test_conversation_api_reject_LDFLAGS = \
262 EXTRA_DIST = test_conversation.conf