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 \
79 ### Warning! Due to an obscure bug in libtool/automake it is required
80 ### that the libraries in modlib_LTLIBRARIES are specified in-order,
81 ### i.e. libraries near the end of the list depend on libraries near
82 ### the head, and not the other way!
101 libprotocol-simple.la \
102 libprotocol-esound.la \
103 libprotocol-native.la \
105 module-cli-protocol-tcp.la \
106 module-cli-protocol-tcp6.la \
107 module-cli-protocol-unix.la \
108 module-pipe-sink.la \
109 module-pipe-source.la \
112 module-simple-protocol-tcp.la \
113 module-simple-protocol-tcp6.la \
114 module-simple-protocol-unix.la \
115 module-esound-protocol-tcp.la \
116 module-esound-protocol-tcp6.la \
117 module-esound-protocol-unix.la \
118 module-native-protocol-tcp.la \
119 module-native-protocol-tcp6.la \
120 module-native-protocol-unix.la \
121 module-native-protocol-fd.la \
124 module-esound-compat-spawnfd.la \
125 module-esound-compat-spawnpid.la \
127 module-tunnel-sink.la \
128 module-tunnel-source.la \
129 module-null-sink.la \
130 module-esound-sink.la
133 module-cli-symdef.h \
134 module-cli-protocol-tcp-symdef.h \
135 module-cli-protocol-tcp6-symdef.h \
136 module-cli-protocol-unix-symdef.h \
137 module-pipe-sink-symdef.h \
138 module-pipe-source-symdef.h \
139 module-oss-symdef.h \
140 module-oss-mmap-symdef.h \
141 module-simple-protocol-tcp-symdef.h \
142 module-simple-protocol-tcp6-symdef.h \
143 module-simple-protocol-unix-symdef.h \
144 module-esound-protocol-tcp-symdef.h \
145 module-esound-protocol-tcp6-symdef.h \
146 module-esound-protocol-unix-symdef.h \
147 module-native-protocol-tcp-symdef.h \
148 module-native-protocol-tcp6-symdef.h \
149 module-native-protocol-unix-symdef.h \
150 module-native-protocol-fd-symdef.h \
151 module-sine-symdef.h \
152 module-combine-symdef.h \
153 module-esound-compat-spawnfd-symdef.h \
154 module-esound-compat-spawnpid-symdef.h \
155 module-match-symdef.h \
156 module-tunnel-sink-symdef.h \
157 module-tunnel-source-symdef.h \
158 module-null-sink-symdef.h \
159 module-esound-sink-symdef.h
161 EXTRA_DIST+=$(SYMDEF_FILES)
162 BUILT_SOURCES+=$(SYMDEF_FILES)
165 libpolyp-@PA_MAJORMINOR@.la \
166 libpolyp-error-@PA_MAJORMINOR@.la \
167 libpolyp-mainloop-@PA_MAJORMINOR@.la \
168 libpolyp-simple-@PA_MAJORMINOR@.la
170 polypaudio_SOURCES = idxset.c idxset.h \
174 mainloop.c mainloop.h \
175 memblock.c memblock.h \
177 sample-util.c sample-util.h \
178 memblockq.c memblockq.h \
181 source-output.c source-output.h \
182 sink-input.c sink-input.h \
186 mainloop-signal.c mainloop-signal.h \
187 mainloop-api.c mainloop-api.h \
189 hashmap.c hashmap.h \
190 namereg.c namereg.h \
192 resampler.c resampler.h \
194 memchunk.c memchunk.h \
195 sconv-s16le.c sconv-s16le.h \
196 sconv-s16be.c sconv-s16be.h \
198 modargs.c modargs.h \
199 cmdline.c cmdline.h \
200 cli-command.c cli-command.h \
201 cli-text.c cli-text.h \
202 tokenizer.c tokenizer.h \
203 dynarray.c dynarray.h \
205 sound-file.c sound-file.h \
206 play-memchunk.c play-memchunk.h \
207 autoload.c autoload.h \
208 xmalloc.c xmalloc.h \
209 subscribe.h subscribe.c \
210 sound-file-stream.c sound-file-stream.h \
211 cpulimit.c cpulimit.h \
214 modinfo.c modinfo.h \
215 daemon-conf.c daemon-conf.h \
216 dumpmodules.c dumpmodules.h \
217 conf-parser.h conf-parser.c \
220 mcalign.c mcalign.h \
224 polypaudio_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSNDFILE_CFLAGS)
225 polypaudio_CPPFLAGS = $(AM_CPPFLAGS) $(LTDLINCL)
226 polypaudio_LDADD = $(AM_LDADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS)
227 polypaudio_LDFLAGS= $(AM_LDFLAGS) -export-dynamic -dlopen force #-static $(foreach f,$(modlib_LTLIBRARIES),-dlpreopen $(f))
229 libprotocol_simple_la_SOURCES = protocol-simple.c protocol-simple.h
230 libprotocol_simple_la_LDFLAGS = -avoid-version
231 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la
233 libsocket_server_la_SOURCES = socket-server.c socket-server.h
234 libsocket_server_la_LDFLAGS = -avoid-version
235 libsocket_server_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la $(LIBWRAP_LIBS)
237 libsocket_client_la_SOURCES = socket-client.c socket-client.h
238 libsocket_client_la_LDFLAGS = -avoid-version
239 libsocket_client_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la
241 libpstream_la_SOURCES = pstream.c pstream.h
242 libpstream_la_LDFLAGS = -avoid-version
243 libpstream_la_LIBADD = $(AM_LIBADD) libpacket.la libiochannel.la
245 libpstream_util_la_SOURCES = pstream-util.c pstream-util.h
246 libpstream_util_la_LDFLAGS = -avoid-version
247 libpstream_util_la_LIBADD = $(AM_LIBADD) libpacket.la libpstream.la libtagstruct.la
249 libpdispatch_la_SOURCES = pdispatch.c pdispatch.h
250 libpdispatch_la_LDFLAGS = -avoid-version
251 libpdispatch_la_LIBADD = $(AM_LIBADD) libtagstruct.la
253 libiochannel_la_SOURCES = iochannel.c iochannel.h
254 libiochannel_la_LDFLAGS = -avoid-version
255 libiochannel_la_LIBADD = $(AM_LIBADD) libsocket-util.la
257 libpacket_la_SOURCES = packet.c packet.h
258 libpacket_la_LDFLAGS = -avoid-version
260 liboss_util_la_SOURCES = oss-util.c oss-util.h
261 liboss_util_la_LDFLAGS = -avoid-version
263 libioline_la_SOURCES = ioline.c ioline.h
264 libioline_la_LDFLAGS = -avoid-version
265 libioline_la_LIBADD = $(AM_LIBADD) libiochannel.la
267 libcli_la_SOURCES = cli.c cli.h
268 libcli_la_LDFLAGS = -avoid-version
269 libcli_la_LIBADD = $(AM_LIBADD) libiochannel.la libioline.la
271 libstrlist_la_SOURCES = strlist.c strlist.h
272 libstrlist_la_LDFLAGS = -avoid-version
273 libstrlist_la_LIBADD = $(AM_LIBADD)
275 libprotocol_cli_la_SOURCES = protocol-cli.c protocol-cli.h
276 libprotocol_cli_la_LDFLAGS = -avoid-version
277 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libcli.la
279 libprotocol_native_la_SOURCES = protocol-native.c protocol-native.h native-common.h
280 libprotocol_native_la_LDFLAGS = -avoid-version
281 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
283 libtagstruct_la_SOURCES = tagstruct.c tagstruct.h
284 libtagstruct_la_LDFLAGS = -avoid-version
286 libprotocol_esound_la_SOURCES = protocol-esound.c protocol-esound.h esound.h
287 libprotocol_esound_la_LDFLAGS = -avoid-version
288 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libauthkey.la
290 libauthkey_la_SOURCES = authkey.c authkey.h
291 libauthkey_la_LDFLAGS = -avoid-version
293 libauthkey_prop_la_SOURCES = authkey-prop.c authkey-prop.h
294 libauthkey_prop_la_LDFLAGS = -avoid-version
296 libsocket_util_la_SOURCES = socket-util.c socket-util.h
297 libsocket_util_la_LDFLAGS = -avoid-version
299 module_simple_protocol_tcp_la_SOURCES = module-protocol-stub.c
300 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
301 module_simple_protocol_tcp_la_LDFLAGS = -module -avoid-version
302 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la
304 module_simple_protocol_tcp6_la_SOURCES = module-protocol-stub.c
305 module_simple_protocol_tcp6_la_CFLAGS = -DUSE_TCP6_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
306 module_simple_protocol_tcp6_la_LDFLAGS = -module -avoid-version
307 module_simple_protocol_tcp6_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la
309 module_simple_protocol_unix_la_SOURCES = module-protocol-stub.c
310 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
311 module_simple_protocol_unix_la_LDFLAGS = -module -avoid-version
312 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la libsocket-util.la
314 module_cli_protocol_tcp_la_SOURCES = module-protocol-stub.c
315 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
316 module_cli_protocol_tcp_la_LDFLAGS = -module -avoid-version
317 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la
319 module_cli_protocol_tcp6_la_SOURCES = module-protocol-stub.c
320 module_cli_protocol_tcp6_la_CFLAGS = -DUSE_TCP6_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
321 module_cli_protocol_tcp6_la_LDFLAGS = -module -avoid-version
322 module_cli_protocol_tcp6_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la
324 module_cli_protocol_unix_la_SOURCES = module-protocol-stub.c
325 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
326 module_cli_protocol_unix_la_LDFLAGS = -module -avoid-version
327 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la libsocket-util.la
329 module_native_protocol_tcp_la_SOURCES = module-protocol-stub.c
330 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
331 module_native_protocol_tcp_la_LDFLAGS = -module -avoid-version
332 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la
334 module_native_protocol_tcp6_la_SOURCES = module-protocol-stub.c
335 module_native_protocol_tcp6_la_CFLAGS = -DUSE_TCP6_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
336 module_native_protocol_tcp6_la_LDFLAGS = -module -avoid-version
337 module_native_protocol_tcp6_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la
339 module_native_protocol_unix_la_SOURCES = module-protocol-stub.c
340 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
341 module_native_protocol_unix_la_LDFLAGS = -module -avoid-version
342 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la libsocket-util.la
344 module_native_protocol_fd_la_SOURCES = module-native-protocol-fd.c
345 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
346 module_native_protocol_fd_la_LDFLAGS = -module -avoid-version
347 module_native_protocol_fd_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la libsocket-util.la
349 module_esound_protocol_tcp_la_SOURCES = module-protocol-stub.c
350 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
351 module_esound_protocol_tcp_la_LDFLAGS = -module -avoid-version
352 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la
354 module_esound_protocol_tcp6_la_SOURCES = module-protocol-stub.c
355 module_esound_protocol_tcp6_la_CFLAGS = -DUSE_TCP6_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
356 module_esound_protocol_tcp6_la_LDFLAGS = -module -avoid-version
357 module_esound_protocol_tcp6_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la
359 module_esound_protocol_unix_la_SOURCES = module-protocol-stub.c
360 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
361 module_esound_protocol_unix_la_LDFLAGS = -module -avoid-version
362 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la libsocket-util.la
364 module_pipe_sink_la_SOURCES = module-pipe-sink.c
365 module_pipe_sink_la_LDFLAGS = -module -avoid-version
366 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libiochannel.la
368 module_pipe_source_la_SOURCES = module-pipe-source.c
369 module_pipe_source_la_LDFLAGS = -module -avoid-version
370 module_pipe_source_la_LIBADD = $(AM_LIBADD) libiochannel.la
372 module_oss_la_SOURCES = module-oss.c
373 module_oss_la_LDFLAGS = -module -avoid-version
374 module_oss_la_LIBADD = $(AM_LIBADD) libiochannel.la liboss-util.la
376 module_oss_mmap_la_SOURCES = module-oss-mmap.c
377 module_oss_mmap_la_LDFLAGS = -module -avoid-version
378 module_oss_mmap_la_LIBADD = $(AM_LIBADD) liboss-util.la
380 module_cli_la_SOURCES = module-cli.c
381 module_cli_la_LDFLAGS = -module -avoid-version
382 module_cli_la_LIBADD = $(AM_LIBADD) libcli.la libiochannel.la
384 module_sine_la_SOURCES = module-sine.c
385 module_sine_la_LDFLAGS = -module -avoid-version
386 module_sine_la_LIBADD = $(AM_LIBADD)
388 module_combine_la_SOURCES = module-combine.c
389 module_combine_la_LDFLAGS = -module -avoid-version
390 module_combine_la_LIBADD = $(AM_LIBADD)
392 module_null_sink_la_SOURCES = module-null-sink.c
393 module_null_sink_la_LDFLAGS = -module -avoid-version
394 module_null_sink_la_LIBADD = $(AM_LIBADD)
396 module_match_la_SOURCES = module-match.c
397 module_match_la_LDFLAGS = -module -avoid-version
398 module_match_la_LIBADD = $(AM_LIBADD)
400 module_tunnel_sink_la_SOURCES = module-tunnel.c
401 module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS)
402 module_tunnel_sink_la_LDFLAGS = -module -avoid-version
403 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
405 module_tunnel_source_la_SOURCES = module-tunnel.c
406 module_tunnel_source_la_LDFLAGS = -module -avoid-version
407 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
409 module_esound_compat_spawnfd_la_SOURCES = module-esound-compat-spawnfd.c
410 module_esound_compat_spawnfd_la_LDFLAGS = -module -avoid-version
411 module_esound_compat_spawnfd_la_LIBADD = $(AM_LIBADD)
413 module_esound_compat_spawnpid_la_SOURCES = module-esound-compat-spawnpid.c
414 module_esound_compat_spawnpid_la_LDFLAGS = -module -avoid-version
415 module_esound_compat_spawnpid_la_LIBADD = $(AM_LIBADD)
417 module_esound_sink_la_SOURCES = module-esound-sink.c
418 module_esound_sink_la_LDFLAGS = -module -avoid-version
419 module_esound_sink_la_LIBADD = $(AM_LIBADD) libsocket-client.la libauthkey.la
421 libpolyp_@PA_MAJORMINOR@_la_SOURCES = polyplib.h \
423 tagstruct.c tagstruct.h \
424 iochannel.c iochannel.h \
425 pstream.c pstream.h \
426 pstream-util.c pstream-util.h \
427 pdispatch.c pdispatch.h \
428 mainloop-api.c mainloop-api.h \
431 memblock.c memblock.h \
432 socket-client.c socket-client.h \
435 dynarray.c dynarray.h \
436 memchunk.c memchunk.h \
437 authkey.c authkey.h \
438 socket-util.c socket-util.h \
441 xmalloc.c xmalloc.h \
442 polyplib-operation.c polyplib-operation.h \
443 polyplib-context.c polyplib-context.h \
444 polyplib-stream.c polyplib-stream.h \
445 polyplib-introspect.c polyplib-introspect.h \
446 polyplib-scache.c polyplib-scache.h \
447 polyplib-subscribe.c polyplib-subscribe.h \
448 polyplib-internal.h \
453 client-conf.c client-conf.h \
454 conf-parser.c conf-parser.h \
455 strlist.c strlist.h \
459 libpolyp_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
460 libpolyp_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
462 libpolyp_mainloop_@PA_MAJORMINOR@_la_SOURCES = mainloop-api.h mainloop-api.c \
463 mainloop.c mainloop.h \
464 mainloop-signal.c mainloop-signal.h
465 libpolyp_mainloop_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
466 libpolyp_mainloop_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la
467 libpolyp_mainloop_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
469 libpolyp_error_@PA_MAJORMINOR@_la_SOURCES = polyplib-error.c polyplib-error.h
470 libpolyp_error_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
471 libpolyp_error_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la
472 libpolyp_error_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
474 libpolyp_simple_@PA_MAJORMINOR@_la_SOURCES = polyplib-simple.c polyplib-simple.h
475 libpolyp_simple_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
476 libpolyp_simple_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
477 libpolyp_simple_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
479 pacat_SOURCES = pacat.c
480 pacat_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
481 pacat_CFLAGS = $(AM_CFLAGS)
483 paplay_SOURCES = paplay.c
484 paplay_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
485 paplay_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
487 pactl_SOURCES = pactl.c
488 pactl_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
489 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
491 pacat_simple_SOURCES = pacat-simple.c
492 pacat_simple_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-simple-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
493 pacat_simple_CFLAGS = $(AM_CFLAGS)
495 parec_simple_SOURCES = parec-simple.c
496 parec_simple_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-simple-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
497 parec_simple_CFLAGS = $(AM_CFLAGS)
499 mainloop_test_SOURCES = mainloop-test.c
500 mainloop_test_CFLAGS = $(AM_CFLAGS)
501 mainloop_test_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la libpolyp-@PA_MAJORMINOR@.la
503 voltest_SOURCES = voltest.c sample.c
504 voltest_CFLAGS = $(AM_CFLAGS)
505 voltest_LDADD = $(AM_LDADD)
507 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
508 strlist_test_CFLAGS = $(AM_CFLAGS)
509 strlist_test_LDADD = $(AM_LDADD)
511 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
512 mcalign_test_CFLAGS = $(AM_CFLAGS)
513 mcalign_test_LDADD = $(AM_LDADD)
515 pacmd_SOURCES = pacmd.c util.c util.h xmalloc.c xmalloc.h log.c log.h pid.c pid.h
516 pacmd_CFLAGS = $(AM_CFLAGS)
517 pacmd_LDADD = $(AM_LDADD)
519 cpulimit_test_SOURCES = cpulimit-test.c cpulimit.c util.c log.c cpulimit.h util.h log.h
520 cpulimit_test_CFLAGS = $(AM_CFLAGS)
521 cpulimit_test_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la
523 cpulimit_test2_SOURCES = cpulimit-test.c cpulimit.c util.c log.c cpulimit.h util.h log.h
524 cpulimit_test2_CFLAGS = $(AM_CFLAGS) -DTEST2
525 cpulimit_test2_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la
530 modlib_LTLIBRARIES+= \
534 module-x11-publish.la
536 module-x11-bell-symdef.h \
537 module-x11-publish-symdef.h
539 libx11wrap_la_SOURCES = x11wrap.c x11wrap.h
540 libx11wrap_la_LDFLAGS = -avoid-version
541 libx11wrap_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
542 libx11wrap_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
544 libx11prop_la_SOURCES = x11prop.c x11prop.h
545 libx11prop_la_LDFLAGS = -avoid-version
546 libx11prop_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
547 libx11prop_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
549 module_x11_bell_la_SOURCES = module-x11-bell.c
550 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
551 module_x11_bell_la_LDFLAGS = -module -avoid-version
552 module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS) libx11wrap.la
554 module_x11_publish_la_SOURCES = module-x11-publish.c
555 module_x11_publish_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
556 module_x11_publish_la_LDFLAGS = -module -avoid-version
557 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
562 pax11publish_SOURCES = pax11publish.c util.c xmalloc.c log.c authkey.c client-conf.c conf-parser.c x11prop.c
563 pax11publish_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
564 pax11publish_LDADD = $(AM_LDADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
566 libpolyp_@PA_MAJORMINOR@_la_CFLAGS += $(X_CFLAGS)
567 libpolyp_@PA_MAJORMINOR@_la_LDFLAGS += $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
568 libpolyp_@PA_MAJORMINOR@_la_SOURCES += x11prop.c client-conf-x11.c
575 modlib_LTLIBRARIES+= \
577 module-alsa-sink.la \
578 module-alsa-source.la
580 module-alsa-sink-symdef.h \
581 module-alsa-source-symdef.h
583 libalsa_util_la_SOURCES = alsa-util.c alsa-util.h
584 libalsa_util_la_LDFLAGS = -avoid-version
585 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS)
586 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
588 module_alsa_sink_la_SOURCES = module-alsa-sink.c
589 module_alsa_sink_la_LDFLAGS = -module -avoid-version
590 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
591 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
593 module_alsa_source_la_SOURCES = module-alsa-source.c
594 module_alsa_source_la_LDFLAGS = -module -avoid-version
595 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
596 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
603 libpolyp-mainloop-glib-@PA_MAJORMINOR@.la
608 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_SOURCES = glib-mainloop.h glib-mainloop.c
609 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
610 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-mainloop-@PA_MAJORMINOR@.la $(GLIB20_LIBS)
611 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
613 mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
614 mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
615 mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpolyp-mainloop-glib-@PA_MAJORMINOR@.la
623 libpolyp-mainloop-glib12-@PA_MAJORMINOR@.la
628 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_SOURCES = glib-mainloop.h glib12-mainloop.c
629 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(GLIB12_CFLAGS)
630 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-mainloop-@PA_MAJORMINOR@.la $(GLIB12_LIBS)
631 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
633 mainloop_test_glib12_SOURCES = $(mainloop_test_SOURCES)
634 mainloop_test_glib12_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB12_CFLAGS) -DGLIB_MAIN_LOOP
635 mainloop_test_glib12_LDADD = $(mainloop_test_LDADD) $(GLIB12_LIBS) libpolyp-mainloop-glib12-@PA_MAJORMINOR@.la
639 ### libpolypcore (needs to be updated)
641 if BUILD_LIBPOLYPCORE
643 polypinclude_HEADERS+=cli-command.h\
673 lib_LTLIBRARIES+= libpolypcore.la
675 libpolypcore_la_SOURCES = idxset.c idxset.h \
678 mainloop.c mainloop.h \
679 memblock.c memblock.h \
681 sample-util.c sample-util.h \
682 memblockq.c memblockq.h \
685 source-output.c source-output.h \
686 sink-input.c sink-input.h \
690 mainloop-signal.c mainloop-signal.h \
691 mainloop-api.c mainloop-api.h \
693 hashmap.c hashmap.h \
694 namereg.c namereg.h \
696 resampler.c resampler.h \
698 memchunk.c memchunk.h \
699 sconv-s16le.c sconv-s16le.h \
700 sconv-s16be.c sconv-s16be.h \
702 modargs.c modargs.h \
703 cli-command.c cli-command.h \
704 cli-text.c cli-text.h \
705 tokenizer.c tokenizer.h \
706 dynarray.c dynarray.h
716 esdcompat.sh: esdcompat.sh.in Makefile
717 sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
718 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
719 -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
721 client.conf: client.conf.in Makefile
722 sed -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
724 default.pa: default.pa.in Makefile
725 sed -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
727 daemon.conf: daemon.conf.in Makefile
728 sed -e 's,@DLSEARCHPATH\@,$(modlibdir),g' \
729 -e 's,@DEFAULT_CONFIG_FILE\@,$(polypconfdir)/daemon.conf,g' < $< > $@
732 chown root $(DESTDIR)$(bindir)/polypaudio
733 chmod u+s $(DESTDIR)$(bindir)/polypaudio
735 $(SYMDEF_FILES): module-defs.h.m4
736 $(M4) -Dfname="$@" $< > $@