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 Lesser 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 Lesser 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 polypincludedir=$(includedir)/polyp
21 polypconfdir=$(sysconfdir)/polypaudio
23 modlibdir=$(libdir)/polypaudio-@PA_MAJORMINOR@
25 AM_CFLAGS=-D_GNU_SOURCE -I$(top_srcdir) $(PTHREAD_CFLAGS)
26 AM_CFLAGS+=-DDLSEARCHPATH=\"$(modlibdir)\"
27 AM_CFLAGS+=-DDEFAULT_CONFIG_DIR=\"$(polypconfdir)\"
28 AM_CFLAGS+=-DPOLYPAUDIO_BINARY=\"$(bindir)/polypaudio\"
30 # This cool debug trap works on i386/gcc only
31 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
33 AM_LIBADD=$(PTHREAD_LIBS) -lm
34 AM_LDADD=$(PTHREAD_LIBS) -lm
36 EXTRA_DIST = default.pa.in daemon.conf.in client.conf.in depmod.py esdcompat.sh.in module-defs.h.m4
44 bin_SCRIPTS = esdcompat.sh
56 polypconf_DATA=default.pa daemon.conf client.conf
58 BUILT_SOURCES=polyplib-version.h
60 polypinclude_HEADERS= \
67 polyplib-introspect.h \
68 polyplib-subscribe.h \
69 polyplib-operation.h \
80 ### Warning! Due to an obscure bug in libtool/automake it is required
81 ### that the libraries in modlib_LTLIBRARIES are specified in-order,
82 ### i.e. libraries near the end of the list depend on libraries near
83 ### the head, and not the other way!
102 libprotocol-simple.la \
103 libprotocol-esound.la \
104 libprotocol-native.la \
106 module-cli-protocol-tcp.la \
107 module-cli-protocol-tcp6.la \
108 module-cli-protocol-unix.la \
109 module-pipe-sink.la \
110 module-pipe-source.la \
113 module-simple-protocol-tcp.la \
114 module-simple-protocol-tcp6.la \
115 module-simple-protocol-unix.la \
116 module-esound-protocol-tcp.la \
117 module-esound-protocol-tcp6.la \
118 module-esound-protocol-unix.la \
119 module-native-protocol-tcp.la \
120 module-native-protocol-tcp6.la \
121 module-native-protocol-unix.la \
122 module-native-protocol-fd.la \
125 module-esound-compat-spawnfd.la \
126 module-esound-compat-spawnpid.la \
128 module-tunnel-sink.la \
129 module-tunnel-source.la \
130 module-null-sink.la \
131 module-esound-sink.la
134 module-cli-symdef.h \
135 module-cli-protocol-tcp-symdef.h \
136 module-cli-protocol-tcp6-symdef.h \
137 module-cli-protocol-unix-symdef.h \
138 module-pipe-sink-symdef.h \
139 module-pipe-source-symdef.h \
140 module-oss-symdef.h \
141 module-oss-mmap-symdef.h \
142 module-simple-protocol-tcp-symdef.h \
143 module-simple-protocol-tcp6-symdef.h \
144 module-simple-protocol-unix-symdef.h \
145 module-esound-protocol-tcp-symdef.h \
146 module-esound-protocol-tcp6-symdef.h \
147 module-esound-protocol-unix-symdef.h \
148 module-native-protocol-tcp-symdef.h \
149 module-native-protocol-tcp6-symdef.h \
150 module-native-protocol-unix-symdef.h \
151 module-native-protocol-fd-symdef.h \
152 module-sine-symdef.h \
153 module-combine-symdef.h \
154 module-esound-compat-spawnfd-symdef.h \
155 module-esound-compat-spawnpid-symdef.h \
156 module-match-symdef.h \
157 module-tunnel-sink-symdef.h \
158 module-tunnel-source-symdef.h \
159 module-null-sink-symdef.h \
160 module-esound-sink-symdef.h \
161 module-zeroconf-publish-symdef.h
163 EXTRA_DIST+=$(SYMDEF_FILES)
164 BUILT_SOURCES+=$(SYMDEF_FILES)
167 libpolyp-@PA_MAJORMINOR@.la \
168 libpolyp-error-@PA_MAJORMINOR@.la \
169 libpolyp-mainloop-@PA_MAJORMINOR@.la \
170 libpolyp-simple-@PA_MAJORMINOR@.la
172 polypaudio_SOURCES = idxset.c idxset.h \
176 mainloop.c mainloop.h \
177 memblock.c memblock.h \
179 sample-util.c sample-util.h \
180 memblockq.c memblockq.h \
183 source-output.c source-output.h \
184 sink-input.c sink-input.h \
188 mainloop-signal.c mainloop-signal.h \
189 mainloop-api.c mainloop-api.h \
191 hashmap.c hashmap.h \
192 namereg.c namereg.h \
194 resampler.c resampler.h \
196 memchunk.c memchunk.h \
197 sconv-s16le.c sconv-s16le.h \
198 sconv-s16be.c sconv-s16be.h \
200 modargs.c modargs.h \
201 cmdline.c cmdline.h \
202 cli-command.c cli-command.h \
203 cli-text.c cli-text.h \
204 tokenizer.c tokenizer.h \
205 dynarray.c dynarray.h \
207 sound-file.c sound-file.h \
208 play-memchunk.c play-memchunk.h \
209 autoload.c autoload.h \
210 xmalloc.c xmalloc.h \
211 subscribe.h subscribe.c \
212 sound-file-stream.c sound-file-stream.h \
213 cpulimit.c cpulimit.h \
216 modinfo.c modinfo.h \
217 daemon-conf.c daemon-conf.h \
218 dumpmodules.c dumpmodules.h \
219 conf-parser.h conf-parser.c \
222 mcalign.c mcalign.h \
228 polypaudio_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSNDFILE_CFLAGS)
229 polypaudio_CPPFLAGS = $(AM_CPPFLAGS) $(LTDLINCL)
230 polypaudio_LDADD = $(AM_LDADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS)
231 polypaudio_LDFLAGS= $(AM_LDFLAGS) -export-dynamic -dlopen force #-static $(foreach f,$(modlib_LTLIBRARIES),-dlpreopen $(f))
233 libprotocol_simple_la_SOURCES = protocol-simple.c protocol-simple.h
234 libprotocol_simple_la_LDFLAGS = -avoid-version
235 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la
237 libsocket_server_la_SOURCES = socket-server.c socket-server.h
238 libsocket_server_la_LDFLAGS = -avoid-version
239 libsocket_server_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la $(LIBWRAP_LIBS)
241 libsocket_client_la_SOURCES = socket-client.c socket-client.h
242 libsocket_client_la_LDFLAGS = -avoid-version
243 libsocket_client_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la
245 libpstream_la_SOURCES = pstream.c pstream.h
246 libpstream_la_LDFLAGS = -avoid-version
247 libpstream_la_LIBADD = $(AM_LIBADD) libpacket.la libiochannel.la
249 libpstream_util_la_SOURCES = pstream-util.c pstream-util.h
250 libpstream_util_la_LDFLAGS = -avoid-version
251 libpstream_util_la_LIBADD = $(AM_LIBADD) libpacket.la libpstream.la libtagstruct.la
253 libpdispatch_la_SOURCES = pdispatch.c pdispatch.h
254 libpdispatch_la_LDFLAGS = -avoid-version
255 libpdispatch_la_LIBADD = $(AM_LIBADD) libtagstruct.la
257 libiochannel_la_SOURCES = iochannel.c iochannel.h
258 libiochannel_la_LDFLAGS = -avoid-version
259 libiochannel_la_LIBADD = $(AM_LIBADD) libsocket-util.la
261 libpacket_la_SOURCES = packet.c packet.h
262 libpacket_la_LDFLAGS = -avoid-version
264 liboss_util_la_SOURCES = oss-util.c oss-util.h
265 liboss_util_la_LDFLAGS = -avoid-version
267 libioline_la_SOURCES = ioline.c ioline.h
268 libioline_la_LDFLAGS = -avoid-version
269 libioline_la_LIBADD = $(AM_LIBADD) libiochannel.la
271 libcli_la_SOURCES = cli.c cli.h
272 libcli_la_LDFLAGS = -avoid-version
273 libcli_la_LIBADD = $(AM_LIBADD) libiochannel.la libioline.la
275 libstrlist_la_SOURCES = strlist.c strlist.h
276 libstrlist_la_LDFLAGS = -avoid-version
277 libstrlist_la_LIBADD = $(AM_LIBADD)
279 libprotocol_cli_la_SOURCES = protocol-cli.c protocol-cli.h
280 libprotocol_cli_la_LDFLAGS = -avoid-version
281 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libcli.la
283 libprotocol_native_la_SOURCES = protocol-native.c protocol-native.h native-common.h
284 libprotocol_native_la_LDFLAGS = -avoid-version
285 libprotocol_native_la_LIBADD = $(AM_LIBADD) libsocket-server.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la libauthkey-prop.la libstrlist.la
287 libtagstruct_la_SOURCES = tagstruct.c tagstruct.h
288 libtagstruct_la_LDFLAGS = -avoid-version
290 libprotocol_esound_la_SOURCES = protocol-esound.c protocol-esound.h esound.h
291 libprotocol_esound_la_LDFLAGS = -avoid-version
292 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libauthkey.la
294 libauthkey_la_SOURCES = authkey.c authkey.h
295 libauthkey_la_LDFLAGS = -avoid-version
297 libauthkey_prop_la_SOURCES = authkey-prop.c authkey-prop.h
298 libauthkey_prop_la_LDFLAGS = -avoid-version
300 libsocket_util_la_SOURCES = socket-util.c socket-util.h
301 libsocket_util_la_LDFLAGS = -avoid-version
303 module_simple_protocol_tcp_la_SOURCES = module-protocol-stub.c
304 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
305 module_simple_protocol_tcp_la_LDFLAGS = -module -avoid-version
306 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la
308 module_simple_protocol_tcp6_la_SOURCES = module-protocol-stub.c
309 module_simple_protocol_tcp6_la_CFLAGS = -DUSE_TCP6_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
310 module_simple_protocol_tcp6_la_LDFLAGS = -module -avoid-version
311 module_simple_protocol_tcp6_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la
313 module_simple_protocol_unix_la_SOURCES = module-protocol-stub.c
314 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
315 module_simple_protocol_unix_la_LDFLAGS = -module -avoid-version
316 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la libsocket-util.la
318 module_cli_protocol_tcp_la_SOURCES = module-protocol-stub.c
319 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
320 module_cli_protocol_tcp_la_LDFLAGS = -module -avoid-version
321 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la
323 module_cli_protocol_tcp6_la_SOURCES = module-protocol-stub.c
324 module_cli_protocol_tcp6_la_CFLAGS = -DUSE_TCP6_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
325 module_cli_protocol_tcp6_la_LDFLAGS = -module -avoid-version
326 module_cli_protocol_tcp6_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la
328 module_cli_protocol_unix_la_SOURCES = module-protocol-stub.c
329 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
330 module_cli_protocol_unix_la_LDFLAGS = -module -avoid-version
331 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la libsocket-util.la
333 module_native_protocol_tcp_la_SOURCES = module-protocol-stub.c
334 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
335 module_native_protocol_tcp_la_LDFLAGS = -module -avoid-version
336 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la
338 module_native_protocol_tcp6_la_SOURCES = module-protocol-stub.c
339 module_native_protocol_tcp6_la_CFLAGS = -DUSE_TCP6_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
340 module_native_protocol_tcp6_la_LDFLAGS = -module -avoid-version
341 module_native_protocol_tcp6_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la
343 module_native_protocol_unix_la_SOURCES = module-protocol-stub.c
344 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
345 module_native_protocol_unix_la_LDFLAGS = -module -avoid-version
346 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la libsocket-util.la
348 module_native_protocol_fd_la_SOURCES = module-native-protocol-fd.c
349 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
350 module_native_protocol_fd_la_LDFLAGS = -module -avoid-version
351 module_native_protocol_fd_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la libsocket-util.la
353 module_esound_protocol_tcp_la_SOURCES = module-protocol-stub.c
354 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
355 module_esound_protocol_tcp_la_LDFLAGS = -module -avoid-version
356 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la
358 module_esound_protocol_tcp6_la_SOURCES = module-protocol-stub.c
359 module_esound_protocol_tcp6_la_CFLAGS = -DUSE_TCP6_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
360 module_esound_protocol_tcp6_la_LDFLAGS = -module -avoid-version
361 module_esound_protocol_tcp6_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la
363 module_esound_protocol_unix_la_SOURCES = module-protocol-stub.c
364 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
365 module_esound_protocol_unix_la_LDFLAGS = -module -avoid-version
366 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la libsocket-util.la
368 module_pipe_sink_la_SOURCES = module-pipe-sink.c
369 module_pipe_sink_la_LDFLAGS = -module -avoid-version
370 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libiochannel.la
372 module_pipe_source_la_SOURCES = module-pipe-source.c
373 module_pipe_source_la_LDFLAGS = -module -avoid-version
374 module_pipe_source_la_LIBADD = $(AM_LIBADD) libiochannel.la
376 module_oss_la_SOURCES = module-oss.c
377 module_oss_la_LDFLAGS = -module -avoid-version
378 module_oss_la_LIBADD = $(AM_LIBADD) libiochannel.la liboss-util.la
380 module_oss_mmap_la_SOURCES = module-oss-mmap.c
381 module_oss_mmap_la_LDFLAGS = -module -avoid-version
382 module_oss_mmap_la_LIBADD = $(AM_LIBADD) liboss-util.la
384 module_cli_la_SOURCES = module-cli.c
385 module_cli_la_LDFLAGS = -module -avoid-version
386 module_cli_la_LIBADD = $(AM_LIBADD) libcli.la libiochannel.la
388 module_sine_la_SOURCES = module-sine.c
389 module_sine_la_LDFLAGS = -module -avoid-version
390 module_sine_la_LIBADD = $(AM_LIBADD)
392 module_combine_la_SOURCES = module-combine.c
393 module_combine_la_LDFLAGS = -module -avoid-version
394 module_combine_la_LIBADD = $(AM_LIBADD)
396 module_null_sink_la_SOURCES = module-null-sink.c
397 module_null_sink_la_LDFLAGS = -module -avoid-version
398 module_null_sink_la_LIBADD = $(AM_LIBADD)
400 module_match_la_SOURCES = module-match.c
401 module_match_la_LDFLAGS = -module -avoid-version
402 module_match_la_LIBADD = $(AM_LIBADD)
404 module_tunnel_sink_la_SOURCES = module-tunnel.c
405 module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS)
406 module_tunnel_sink_la_LDFLAGS = -module -avoid-version
407 module_tunnel_sink_la_LIBADD = $(AM_LIBADD) libsocket-client.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la libauthkey-prop.la libsocket-util.la libiochannel.la
409 module_tunnel_source_la_SOURCES = module-tunnel.c
410 module_tunnel_source_la_LDFLAGS = -module -avoid-version
411 module_tunnel_source_la_LIBADD = $(AM_LIBADD) libsocket-client.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la libauthkey-prop.la libsocket-util.la libiochannel.la
413 module_esound_compat_spawnfd_la_SOURCES = module-esound-compat-spawnfd.c
414 module_esound_compat_spawnfd_la_LDFLAGS = -module -avoid-version
415 module_esound_compat_spawnfd_la_LIBADD = $(AM_LIBADD)
417 module_esound_compat_spawnpid_la_SOURCES = module-esound-compat-spawnpid.c
418 module_esound_compat_spawnpid_la_LDFLAGS = -module -avoid-version
419 module_esound_compat_spawnpid_la_LIBADD = $(AM_LIBADD)
421 module_esound_sink_la_SOURCES = module-esound-sink.c
422 module_esound_sink_la_LDFLAGS = -module -avoid-version
423 module_esound_sink_la_LIBADD = $(AM_LIBADD) libsocket-client.la libauthkey.la
425 libpolyp_@PA_MAJORMINOR@_la_SOURCES = polyplib.h \
427 tagstruct.c tagstruct.h \
428 iochannel.c iochannel.h \
429 pstream.c pstream.h \
430 pstream-util.c pstream-util.h \
431 pdispatch.c pdispatch.h \
432 mainloop-api.c mainloop-api.h \
435 memblock.c memblock.h \
436 socket-client.c socket-client.h \
439 dynarray.c dynarray.h \
440 memchunk.c memchunk.h \
441 authkey.c authkey.h \
442 socket-util.c socket-util.h \
445 xmalloc.c xmalloc.h \
446 polyplib-operation.c polyplib-operation.h \
447 polyplib-context.c polyplib-context.h \
448 polyplib-stream.c polyplib-stream.h \
449 polyplib-introspect.c polyplib-introspect.h \
450 polyplib-scache.c polyplib-scache.h \
451 polyplib-subscribe.c polyplib-subscribe.h \
452 polyplib-internal.h \
457 client-conf.c client-conf.h \
458 conf-parser.c conf-parser.h \
459 strlist.c strlist.h \
461 mcalign.c mcalign.h \
465 libpolyp_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
466 libpolyp_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
468 libpolyp_mainloop_@PA_MAJORMINOR@_la_SOURCES = mainloop-api.h mainloop-api.c \
469 mainloop.c mainloop.h \
470 mainloop-signal.c mainloop-signal.h
471 libpolyp_mainloop_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
472 libpolyp_mainloop_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la
473 libpolyp_mainloop_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
475 libpolyp_error_@PA_MAJORMINOR@_la_SOURCES = polyplib-error.c polyplib-error.h
476 libpolyp_error_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
477 libpolyp_error_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la
478 libpolyp_error_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
480 libpolyp_simple_@PA_MAJORMINOR@_la_SOURCES = polyplib-simple.c polyplib-simple.h
481 libpolyp_simple_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
482 libpolyp_simple_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
483 libpolyp_simple_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
485 pacat_SOURCES = pacat.c
486 pacat_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
487 pacat_CFLAGS = $(AM_CFLAGS)
489 paplay_SOURCES = paplay.c
490 paplay_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
491 paplay_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
493 pactl_SOURCES = pactl.c
494 pactl_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
495 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
497 pacat_simple_SOURCES = pacat-simple.c
498 pacat_simple_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-simple-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
499 pacat_simple_CFLAGS = $(AM_CFLAGS)
501 parec_simple_SOURCES = parec-simple.c
502 parec_simple_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-simple-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
503 parec_simple_CFLAGS = $(AM_CFLAGS)
505 mainloop_test_SOURCES = mainloop-test.c
506 mainloop_test_CFLAGS = $(AM_CFLAGS)
507 mainloop_test_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la libpolyp-@PA_MAJORMINOR@.la
509 voltest_SOURCES = voltest.c sample.c
510 voltest_CFLAGS = $(AM_CFLAGS)
511 voltest_LDADD = $(AM_LDADD)
513 strlist_test_SOURCES = strlist-test.c strlist.c strlist.h strbuf.c strbuf.h util.c util.h xmalloc.c xmalloc.h log.c log.h
514 strlist_test_CFLAGS = $(AM_CFLAGS)
515 strlist_test_LDADD = $(AM_LDADD)
517 mcalign_test_SOURCES = mcalign-test.c util.c util.h xmalloc.c xmalloc.h log.c log.h mcalign.c mcalign.h memchunk.c memchunk.h memblock.c memblock.h
518 mcalign_test_CFLAGS = $(AM_CFLAGS)
519 mcalign_test_LDADD = $(AM_LDADD)
521 pacmd_SOURCES = pacmd.c util.c util.h xmalloc.c xmalloc.h log.c log.h pid.c pid.h
522 pacmd_CFLAGS = $(AM_CFLAGS)
523 pacmd_LDADD = $(AM_LDADD)
525 cpulimit_test_SOURCES = cpulimit-test.c cpulimit.c util.c log.c cpulimit.h util.h log.h
526 cpulimit_test_CFLAGS = $(AM_CFLAGS)
527 cpulimit_test_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la
529 cpulimit_test2_SOURCES = cpulimit-test.c cpulimit.c util.c log.c cpulimit.h util.h log.h
530 cpulimit_test2_CFLAGS = $(AM_CFLAGS) -DTEST2
531 cpulimit_test2_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la
536 modlib_LTLIBRARIES+= \
540 module-x11-publish.la
542 module-x11-bell-symdef.h \
543 module-x11-publish-symdef.h
545 libx11wrap_la_SOURCES = x11wrap.c x11wrap.h
546 libx11wrap_la_LDFLAGS = -avoid-version
547 libx11wrap_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
548 libx11wrap_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
550 libx11prop_la_SOURCES = x11prop.c x11prop.h
551 libx11prop_la_LDFLAGS = -avoid-version
552 libx11prop_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
553 libx11prop_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
555 module_x11_bell_la_SOURCES = module-x11-bell.c
556 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
557 module_x11_bell_la_LDFLAGS = -module -avoid-version
558 module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS) libx11wrap.la
560 module_x11_publish_la_SOURCES = module-x11-publish.c
561 module_x11_publish_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
562 module_x11_publish_la_LDFLAGS = -module -avoid-version
563 module_x11_publish_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS) libx11wrap.la libauthkey.la libauthkey-prop.la libx11prop.la libstrlist.la
568 pax11publish_SOURCES = pax11publish.c util.c util.h xmalloc.c xmalloc.h log.c log.h authkey.c authkey.h client-conf.c client-conf.h conf-parser.c conf-parser.h x11prop.c x11prop.h random.c random.h
569 pax11publish_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
570 pax11publish_LDADD = $(AM_LDADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
572 libpolyp_@PA_MAJORMINOR@_la_CFLAGS += $(X_CFLAGS)
573 libpolyp_@PA_MAJORMINOR@_la_LDFLAGS += $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
574 libpolyp_@PA_MAJORMINOR@_la_SOURCES += x11prop.c x11prop.h client-conf-x11.c client-conf-x11.h
581 modlib_LTLIBRARIES+= \
583 module-alsa-sink.la \
584 module-alsa-source.la
586 module-alsa-sink-symdef.h \
587 module-alsa-source-symdef.h
589 libalsa_util_la_SOURCES = alsa-util.c alsa-util.h
590 libalsa_util_la_LDFLAGS = -avoid-version
591 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS)
592 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
594 module_alsa_sink_la_SOURCES = module-alsa-sink.c
595 module_alsa_sink_la_LDFLAGS = -module -avoid-version
596 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
597 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
599 module_alsa_source_la_SOURCES = module-alsa-source.c
600 module_alsa_source_la_LDFLAGS = -module -avoid-version
601 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
602 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
607 modlib_LTLIBRARIES+= \
609 module-zeroconf-publish.la
611 libhowl_wrap_la_SOURCES = howl-wrap.c howl-wrap.h
612 libhowl_wrap_la_LDFLAGS = -avoid-version
613 libhowl_wrap_la_LIBADD = $(AM_LIBADD) $(HOWL_LIBS)
614 libhowl_wrap_la_CFLAGS = $(AM_CFLAGS) $(HOWL_CFLAGS)
616 module_zeroconf_publish_la_SOURCES = module-zeroconf-publish.c
617 module_zeroconf_publish_la_LDFLAGS = -module -avoid-version
618 module_zeroconf_publish_la_LIBADD = $(AM_LIBADD) $(HOWL_LIBS) libhowl-wrap.la
619 module_zeroconf_publish_la_CFLAGS = $(AM_CFLAGS) $(HOWL_CFLAGS)
622 libpolyp-browse-@PA_MAJORMINOR@.la
624 libpolyp_browse_@PA_MAJORMINOR@_la_SOURCES = polyplib-browser.c polyplib-browser.h
625 libpolyp_browse_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(HOWL_CFLAGS)
626 libpolyp_browse_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la $(HOWL_LIBS)
627 libpolyp_browse_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
632 pabrowse_SOURCES = pabrowse.c
633 pabrowse_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la libpolyp-browse-@PA_MAJORMINOR@.la
634 pabrowse_CFLAGS = $(AM_CFLAGS)
636 polypinclude_HEADERS+=polyplib-browser.h
644 libpolyp-mainloop-glib-@PA_MAJORMINOR@.la
649 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_SOURCES = glib-mainloop.h glib-mainloop.c
650 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
651 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-mainloop-@PA_MAJORMINOR@.la $(GLIB20_LIBS)
652 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
654 mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
655 mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
656 mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpolyp-mainloop-glib-@PA_MAJORMINOR@.la
664 libpolyp-mainloop-glib12-@PA_MAJORMINOR@.la
669 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_SOURCES = glib-mainloop.h glib12-mainloop.c
670 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(GLIB12_CFLAGS)
671 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-mainloop-@PA_MAJORMINOR@.la $(GLIB12_LIBS)
672 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
674 mainloop_test_glib12_SOURCES = $(mainloop_test_SOURCES)
675 mainloop_test_glib12_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB12_CFLAGS) -DGLIB_MAIN_LOOP
676 mainloop_test_glib12_LDADD = $(mainloop_test_LDADD) $(GLIB12_LIBS) libpolyp-mainloop-glib12-@PA_MAJORMINOR@.la
680 ### libpolypcore (needs to be updated)
682 if BUILD_LIBPOLYPCORE
684 polypinclude_HEADERS+=cli-command.h\
714 lib_LTLIBRARIES+= libpolypcore.la
716 libpolypcore_la_SOURCES = idxset.c idxset.h \
719 mainloop.c mainloop.h \
720 memblock.c memblock.h \
722 sample-util.c sample-util.h \
723 memblockq.c memblockq.h \
726 source-output.c source-output.h \
727 sink-input.c sink-input.h \
731 mainloop-signal.c mainloop-signal.h \
732 mainloop-api.c mainloop-api.h \
734 hashmap.c hashmap.h \
735 namereg.c namereg.h \
737 resampler.c resampler.h \
739 memchunk.c memchunk.h \
740 sconv-s16le.c sconv-s16le.h \
741 sconv-s16be.c sconv-s16be.h \
743 modargs.c modargs.h \
744 cli-command.c cli-command.h \
745 cli-text.c cli-text.h \
746 tokenizer.c tokenizer.h \
747 dynarray.c dynarray.h
757 esdcompat.sh: esdcompat.sh.in Makefile
758 sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
759 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
760 -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
762 client.conf: client.conf.in Makefile
763 sed -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
765 default.pa: default.pa.in Makefile
766 sed -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
768 daemon.conf: daemon.conf.in Makefile
769 sed -e 's,@DLSEARCHPATH\@,$(modlibdir),g' \
770 -e 's,@DEFAULT_CONFIG_FILE\@,$(polypconfdir)/daemon.conf,g' < $< > $@
773 chown root $(DESTDIR)$(bindir)/polypaudio ; true
774 chmod u+s $(DESTDIR)$(bindir)/polypaudio
775 ln -sf pacat $(DESTDIR)$(bindir)/parec
777 $(SYMDEF_FILES): module-defs.h.m4
778 $(M4) -Dfname="$@" $< > $@