-test two incoming calls at the same time, plus suspend/resume
[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_twocalls
83
84 if HAVE_PULSE
85 if HAVE_OPUS
86 TESTS = $(check_PROGRAMS)
87 endif
88 endif
89
90 gnunet_helper_audio_record_SOURCES = \
91   gnunet-helper-audio-record.c
92 gnunet_helper_audio_record_LDADD = \
93   $(top_builddir)/src/util/libgnunetutil.la \
94   -lpulse  -lopus\
95   $(INTLLIBS)
96 gnunet_helper_audio_record_LDFLAGS = \
97   $(GNUNET_LDFLAGS)  $(WINFLAGS)
98
99 gnunet_helper_audio_playback_SOURCES = \
100   gnunet-helper-audio-playback.c
101 gnunet_helper_audio_playback_LDADD = \
102   $(top_builddir)/src/util/libgnunetutil.la \
103   -lpulse -lopus\
104   $(INTLLIBS)
105 gnunet_helper_audio_playback_LDFLAGS = \
106   $(GNUNET_LDFLAGS)  $(WINFLAGS)
107
108 gnunet_service_conversation_SOURCES = \
109   gnunet-service-conversation.c
110 gnunet_service_conversation_LDADD = \
111   libgnunetconversation.la \
112   libgnunetspeaker.la \
113   libgnunetmicrophone.la \
114   $(top_builddir)/src/mesh/libgnunetmesh.la \
115   $(top_builddir)/src/util/libgnunetutil.la \
116   $(INTLLIBS)
117 gnunet_service_conversation_LDFLAGS = \
118   $(GNUNET_LDFLAGS)  $(WINFLAGS)
119
120 gnunet_conversation_SOURCES = \
121   gnunet-conversation.c
122 gnunet_conversation_LDADD = \
123   libgnunetmicrophone.la \
124   libgnunetspeaker.la \
125   libgnunetconversation.la \
126   $(top_builddir)/src/gns/libgnunetgns.la \
127   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
128   $(top_builddir)/src/namestore/libgnunetnamestore.la \
129   $(top_builddir)/src/identity/libgnunetidentity.la \
130   $(top_builddir)/src/util/libgnunetutil.la \
131   $(INTLLIBS)
132 gnunet_conversation_LDFLAGS = \
133  $(GNUNET_LDFLAGS) $(WINFLAGS)
134
135 gnunet_conversation_test_SOURCES = \
136   gnunet-conversation-test.c
137 gnunet_conversation_test_LDADD = \
138   libgnunetmicrophone.la \
139   libgnunetspeaker.la \
140   $(top_builddir)/src/util/libgnunetutil.la  \
141   $(INTLLIBS)
142 gnunet_conversation_test_LDFLAGS = \
143  $(GNUNET_LDFLAGS) $(WINFLAGS)
144
145
146 test_conversation_api_SOURCES = \
147  test_conversation_api.c
148 test_conversation_api_LDADD = \
149   libgnunetconversation.la \
150   libgnunetspeaker.la \
151   libgnunetmicrophone.la \
152   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
153   $(top_builddir)/src/namestore/libgnunetnamestore.la \
154   $(top_builddir)/src/identity/libgnunetidentity.la \
155   $(top_builddir)/src/testing/libgnunettesting.la \
156   $(top_builddir)/src/util/libgnunetutil.la
157 test_conversation_api_LDFLAGS = \
158  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
159
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
176  pkgcfg_DATA = conversation.conf
177
178 EXTRA_DIST = test_conversation.conf