- add send kx for axolotl
[oweals/gnunet.git] / src / conversation / Makefile.am
1 # This Makefile.am is in the public domain
2 SUBDIRS = .
3
4 plugindir = $(libdir)/gnunet
5
6 if MINGW
7   WINFLAGS = -no-undefined -Wl,--export-all-symbols
8 endif
9
10 AM_CPPFLAGS = \
11   $(GNUNET_CPPFLAGS) \
12   -I$(top_srcdir)/src/include \
13   -I$(top_srcdir)
14
15 lib_LTLIBRARIES = \
16  libgnunetmicrophone.la \
17  libgnunetspeaker.la \
18  libgnunetconversation.la
19
20 pkgcfgdir= $(pkgdatadir)/config.d/
21
22 libexecdir= $(pkglibdir)/libexec/
23
24 plugin_LTLIBRARIES = \
25   libgnunet_plugin_gnsrecord_conversation.la
26
27
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
36
37 libgnunetmicrophone_la_SOURCES = \
38   microphone.c
39 libgnunetmicrophone_la_LIBADD = \
40  $(top_builddir)/src/util/libgnunetutil.la
41 libgnunetmicrophone_la_LDFLAGS = \
42   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
43   -version-info 0:0:0
44
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
53
54 libgnunetconversation_la_SOURCES = \
55   conversation_api.c \
56   conversation_api_call.c \
57   conversation.h
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
64
65 libgnunetconversation_la_LDFLAGS = \
66   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
67   -version-info 0:0:0
68
69
70 bin_PROGRAMS = \
71  gnunet-conversation-test \
72  gnunet-conversation
73
74 libexec_PROGRAMS = \
75   gnunet-service-conversation
76
77 check_PROGRAMS = \
78  test_conversation_api \
79  test_conversation_api_reject \
80  test_conversation_api_twocalls
81
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)
86 else
87 if BUILD_GST_HELPERS
88 AUDIO_HELPER_RECD=gnunet-helper-audio-record
89 AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
90 AUDIO_TESTS=$(check_PROGRAMS)
91 endif
92 endif
93
94 libexec_PROGRAMS += \
95   $(AUDIO_HELPER_RECD) \
96   $(AUDIO_HELPER_PLAY)
97
98 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
99 if ENABLE_TEST_RUN
100 TESTS = $(AUDIO_TESTS)
101 endif
102
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 \
109   $(INTLLIBS)
110 gnunet_helper_audio_record_LDFLAGS = \
111   $(WINFLAGS)
112
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 \
118   $(INTLLIBS)
119 gnunet_helper_audio_playback_LDFLAGS = \
120   $(WINFLAGS)
121 else
122 if BUILD_GST_HELPERS
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 \
127   $(GST_LIBS) \
128   $(INTLLIBS)
129 gnunet_helper_audio_record_LDFLAGS = \
130   $(WINFLAGS) $(GST_LDFLAGS)
131 gnunet_helper_audio_record_CFLAGS = \
132  $(GST_CFLAGS)
133
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 \
138   $(GST_LIBS) \
139   $(INTLLIBS)
140 gnunet_helper_audio_playback_LDFLAGS = \
141   $(WINFLAGS) $(GST_LDFLAGS)
142 gnunet_helper_audio_playback_CFLAGS = \
143  $(GST_CFLAGS)
144 endif
145 endif
146
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 \
155   $(INTLLIBS)
156 gnunet_service_conversation_LDFLAGS = \
157   $(WINFLAGS)
158
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 \
170   $(INTLLIBS)
171 gnunet_conversation_LDFLAGS = \
172  $(WINFLAGS)
173
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  \
180   $(INTLLIBS)
181 gnunet_conversation_test_LDFLAGS = \
182  $(WINFLAGS)
183
184
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
198
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
212
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
227
228  pkgcfg_DATA = conversation.conf
229
230 EXTRA_DIST = test_conversation.conf