- add underlay api implementation
[oweals/gnunet.git] / src / conversation / Makefile.am
1 SUBDIRS = .
2
3 plugindir = $(libdir)/gnunet
4
5 AM_CPPFLAGS = \
6   $(GNUNET_CPPFLAGS) \
7   -I$(top_srcdir)/src/include \
8   -I$(top_srcdir)
9
10 lib_LTLIBRARIES = \
11  libgnunetmicrophone.la \
12  libgnunetspeaker.la \
13  libgnunetconversation.la
14
15 pkgcfgdir= $(prefix)/share/gnunet/config.d/
16
17 libexecdir= $(prefix)/lib/gnunet/libexec/
18
19 plugin_LTLIBRARIES = \
20   libgnunet_plugin_gnsrecord_conversation.la
21
22
23 libgnunet_plugin_gnsrecord_conversation_la_SOURCES = \
24   plugin_gnsrecord_conversation.c
25 libgnunet_plugin_gnsrecord_conversation_la_LIBADD = \
26   $(top_builddir)/src/util/libgnunetutil.la \
27   $(LTLIBINTL)
28 libgnunet_plugin_gnsrecord_conversation_la_LDFLAGS = \
29  $(GN_PLUGIN_LDFLAGS)
30
31
32 libgnunetmicrophone_la_SOURCES = \
33   microphone.c
34 libgnunetmicrophone_la_LIBADD = \
35  $(top_builddir)/src/util/libgnunetutil.la
36 libgnunetmicrophone_la_LDFLAGS = \
37   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
38   -version-info 0:0:0
39
40 libgnunetspeaker_la_SOURCES = \
41   speaker.c
42 libgnunetspeaker_la_LIBADD = \
43  $(top_builddir)/src/util/libgnunetutil.la
44 libgnunetspeaker_la_LDFLAGS = \
45   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
46   -version-info 0:0:0
47
48
49 libgnunetconversation_la_SOURCES = \
50   conversation_api.c \
51   conversation_api_call.c
52 libgnunetconversation_la_LIBADD = \
53   $(top_builddir)/src/gns/libgnunetgns.la \
54   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
55   $(top_builddir)/src/namestore/libgnunetnamestore.la \
56   $(top_builddir)/src/identity/libgnunetidentity.la \
57   $(top_builddir)/src/util/libgnunetutil.la
58
59 libgnunetconversation_la_LDFLAGS = \
60   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
61   -version-info 0:0:0
62
63
64 bin_PROGRAMS = \
65  gnunet-conversation-test \
66  gnunet-conversation
67
68 libexec_PROGRAMS = \
69   gnunet-service-conversation
70
71 if HAVE_PULSE
72 if HAVE_OPUS
73 libexec_PROGRAMS += \
74   gnunet-helper-audio-record \
75   gnunet-helper-audio-playback
76 endif
77 endif
78
79
80 check_PROGRAMS = \
81  test_conversation_api \
82  test_conversation_api_reject \
83  test_conversation_api_twocalls
84
85 if HAVE_PULSE
86 if HAVE_OPUS
87 TESTS = $(check_PROGRAMS)
88 endif
89 endif
90
91 gnunet_helper_audio_record_SOURCES = \
92   gnunet-helper-audio-record.c
93 gnunet_helper_audio_record_LDADD = \
94   $(top_builddir)/src/util/libgnunetutil.la \
95   -lpulse  -lopus\
96   $(INTLLIBS)
97 gnunet_helper_audio_record_LDFLAGS = \
98   $(GNUNET_LDFLAGS)  $(WINFLAGS)
99
100 gnunet_helper_audio_playback_SOURCES = \
101   gnunet-helper-audio-playback.c
102 gnunet_helper_audio_playback_LDADD = \
103   $(top_builddir)/src/util/libgnunetutil.la \
104   -lpulse -lopus\
105   $(INTLLIBS)
106 gnunet_helper_audio_playback_LDFLAGS = \
107   $(GNUNET_LDFLAGS)  $(WINFLAGS)
108
109 gnunet_service_conversation_SOURCES = \
110   gnunet-service-conversation.c
111 gnunet_service_conversation_LDADD = \
112   libgnunetconversation.la \
113   libgnunetspeaker.la \
114   libgnunetmicrophone.la \
115   $(top_builddir)/src/mesh/libgnunetmesh.la \
116   $(top_builddir)/src/util/libgnunetutil.la \
117   $(INTLLIBS)
118 gnunet_service_conversation_LDFLAGS = \
119   $(GNUNET_LDFLAGS)  $(WINFLAGS)
120
121 gnunet_conversation_SOURCES = \
122   gnunet-conversation.c
123 gnunet_conversation_LDADD = \
124   libgnunetmicrophone.la \
125   libgnunetspeaker.la \
126   libgnunetconversation.la \
127   $(top_builddir)/src/gns/libgnunetgns.la \
128   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
129   $(top_builddir)/src/namestore/libgnunetnamestore.la \
130   $(top_builddir)/src/identity/libgnunetidentity.la \
131   $(top_builddir)/src/util/libgnunetutil.la \
132   $(INTLLIBS)
133 gnunet_conversation_LDFLAGS = \
134  $(GNUNET_LDFLAGS) $(WINFLAGS)
135
136 gnunet_conversation_test_SOURCES = \
137   gnunet-conversation-test.c
138 gnunet_conversation_test_LDADD = \
139   libgnunetmicrophone.la \
140   libgnunetspeaker.la \
141   $(top_builddir)/src/util/libgnunetutil.la  \
142   $(INTLLIBS)
143 gnunet_conversation_test_LDFLAGS = \
144  $(GNUNET_LDFLAGS) $(WINFLAGS)
145
146
147 test_conversation_api_SOURCES = \
148  test_conversation_api.c
149 test_conversation_api_LDADD = \
150   libgnunetconversation.la \
151   libgnunetspeaker.la \
152   libgnunetmicrophone.la \
153   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
154   $(top_builddir)/src/namestore/libgnunetnamestore.la \
155   $(top_builddir)/src/identity/libgnunetidentity.la \
156   $(top_builddir)/src/testing/libgnunettesting.la \
157   $(top_builddir)/src/util/libgnunetutil.la
158 test_conversation_api_LDFLAGS = \
159  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
160
161 test_conversation_api_twocalls_SOURCES = \
162  test_conversation_api_twocalls.c
163 test_conversation_api_twocalls_LDADD = \
164   libgnunetconversation.la \
165   libgnunetspeaker.la \
166   libgnunetmicrophone.la \
167   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
168   $(top_builddir)/src/namestore/libgnunetnamestore.la \
169   $(top_builddir)/src/identity/libgnunetidentity.la \
170   $(top_builddir)/src/testing/libgnunettesting.la \
171   $(top_builddir)/src/util/libgnunetutil.la
172 test_conversation_api_twocalls_LDFLAGS = \
173  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
174
175 test_conversation_api_reject_SOURCES = \
176  test_conversation_api_reject.c
177 test_conversation_api_reject_LDADD = \
178   libgnunetconversation.la \
179   libgnunetspeaker.la \
180   libgnunetmicrophone.la \
181   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
182   $(top_builddir)/src/namestore/libgnunetnamestore.la \
183   $(top_builddir)/src/identity/libgnunetidentity.la \
184   $(top_builddir)/src/testing/libgnunettesting.la \
185   $(top_builddir)/src/util/libgnunetutil.la
186 test_conversation_api_reject_LDFLAGS = \
187  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
188
189
190  pkgcfg_DATA = conversation.conf
191
192 EXTRA_DIST = test_conversation.conf