There's no GNUNET_LDFLAGS, there's only GN_LIB_FLAGS
[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= $(prefix)/share/gnunet/config.d/
20
21 libexecdir= $(prefix)/lib/gnunet/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 TESTS = $(AUDIO_TESTS)
99
100 if BUILD_PULSE_HELPERS
101 gnunet_helper_audio_record_SOURCES = \
102   gnunet-helper-audio-record.c
103 gnunet_helper_audio_record_LDADD = \
104   $(top_builddir)/src/util/libgnunetutil.la \
105   -lpulse  -lopus -logg \
106   $(INTLLIBS)
107 gnunet_helper_audio_record_LDFLAGS = \
108   $(WINFLAGS)
109
110 gnunet_helper_audio_playback_SOURCES = \
111   gnunet-helper-audio-playback.c
112 gnunet_helper_audio_playback_LDADD = \
113   $(top_builddir)/src/util/libgnunetutil.la \
114   -lpulse -lopus -logg \
115   $(INTLLIBS)
116 gnunet_helper_audio_playback_LDFLAGS = \
117   $(WINFLAGS)
118 else
119 if BUILD_GST_HELPERS
120 gnunet_helper_audio_record_SOURCES = \
121   gnunet-helper-audio-record-gst.c
122 gnunet_helper_audio_record_LDADD = \
123   $(top_builddir)/src/util/libgnunetutil.la \
124   $(GST_LIBS) \
125   $(INTLLIBS)
126 gnunet_helper_audio_record_LDFLAGS = \
127   $(WINFLAGS) $(GST_LDFLAGS)
128 gnunet_helper_audio_record_CFLAGS = \
129  $(GST_CFLAGS)
130
131 gnunet_helper_audio_playback_SOURCES = \
132   gnunet-helper-audio-playback-gst.c
133 gnunet_helper_audio_playback_LDADD = \
134   $(top_builddir)/src/util/libgnunetutil.la \
135   $(GST_LIBS) \
136   $(INTLLIBS)
137 gnunet_helper_audio_playback_LDFLAGS = \
138   $(WINFLAGS) $(GST_LDFLAGS)
139 gnunet_helper_audio_playback_CFLAGS = \
140  $(GST_CFLAGS)
141 endif
142 endif
143
144 gnunet_service_conversation_SOURCES = \
145   gnunet-service-conversation.c
146 gnunet_service_conversation_LDADD = \
147   libgnunetconversation.la \
148   libgnunetspeaker.la \
149   libgnunetmicrophone.la \
150   $(top_builddir)/src/cadet/libgnunetcadet.la \
151   $(top_builddir)/src/util/libgnunetutil.la \
152   $(INTLLIBS)
153 gnunet_service_conversation_LDFLAGS = \
154   $(WINFLAGS)
155
156 gnunet_conversation_SOURCES = \
157   gnunet-conversation.c
158 gnunet_conversation_LDADD = \
159   libgnunetmicrophone.la \
160   libgnunetspeaker.la \
161   libgnunetconversation.la \
162   $(top_builddir)/src/gns/libgnunetgns.la \
163   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
164   $(top_builddir)/src/namestore/libgnunetnamestore.la \
165   $(top_builddir)/src/identity/libgnunetidentity.la \
166   $(top_builddir)/src/util/libgnunetutil.la \
167   $(INTLLIBS)
168 gnunet_conversation_LDFLAGS = \
169  $(WINFLAGS)
170
171 gnunet_conversation_test_SOURCES = \
172   gnunet-conversation-test.c
173 gnunet_conversation_test_LDADD = \
174   libgnunetmicrophone.la \
175   libgnunetspeaker.la \
176   $(top_builddir)/src/util/libgnunetutil.la  \
177   $(INTLLIBS)
178 gnunet_conversation_test_LDFLAGS = \
179  $(WINFLAGS)
180
181
182 test_conversation_api_SOURCES = \
183  test_conversation_api.c
184 test_conversation_api_LDADD = \
185   libgnunetconversation.la \
186   libgnunetspeaker.la \
187   libgnunetmicrophone.la \
188   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
189   $(top_builddir)/src/namestore/libgnunetnamestore.la \
190   $(top_builddir)/src/identity/libgnunetidentity.la \
191   $(top_builddir)/src/testing/libgnunettesting.la \
192   $(top_builddir)/src/util/libgnunetutil.la
193 test_conversation_api_LDFLAGS = \
194  $(WINFLAGS) -export-dynamic
195
196 test_conversation_api_twocalls_SOURCES = \
197  test_conversation_api_twocalls.c
198 test_conversation_api_twocalls_LDADD = \
199   libgnunetconversation.la \
200   libgnunetspeaker.la \
201   libgnunetmicrophone.la \
202   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
203   $(top_builddir)/src/namestore/libgnunetnamestore.la \
204   $(top_builddir)/src/identity/libgnunetidentity.la \
205   $(top_builddir)/src/testing/libgnunettesting.la \
206   $(top_builddir)/src/util/libgnunetutil.la
207 test_conversation_api_twocalls_LDFLAGS = \
208  $(WINFLAGS) -export-dynamic
209
210 test_conversation_api_reject_SOURCES = \
211  test_conversation_api_reject.c
212 test_conversation_api_reject_LDADD = \
213   libgnunetconversation.la \
214   libgnunetspeaker.la \
215   libgnunetmicrophone.la \
216   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
217   $(top_builddir)/src/namestore/libgnunetnamestore.la \
218   $(top_builddir)/src/identity/libgnunetidentity.la \
219   $(top_builddir)/src/testing/libgnunettesting.la \
220   $(top_builddir)/src/util/libgnunetutil.la
221 test_conversation_api_reject_LDFLAGS = \
222  $(WINFLAGS) -export-dynamic
223
224
225  pkgcfg_DATA = conversation.conf
226
227 EXTRA_DIST = test_conversation.conf