-fix build system issues
[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   conversation.h
53 libgnunetconversation_la_LIBADD = \
54   $(top_builddir)/src/gns/libgnunetgns.la \
55   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
56   $(top_builddir)/src/namestore/libgnunetnamestore.la \
57   $(top_builddir)/src/identity/libgnunetidentity.la \
58   $(top_builddir)/src/util/libgnunetutil.la
59
60 libgnunetconversation_la_LDFLAGS = \
61   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
62   -version-info 0:0:0
63
64
65 bin_PROGRAMS = \
66  gnunet-conversation-test \
67  gnunet-conversation
68
69 libexec_PROGRAMS = \
70   gnunet-service-conversation
71
72 if HAVE_PULSE
73 if HAVE_OPUS
74 libexec_PROGRAMS += \
75   gnunet-helper-audio-record \
76   gnunet-helper-audio-playback
77 endif
78 endif
79
80
81 check_PROGRAMS = \
82  test_conversation_api \
83  test_conversation_api_reject \
84  test_conversation_api_twocalls
85
86 if HAVE_PULSE
87 if HAVE_OPUS
88 TESTS = $(check_PROGRAMS)
89 endif
90 endif
91
92 gnunet_helper_audio_record_SOURCES = \
93   gnunet-helper-audio-record.c
94 gnunet_helper_audio_record_LDADD = \
95   $(top_builddir)/src/util/libgnunetutil.la \
96   -lpulse  -lopus\
97   $(INTLLIBS)
98 gnunet_helper_audio_record_LDFLAGS = \
99   $(GNUNET_LDFLAGS)  $(WINFLAGS)
100
101 gnunet_helper_audio_playback_SOURCES = \
102   gnunet-helper-audio-playback.c
103 gnunet_helper_audio_playback_LDADD = \
104   $(top_builddir)/src/util/libgnunetutil.la \
105   -lpulse -lopus\
106   $(INTLLIBS)
107 gnunet_helper_audio_playback_LDFLAGS = \
108   $(GNUNET_LDFLAGS)  $(WINFLAGS)
109
110 gnunet_service_conversation_SOURCES = \
111   gnunet-service-conversation.c
112 gnunet_service_conversation_LDADD = \
113   libgnunetconversation.la \
114   libgnunetspeaker.la \
115   libgnunetmicrophone.la \
116   $(top_builddir)/src/mesh/libgnunetmesh.la \
117   $(top_builddir)/src/util/libgnunetutil.la \
118   $(INTLLIBS)
119 gnunet_service_conversation_LDFLAGS = \
120   $(GNUNET_LDFLAGS)  $(WINFLAGS)
121
122 gnunet_conversation_SOURCES = \
123   gnunet-conversation.c
124 gnunet_conversation_LDADD = \
125   libgnunetmicrophone.la \
126   libgnunetspeaker.la \
127   libgnunetconversation.la \
128   $(top_builddir)/src/gns/libgnunetgns.la \
129   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
130   $(top_builddir)/src/namestore/libgnunetnamestore.la \
131   $(top_builddir)/src/identity/libgnunetidentity.la \
132   $(top_builddir)/src/util/libgnunetutil.la \
133   $(INTLLIBS)
134 gnunet_conversation_LDFLAGS = \
135  $(GNUNET_LDFLAGS) $(WINFLAGS)
136
137 gnunet_conversation_test_SOURCES = \
138   gnunet-conversation-test.c
139 gnunet_conversation_test_LDADD = \
140   libgnunetmicrophone.la \
141   libgnunetspeaker.la \
142   $(top_builddir)/src/util/libgnunetutil.la  \
143   $(INTLLIBS)
144 gnunet_conversation_test_LDFLAGS = \
145  $(GNUNET_LDFLAGS) $(WINFLAGS)
146
147
148 test_conversation_api_SOURCES = \
149  test_conversation_api.c
150 test_conversation_api_LDADD = \
151   libgnunetconversation.la \
152   libgnunetspeaker.la \
153   libgnunetmicrophone.la \
154   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
155   $(top_builddir)/src/namestore/libgnunetnamestore.la \
156   $(top_builddir)/src/identity/libgnunetidentity.la \
157   $(top_builddir)/src/testing/libgnunettesting.la \
158   $(top_builddir)/src/util/libgnunetutil.la
159 test_conversation_api_LDFLAGS = \
160  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
161
162 test_conversation_api_twocalls_SOURCES = \
163  test_conversation_api_twocalls.c
164 test_conversation_api_twocalls_LDADD = \
165   libgnunetconversation.la \
166   libgnunetspeaker.la \
167   libgnunetmicrophone.la \
168   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
169   $(top_builddir)/src/namestore/libgnunetnamestore.la \
170   $(top_builddir)/src/identity/libgnunetidentity.la \
171   $(top_builddir)/src/testing/libgnunettesting.la \
172   $(top_builddir)/src/util/libgnunetutil.la
173 test_conversation_api_twocalls_LDFLAGS = \
174  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
175
176 test_conversation_api_reject_SOURCES = \
177  test_conversation_api_reject.c
178 test_conversation_api_reject_LDADD = \
179   libgnunetconversation.la \
180   libgnunetspeaker.la \
181   libgnunetmicrophone.la \
182   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
183   $(top_builddir)/src/namestore/libgnunetnamestore.la \
184   $(top_builddir)/src/identity/libgnunetidentity.la \
185   $(top_builddir)/src/testing/libgnunettesting.la \
186   $(top_builddir)/src/util/libgnunetutil.la
187 test_conversation_api_reject_LDFLAGS = \
188  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
189
190
191  pkgcfg_DATA = conversation.conf
192
193 EXTRA_DIST = test_conversation.conf