1 # This Makefile.am is in the public domain
4 plugindir = $(libdir)/gnunet
7 WINFLAGS = -no-undefined -Wl,--export-all-symbols
12 -I$(top_srcdir)/src/include \
16 libgnunetmicrophone.la \
18 libgnunetconversation.la
20 pkgcfgdir= $(pkgdatadir)/config.d/
22 libexecdir= $(pkglibdir)/libexec/
24 plugin_LTLIBRARIES = \
25 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 \
33 libgnunet_plugin_gnsrecord_conversation_la_LDFLAGS = \
37 libgnunetmicrophone_la_SOURCES = \
39 libgnunetmicrophone_la_LIBADD = \
40 $(top_builddir)/src/util/libgnunetutil.la
41 libgnunetmicrophone_la_LDFLAGS = \
42 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
45 libgnunetspeaker_la_SOURCES = \
47 libgnunetspeaker_la_LIBADD = \
48 $(top_builddir)/src/util/libgnunetutil.la
49 libgnunetspeaker_la_LDFLAGS = \
50 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
54 libgnunetconversation_la_SOURCES = \
56 conversation_api_call.c \
58 libgnunetconversation_la_LIBADD = \
59 $(top_builddir)/src/gns/libgnunetgns.la \
60 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
61 $(top_builddir)/src/namestore/libgnunetnamestore.la \
62 $(top_builddir)/src/identity/libgnunetidentity.la \
63 $(top_builddir)/src/util/libgnunetutil.la
65 libgnunetconversation_la_LDFLAGS = \
66 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
71 gnunet-conversation-test \
75 gnunet-service-conversation
78 test_conversation_api \
79 test_conversation_api_reject \
80 test_conversation_api_twocalls
82 if BUILD_PULSE_HELPERS
83 AUDIO_HELPER_RECD=gnunet-helper-audio-record
84 AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
85 AUDIO_TESTS=$(check_PROGRAMS)
88 AUDIO_HELPER_RECD=gnunet-helper-audio-record
89 AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
90 AUDIO_TESTS=$(check_PROGRAMS)
95 $(AUDIO_HELPER_RECD) \
98 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
100 TESTS = $(AUDIO_TESTS)
103 if BUILD_PULSE_HELPERS
104 gnunet_helper_audio_record_SOURCES = \
105 gnunet-helper-audio-record.c
106 gnunet_helper_audio_record_LDADD = \
107 $(top_builddir)/src/util/libgnunetutil.la \
108 -lpulse -lopus -logg \
110 gnunet_helper_audio_record_LDFLAGS = \
113 gnunet_helper_audio_playback_SOURCES = \
114 gnunet-helper-audio-playback.c
115 gnunet_helper_audio_playback_LDADD = \
116 $(top_builddir)/src/util/libgnunetutil.la \
117 -lpulse -lopus -logg \
119 gnunet_helper_audio_playback_LDFLAGS = \
123 gnunet_helper_audio_record_SOURCES = \
124 gnunet-helper-audio-record-gst.c
125 gnunet_helper_audio_record_LDADD = \
126 $(top_builddir)/src/util/libgnunetutil.la \
129 gnunet_helper_audio_record_LDFLAGS = \
130 $(WINFLAGS) $(GST_LDFLAGS)
131 gnunet_helper_audio_record_CFLAGS = \
134 gnunet_helper_audio_playback_SOURCES = \
135 gnunet-helper-audio-playback-gst.c
136 gnunet_helper_audio_playback_LDADD = \
137 $(top_builddir)/src/util/libgnunetutil.la \
140 gnunet_helper_audio_playback_LDFLAGS = \
141 $(WINFLAGS) $(GST_LDFLAGS)
142 gnunet_helper_audio_playback_CFLAGS = \
147 gnunet_service_conversation_SOURCES = \
148 gnunet-service-conversation.c
149 gnunet_service_conversation_LDADD = \
150 libgnunetconversation.la \
151 libgnunetspeaker.la \
152 libgnunetmicrophone.la \
153 $(top_builddir)/src/cadet/libgnunetcadet.la \
154 $(top_builddir)/src/util/libgnunetutil.la \
156 gnunet_service_conversation_LDFLAGS = \
159 gnunet_conversation_SOURCES = \
160 gnunet-conversation.c
161 gnunet_conversation_LDADD = \
162 libgnunetmicrophone.la \
163 libgnunetspeaker.la \
164 libgnunetconversation.la \
165 $(top_builddir)/src/gns/libgnunetgns.la \
166 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
167 $(top_builddir)/src/namestore/libgnunetnamestore.la \
168 $(top_builddir)/src/identity/libgnunetidentity.la \
169 $(top_builddir)/src/util/libgnunetutil.la \
171 gnunet_conversation_LDFLAGS = \
174 gnunet_conversation_test_SOURCES = \
175 gnunet-conversation-test.c
176 gnunet_conversation_test_LDADD = \
177 libgnunetmicrophone.la \
178 libgnunetspeaker.la \
179 $(top_builddir)/src/util/libgnunetutil.la \
181 gnunet_conversation_test_LDFLAGS = \
185 test_conversation_api_SOURCES = \
186 test_conversation_api.c
187 test_conversation_api_LDADD = \
188 libgnunetconversation.la \
189 libgnunetspeaker.la \
190 libgnunetmicrophone.la \
191 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
192 $(top_builddir)/src/namestore/libgnunetnamestore.la \
193 $(top_builddir)/src/identity/libgnunetidentity.la \
194 $(top_builddir)/src/testing/libgnunettesting.la \
195 $(top_builddir)/src/util/libgnunetutil.la
196 test_conversation_api_LDFLAGS = \
197 $(WINFLAGS) -export-dynamic
199 test_conversation_api_twocalls_SOURCES = \
200 test_conversation_api_twocalls.c
201 test_conversation_api_twocalls_LDADD = \
202 libgnunetconversation.la \
203 libgnunetspeaker.la \
204 libgnunetmicrophone.la \
205 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
206 $(top_builddir)/src/namestore/libgnunetnamestore.la \
207 $(top_builddir)/src/identity/libgnunetidentity.la \
208 $(top_builddir)/src/testing/libgnunettesting.la \
209 $(top_builddir)/src/util/libgnunetutil.la
210 test_conversation_api_twocalls_LDFLAGS = \
211 $(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
228 pkgcfg_DATA = conversation.conf
230 EXTRA_DIST = test_conversation.conf