3 # This file is part of polypaudio.
5 # polypaudio is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # polypaudio is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with polypaudio; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 AM_CFLAGS=-ansi -D_GNU_SOURCE -DDLSEARCHDIR=\"$(pkglibdir)\" -I$(srcdir)/..
24 polypincludedir=$(includedir)/polyp
26 EXTRA_DIST = polypaudio.pa depmod.py
27 bin_PROGRAMS = polypaudio pacat pactl
28 noinst_PROGRAMS = pacat-simple parec-simple glib-test
30 polypinclude_HEADERS=polyplib.h \
40 pkglib_LTLIBRARIES=libiochannel.la \
55 libprotocol-simple.la \
56 libprotocol-esound.la \
57 libprotocol-native.la \
59 module-cli-protocol-tcp.la \
60 module-cli-protocol-unix.la \
63 module-alsa-source.la \
66 module-simple-protocol-tcp.la \
67 module-simple-protocol-unix.la \
68 module-esound-protocol-tcp.la \
69 module-esound-protocol-unix.la \
70 module-native-protocol-tcp.la \
71 module-native-protocol-unix.la \
74 lib_LTLIBRARIES=libpolyp.la \
77 libpolyp-mainloop.la \
78 libpolyp-mainloop-glib.la
80 polypaudio_SOURCES = idxset.c idxset.h \
84 mainloop.c mainloop.h \
85 memblock.c memblock.h \
87 sample-util.c sample-util.h \
88 memblockq.c memblockq.h \
91 source-output.c source-output.h \
92 sink-input.c sink-input.h \
96 mainloop-signal.c mainloop-signal.h \
97 mainloop-api.c mainloop-api.h \
100 namereg.c namereg.h \
102 resampler.c resampler.h \
104 memchunk.c memchunk.h \
105 sconv-s16le.c sconv-s16le.h \
106 sconv-s16be.c sconv-s16be.h \
108 modargs.c modargs.h \
109 cmdline.c cmdline.h \
110 cli-command.c cli-command.h \
111 clitext.c clitext.h \
112 tokenizer.c tokenizer.h \
113 dynarray.c dynarray.h \
115 sound-file.c sound-file.h \
116 play-memchunk.c play-memchunk.h \
117 autoload.c autoload.h \
120 polypaudio_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSNDFILE_CFLAGS)
121 polypaudio_INCLUDES = $(INCLTDL)
122 polypaudio_LDADD = $(AM_LDADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS)
123 polypaudio_LDFLAGS=-export-dynamic
125 libprotocol_simple_la_SOURCES = protocol-simple.c protocol-simple.h
126 libprotocol_simple_la_LDFLAGS = -avoid-version
127 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la
129 libsocket_server_la_SOURCES = socket-server.c socket-server.h
130 libsocket_server_la_LDFLAGS = -avoid-version
131 libsocket_server_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la
133 libsocket_client_la_SOURCES = socket-client.c socket-client.h
134 libsocket_client_la_LDFLAGS = -avoid-version
135 libsocket_client_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la
137 libpstream_la_SOURCES = pstream.c pstream.h
138 libpstream_la_LDFLAGS = -avoid-version
139 libpstream_la_LIBADD = $(AM_LIBADD) libpacket.la libiochannel.la
141 libpstream_util_la_SOURCES = pstream-util.c pstream-util.h
142 libpstream_util_la_LDFLAGS = -avoid-version
143 libpstream_util_la_LIBADD = $(AM_LIBADD) libpacket.la libpstream.la libtagstruct.la
145 libpdispatch_la_SOURCES = pdispatch.c pdispatch.h
146 libpdispatch_la_LDFLAGS = -avoid-version
147 libpdispatch_la_LIBADD = $(AM_LIBADD) libtagstruct.la
149 libiochannel_la_SOURCES = iochannel.c iochannel.h
150 libiochannel_la_LDFLAGS = -avoid-version
151 libiochannel_la_LIBADD = $(AM_LIBADD) libsocket-util.la
153 libpacket_la_SOURCES = packet.c packet.h
154 libpacket_la_LDFLAGS = -avoid-version
156 liboss_util_la_SOURCES = oss-util.c oss-util.h
157 liboss_util_la_LDFLAGS = -avoid-version
159 libalsa_util_la_SOURCES = alsa-util.c alsa-util.h
160 libalsa_util_la_LDFLAGS = -avoid-version
161 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS)
162 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
164 libioline_la_SOURCES = ioline.c ioline.h
165 libioline_la_LDFLAGS = -avoid-version
166 libioline_la_LIBADD = $(AM_LIBADD) libiochannel.la
168 libcli_la_SOURCES = cli.c cli.h
169 libcli_la_LDFLAGS = -avoid-version
170 libcli_la_LIBADD = $(AM_LIBADD) libiochannel.la libioline.la
172 libprotocol_cli_la_SOURCES = protocol-cli.c protocol-cli.h
173 libprotocol_cli_la_LDFLAGS = -avoid-version
174 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libcli.la
176 libprotocol_native_la_SOURCES = protocol-native.c protocol-native.h native-common.h
177 libprotocol_native_la_LDFLAGS = -avoid-version
178 libprotocol_native_la_LIBADD = $(AM_LIBADD) libsocket-server.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la
180 libtagstruct_la_SOURCES = tagstruct.c tagstruct.h
181 libtagstruct_la_LDFLAGS = -avoid-version
183 libprotocol_esound_la_SOURCES = protocol-esound.c protocol-esound.h esound.h
184 libprotocol_esound_la_LDFLAGS = -avoid-version
185 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libauthkey.la
187 libauthkey_la_SOURCES = authkey.c authkey.h
188 libauthkey_la_LDFLAGS = -avoid-version
190 libsocket_util_la_SOURCES = socket-util.c socket-util.h
191 libsocket_util_la_LDFLAGS = -avoid-version
193 module_simple_protocol_tcp_la_SOURCES = module-protocol-stub.c
194 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
195 module_simple_protocol_tcp_la_LDFLAGS = -module -avoid-version
196 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la
198 module_simple_protocol_unix_la_SOURCES = module-protocol-stub.c
199 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
200 module_simple_protocol_unix_la_LDFLAGS = -module -avoid-version
201 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la libsocket-util.la
203 module_cli_protocol_tcp_la_SOURCES = module-protocol-stub.c
204 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
205 module_cli_protocol_tcp_la_LDFLAGS = -module -avoid-version
206 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la
208 module_cli_protocol_unix_la_SOURCES = module-protocol-stub.c
209 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
210 module_cli_protocol_unix_la_LDFLAGS = -module -avoid-version
211 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la libsocket-util.la
213 module_native_protocol_tcp_la_SOURCES = module-protocol-stub.c
214 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
215 module_native_protocol_tcp_la_LDFLAGS = -module -avoid-version
216 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la
218 module_native_protocol_unix_la_SOURCES = module-protocol-stub.c
219 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
220 module_native_protocol_unix_la_LDFLAGS = -module -avoid-version
221 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la libsocket-util.la
223 module_esound_protocol_tcp_la_SOURCES = module-protocol-stub.c
224 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
225 module_esound_protocol_tcp_la_LDFLAGS = -module -avoid-version
226 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la
228 module_esound_protocol_unix_la_SOURCES = module-protocol-stub.c
229 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
230 module_esound_protocol_unix_la_LDFLAGS = -module -avoid-version
231 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la libsocket-util.la
233 module_pipe_sink_la_SOURCES = module-pipe-sink.c
234 module_pipe_sink_la_LDFLAGS = -module -avoid-version
235 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libiochannel.la
237 module_alsa_sink_la_SOURCES = module-alsa-sink.c
238 module_alsa_sink_la_LDFLAGS = -module -avoid-version
239 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
240 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
242 module_alsa_source_la_SOURCES = module-alsa-source.c
243 module_alsa_source_la_LDFLAGS = -module -avoid-version
244 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
245 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
247 module_oss_la_SOURCES = module-oss.c
248 module_oss_la_LDFLAGS = -module -avoid-version
249 module_oss_la_LIBADD = $(AM_LIBADD) libiochannel.la liboss-util.la
251 module_oss_mmap_la_SOURCES = module-oss-mmap.c
252 module_oss_mmap_la_LDFLAGS = -module -avoid-version
253 module_oss_mmap_la_LIBADD = $(AM_LIBADD) liboss-util.la
255 module_cli_la_SOURCES = module-cli.c
256 module_cli_la_LDFLAGS = -module -avoid-version
257 module_cli_la_LIBADD = $(AM_LIBADD) libcli.la libiochannel.la
259 module_x11_bell_la_SOURCES = module-x11-bell.c
260 module_x11_bell_la_LDFLAGS = -module -avoid-version
261 module_x11_bell_la_LIBADD = $(AM_LIBADD) -lX11 -L/usr/X11R6/lib
263 libpolyp_la_SOURCES = polyplib.c polyplib.h \
265 tagstruct.c tagstruct.h \
266 iochannel.c iochannel.h \
267 pstream.c pstream.h \
268 pstream-util.c pstream-util.h \
269 pdispatch.c pdispatch.h \
270 mainloop-api.c mainloop-api.h \
273 memblock.c memblock.h \
274 socket-client.c socket-client.h \
277 dynarray.c dynarray.h \
278 memchunk.c memchunk.h \
279 authkey.c authkey.h \
280 socket-util.c socket-util.h \
284 libpolyp_la_CFLAGS = $(AM_CFLAGS)
286 libpolyp_mainloop_la_SOURCES = mainloop-api.h mainloop-api.c \
287 mainloop.c mainloop.h \
288 mainloop-signal.c mainloop-signal.h
289 libpolyp_mainloop_la_CFLAGS = $(AM_CFLAGS)
291 libpolyp_error_la_SOURCES = polyplib-error.c polyplib-error.h
292 libpolyp_error_la_CFLAGS = $(AM_CFLAGS)
294 libpolyp_simple_la_SOURCES = polyplib-simple.c polyplib-simple.h
295 libpolyp_simple_la_CFLAGS = $(AM_CFLAGS)
296 libpolyp_simple_la_LIBADD = $(AM_LIBADD) libpolyp.la libpolyp-mainloop.la
298 pacat_SOURCES = pacat.c
299 pacat_LDADD = $(AM_LDADD) libpolyp.la libpolyp-error.la libpolyp-mainloop.la
300 pacat_CFLAGS = $(AM_CFLAGS)
302 pactl_SOURCES = pactl.c
303 pactl_LDADD = $(AM_LDADD) libpolyp.la libpolyp-error.la libpolyp-mainloop.la $(LIBSNDFILE_LIBS)
304 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSDNFILE_CFLAGS)
306 pacat_simple_SOURCES = pacat-simple.c
307 pacat_simple_LDADD = $(AM_LDADD) libpolyp-simple.la libpolyp-error.la
308 pacat_simple_CFLAGS = $(AM_CFLAGS)
310 parec_simple_SOURCES = parec-simple.c
311 parec_simple_LDADD = $(AM_LDADD) libpolyp-simple.la libpolyp-error.la
312 parec_simple_CFLAGS = $(AM_CFLAGS)
314 libpolyp_mainloop_glib_la_SOURCES = glib-mainloop.h glib-mainloop.c
315 libpolyp_mainloop_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
316 libpolyp_mainloop_glib_la_LIBADD = $(AM_LIBADD) libpolyp-mainloop.la $(GLIB20_LIBS)
318 glib_test_SOURCES = glib-test.c
319 glib_test_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
320 glib_test_LDADD = $(AM_LDADD) $(GLIB20_LIBS) libpolyp.la libpolyp-mainloop-glib.la
322 if BUILD_LIBPOLYPCORE
324 polypinclude_HEADERS+=cli-command.h\
354 lib_LTLIBRARIES+= libpolypcore.la
356 libpolypcore_la_SOURCES = idxset.c idxset.h \
359 mainloop.c mainloop.h \
360 memblock.c memblock.h \
362 sample-util.c sample-util.h \
363 memblockq.c memblockq.h \
366 source-output.c source-output.h \
367 sink-input.c sink-input.h \
371 mainloop-signal.c mainloop-signal.h \
372 mainloop-api.c mainloop-api.h \
374 hashmap.c hashmap.h \
375 namereg.c namereg.h \
377 resampler.c resampler.h \
379 memchunk.c memchunk.h \
380 sconv-s16le.c sconv-s16le.h \
381 sconv-s16be.c sconv-s16be.h \
383 modargs.c modargs.h \
384 cli-command.c cli-command.h \
385 clitext.c clitext.h \
386 tokenizer.c tokenizer.h \
387 dynarray.c dynarray.h