-bringing copyright tags up to FSF standard
[oweals/gnunet.git] / src / conversation / Makefile.am
1 SUBDIRS = .
2
3 plugindir = $(libdir)/gnunet
4
5 if MINGW
6   WINFLAGS = -no-undefined -Wl,--export-all-symbols
7 endif
8
9 AM_CPPFLAGS = \
10   $(GNUNET_CPPFLAGS) \
11   -I$(top_srcdir)/src/include \
12   -I$(top_srcdir)
13
14 lib_LTLIBRARIES = \
15  libgnunetmicrophone.la \
16  libgnunetspeaker.la \
17  libgnunetconversation.la
18
19 pkgcfgdir= $(pkgdatadir)/config.d/
20
21 libexecdir= $(pkglibdir)/libexec/
22
23 plugin_LTLIBRARIES = \
24   libgnunet_plugin_gnsrecord_conversation.la
25
26
27 libgnunet_plugin_gnsrecord_conversation_la_SOURCES = \
28   plugin_gnsrecord_conversation.c
29 libgnunet_plugin_gnsrecord_conversation_la_LIBADD = \
30   $(top_builddir)/src/util/libgnunetutil.la \
31   $(LTLIBINTL)
32 libgnunet_plugin_gnsrecord_conversation_la_LDFLAGS = \
33  $(GN_PLUGIN_LDFLAGS)
34
35
36 libgnunetmicrophone_la_SOURCES = \
37   microphone.c
38 libgnunetmicrophone_la_LIBADD = \
39  $(top_builddir)/src/util/libgnunetutil.la
40 libgnunetmicrophone_la_LDFLAGS = \
41   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
42   -version-info 0:0:0
43
44 libgnunetspeaker_la_SOURCES = \
45   speaker.c
46 libgnunetspeaker_la_LIBADD = \
47  $(top_builddir)/src/util/libgnunetutil.la
48 libgnunetspeaker_la_LDFLAGS = \
49   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
50   -version-info 0:0:0
51
52
53 libgnunetconversation_la_SOURCES = \
54   conversation_api.c \
55   conversation_api_call.c \
56   conversation.h
57 libgnunetconversation_la_LIBADD = \
58   $(top_builddir)/src/gns/libgnunetgns.la \
59   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
60   $(top_builddir)/src/namestore/libgnunetnamestore.la \
61   $(top_builddir)/src/identity/libgnunetidentity.la \
62   $(top_builddir)/src/util/libgnunetutil.la
63
64 libgnunetconversation_la_LDFLAGS = \
65   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
66   -version-info 0:0:0
67
68
69 bin_PROGRAMS = \
70  gnunet-conversation-test \
71  gnunet-conversation
72
73 libexec_PROGRAMS = \
74   gnunet-service-conversation
75
76 check_PROGRAMS = \
77  test_conversation_api \
78  test_conversation_api_reject \
79  test_conversation_api_twocalls
80
81 if BUILD_PULSE_HELPERS
82 AUDIO_HELPER_RECD=gnunet-helper-audio-record
83 AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
84 AUDIO_TESTS=$(check_PROGRAMS)
85 else
86 if BUILD_GST_HELPERS
87 AUDIO_HELPER_RECD=gnunet-helper-audio-record
88 AUDIO_HELPER_PLAY=gnunet-helper-audio-playback
89 AUDIO_TESTS=$(check_PROGRAMS)
90 endif
91 endif
92
93 libexec_PROGRAMS += \
94   $(AUDIO_HELPER_RECD) \
95   $(AUDIO_HELPER_PLAY)
96
97 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
98 if ENABLE_TEST_RUN
99 TESTS = $(AUDIO_TESTS)
100 endif
101
102 if BUILD_PULSE_HELPERS
103 gnunet_helper_audio_record_SOURCES = \
104   gnunet-helper-audio-record.c
105 gnunet_helper_audio_record_LDADD = \
106   $(top_builddir)/src/util/libgnunetutil.la \
107   -lpulse  -lopus -logg \
108   $(INTLLIBS)
109 gnunet_helper_audio_record_LDFLAGS = \
110   $(WINFLAGS)
111
112 gnunet_helper_audio_playback_SOURCES = \
113   gnunet-helper-audio-playback.c
114 gnunet_helper_audio_playback_LDADD = \
115   $(top_builddir)/src/util/libgnunetutil.la \
116   -lpulse -lopus -logg \
117   $(INTLLIBS)
118 gnunet_helper_audio_playback_LDFLAGS = \
119   $(WINFLAGS)
120 else
121 if BUILD_GST_HELPERS
122 gnunet_helper_audio_record_SOURCES = \
123   gnunet-helper-audio-record-gst.c
124 gnunet_helper_audio_record_LDADD = \
125   $(top_builddir)/src/util/libgnunetutil.la \
126   $(GST_LIBS) \
127   $(INTLLIBS)
128 gnunet_helper_audio_record_LDFLAGS = \
129   $(WINFLAGS) $(GST_LDFLAGS)
130 gnunet_helper_audio_record_CFLAGS = \
131  $(GST_CFLAGS)
132
133 gnunet_helper_audio_playback_SOURCES = \
134   gnunet-helper-audio-playback-gst.c
135 gnunet_helper_audio_playback_LDADD = \
136   $(top_builddir)/src/util/libgnunetutil.la \
137   $(GST_LIBS) \
138   $(INTLLIBS)
139 gnunet_helper_audio_playback_LDFLAGS = \
140   $(WINFLAGS) $(GST_LDFLAGS)
141 gnunet_helper_audio_playback_CFLAGS = \
142  $(GST_CFLAGS)
143 endif
144 endif
145
146 gnunet_service_conversation_SOURCES = \
147   gnunet-service-conversation.c
148 gnunet_service_conversation_LDADD = \
149   libgnunetconversation.la \
150   libgnunetspeaker.la \
151   libgnunetmicrophone.la \
152   $(top_builddir)/src/cadet/libgnunetcadet.la \
153   $(top_builddir)/src/util/libgnunetutil.la \
154   $(INTLLIBS)
155 gnunet_service_conversation_LDFLAGS = \
156   $(WINFLAGS)
157
158 gnunet_conversation_SOURCES = \
159   gnunet-conversation.c
160 gnunet_conversation_LDADD = \
161   libgnunetmicrophone.la \
162   libgnunetspeaker.la \
163   libgnunetconversation.la \
164   $(top_builddir)/src/gns/libgnunetgns.la \
165   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
166   $(top_builddir)/src/namestore/libgnunetnamestore.la \
167   $(top_builddir)/src/identity/libgnunetidentity.la \
168   $(top_builddir)/src/util/libgnunetutil.la \
169   $(INTLLIBS)
170 gnunet_conversation_LDFLAGS = \
171  $(WINFLAGS)
172
173 gnunet_conversation_test_SOURCES = \
174   gnunet-conversation-test.c
175 gnunet_conversation_test_LDADD = \
176   libgnunetmicrophone.la \
177   libgnunetspeaker.la \
178   $(top_builddir)/src/util/libgnunetutil.la  \
179   $(INTLLIBS)
180 gnunet_conversation_test_LDFLAGS = \
181  $(WINFLAGS)
182
183
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
198 test_conversation_api_twocalls_SOURCES = \
199  test_conversation_api_twocalls.c
200 test_conversation_api_twocalls_LDADD = \
201   libgnunetconversation.la \
202   libgnunetspeaker.la \
203   libgnunetmicrophone.la \
204   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
205   $(top_builddir)/src/namestore/libgnunetnamestore.la \
206   $(top_builddir)/src/identity/libgnunetidentity.la \
207   $(top_builddir)/src/testing/libgnunettesting.la \
208   $(top_builddir)/src/util/libgnunetutil.la
209 test_conversation_api_twocalls_LDFLAGS = \
210  $(WINFLAGS) -export-dynamic
211
212 test_conversation_api_reject_SOURCES = \
213  test_conversation_api_reject.c
214 test_conversation_api_reject_LDADD = \
215   libgnunetconversation.la \
216   libgnunetspeaker.la \
217   libgnunetmicrophone.la \
218   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
219   $(top_builddir)/src/namestore/libgnunetnamestore.la \
220   $(top_builddir)/src/identity/libgnunetidentity.la \
221   $(top_builddir)/src/testing/libgnunettesting.la \
222   $(top_builddir)/src/util/libgnunetutil.la
223 test_conversation_api_reject_LDFLAGS = \
224  $(WINFLAGS) -export-dynamic
225
226
227  pkgcfg_DATA = conversation.conf
228
229 EXTRA_DIST = test_conversation.conf