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 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 AM_LDADD=$(PTHREAD_LIBS) -lm
31 AM_LIBADD=$(PTHREAD_LIBS) -lm
33 EXTRA_DIST = default.pa.in daemon.conf.in client.conf.in depmod.py esdcompat.sh.in module-defs.h.m4
34 bin_PROGRAMS = polypaudio pacat pactl paplay
35 bin_SCRIPTS = esdcompat.sh
44 polypconf_DATA=default.pa daemon.conf client.conf
46 BUILT_SOURCES=polyplib-version.h
48 polypinclude_HEADERS= \
55 polyplib-introspect.h \
56 polyplib-subscribe.h \
57 polyplib-operation.h \
67 ### Warning! Due to an obscure bug in libtool/automake it is required
68 ### that the libraries in modlib_LTLIBRARIES are specified in-order,
69 ### i.e. libraries near the end of the list depend on libraries near
70 ### the head, and not the other way!
88 libprotocol-simple.la \
89 libprotocol-esound.la \
90 libprotocol-native.la \
92 module-cli-protocol-tcp.la \
93 module-cli-protocol-unix.la \
95 module-pipe-source.la \
98 module-simple-protocol-tcp.la \
99 module-simple-protocol-unix.la \
100 module-esound-protocol-tcp.la \
101 module-esound-protocol-unix.la \
102 module-native-protocol-tcp.la \
103 module-native-protocol-unix.la \
104 module-native-protocol-fd.la \
107 module-esound-compat-spawnfd.la \
108 module-esound-compat-spawnpid.la \
110 module-tunnel-sink.la \
111 module-tunnel-source.la \
115 module-cli-symdef.h \
116 module-cli-protocol-tcp-symdef.h \
117 module-cli-protocol-unix-symdef.h \
118 module-pipe-sink-symdef.h \
119 module-pipe-source-symdef.h \
120 module-oss-symdef.h \
121 module-oss-mmap-symdef.h \
122 module-simple-protocol-tcp-symdef.h \
123 module-simple-protocol-unix-symdef.h \
124 module-esound-protocol-tcp-symdef.h \
125 module-esound-protocol-unix-symdef.h \
126 module-native-protocol-tcp-symdef.h \
127 module-native-protocol-unix-symdef.h \
128 module-native-protocol-fd-symdef.h \
129 module-sine-symdef.h \
130 module-combine-symdef.h \
131 module-esound-compat-spawnfd-symdef.h \
132 module-esound-compat-spawnpid-symdef.h \
133 module-match-symdef.h \
134 module-tunnel-sink-symdef.h \
135 module-tunnel-source-symdef.h \
136 module-null-sink-symdef.h
138 EXTRA_DIST+=$(SYMDEF_FILES)
139 BUILT_SOURCES+=$(SYMDEF_FILES)
142 libpolyp-@PA_MAJORMINOR@.la \
143 libpolyp-error-@PA_MAJORMINOR@.la \
144 libpolyp-mainloop-@PA_MAJORMINOR@.la \
145 libpolyp-simple-@PA_MAJORMINOR@.la
147 polypaudio_SOURCES = idxset.c idxset.h \
151 mainloop.c mainloop.h \
152 memblock.c memblock.h \
154 sample-util.c sample-util.h \
155 memblockq.c memblockq.h \
158 source-output.c source-output.h \
159 sink-input.c sink-input.h \
163 mainloop-signal.c mainloop-signal.h \
164 mainloop-api.c mainloop-api.h \
166 hashmap.c hashmap.h \
167 namereg.c namereg.h \
169 resampler.c resampler.h \
171 memchunk.c memchunk.h \
172 sconv-s16le.c sconv-s16le.h \
173 sconv-s16be.c sconv-s16be.h \
175 modargs.c modargs.h \
176 cmdline.c cmdline.h \
177 cli-command.c cli-command.h \
178 cli-text.c cli-text.h \
179 tokenizer.c tokenizer.h \
180 dynarray.c dynarray.h \
182 sound-file.c sound-file.h \
183 play-memchunk.c play-memchunk.h \
184 autoload.c autoload.h \
185 xmalloc.c xmalloc.h \
186 subscribe.h subscribe.c \
188 sound-file-stream.c sound-file-stream.h \
189 cpulimit.c cpulimit.h \
192 modinfo.c modinfo.h \
193 daemon-conf.c daemon-conf.h \
194 dumpmodules.c dumpmodules.h \
195 conf-parser.h conf-parser.c \
199 polypaudio_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSNDFILE_CFLAGS)
200 polypaudio_INCLUDES = $(INCLTDL)
201 polypaudio_LDADD = $(AM_LDADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS)
202 polypaudio_LDFLAGS= -export-dynamic -dlopen force
203 # -static $(foreach f,$(modlib_LTLIBRARIES),-dlpreopen $(f))
205 libprotocol_simple_la_SOURCES = protocol-simple.c protocol-simple.h
206 libprotocol_simple_la_LDFLAGS = -avoid-version
207 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la
209 libsocket_server_la_SOURCES = socket-server.c socket-server.h
210 libsocket_server_la_LDFLAGS = -avoid-version
211 libsocket_server_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la $(LIBWRAP_LIBS)
213 libsocket_client_la_SOURCES = socket-client.c socket-client.h
214 libsocket_client_la_LDFLAGS = -avoid-version
215 libsocket_client_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la
217 libpstream_la_SOURCES = pstream.c pstream.h
218 libpstream_la_LDFLAGS = -avoid-version
219 libpstream_la_LIBADD = $(AM_LIBADD) libpacket.la libiochannel.la
221 libpstream_util_la_SOURCES = pstream-util.c pstream-util.h
222 libpstream_util_la_LDFLAGS = -avoid-version
223 libpstream_util_la_LIBADD = $(AM_LIBADD) libpacket.la libpstream.la libtagstruct.la
225 libpdispatch_la_SOURCES = pdispatch.c pdispatch.h
226 libpdispatch_la_LDFLAGS = -avoid-version
227 libpdispatch_la_LIBADD = $(AM_LIBADD) libtagstruct.la
229 libiochannel_la_SOURCES = iochannel.c iochannel.h
230 libiochannel_la_LDFLAGS = -avoid-version
231 libiochannel_la_LIBADD = $(AM_LIBADD) libsocket-util.la
233 libpacket_la_SOURCES = packet.c packet.h
234 libpacket_la_LDFLAGS = -avoid-version
236 liboss_util_la_SOURCES = oss-util.c oss-util.h
237 liboss_util_la_LDFLAGS = -avoid-version
239 libioline_la_SOURCES = ioline.c ioline.h
240 libioline_la_LDFLAGS = -avoid-version
241 libioline_la_LIBADD = $(AM_LIBADD) libiochannel.la
243 libcli_la_SOURCES = cli.c cli.h
244 libcli_la_LDFLAGS = -avoid-version
245 libcli_la_LIBADD = $(AM_LIBADD) libiochannel.la libioline.la
247 libprotocol_cli_la_SOURCES = protocol-cli.c protocol-cli.h
248 libprotocol_cli_la_LDFLAGS = -avoid-version
249 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libcli.la
251 libprotocol_native_la_SOURCES = protocol-native.c protocol-native.h native-common.h
252 libprotocol_native_la_LDFLAGS = -avoid-version
253 libprotocol_native_la_LIBADD = $(AM_LIBADD) libsocket-server.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la libauthkey-prop.la
255 libtagstruct_la_SOURCES = tagstruct.c tagstruct.h
256 libtagstruct_la_LDFLAGS = -avoid-version
258 libprotocol_esound_la_SOURCES = protocol-esound.c protocol-esound.h esound.h
259 libprotocol_esound_la_LDFLAGS = -avoid-version
260 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libauthkey.la
262 libauthkey_la_SOURCES = authkey.c authkey.h
263 libauthkey_la_LDFLAGS = -avoid-version
265 libauthkey_prop_la_SOURCES = authkey-prop.c authkey-prop.h
266 libauthkey_prop_la_LDFLAGS = -avoid-version
268 libsocket_util_la_SOURCES = socket-util.c socket-util.h
269 libsocket_util_la_LDFLAGS = -avoid-version
271 module_simple_protocol_tcp_la_SOURCES = module-protocol-stub.c
272 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
273 module_simple_protocol_tcp_la_LDFLAGS = -module -avoid-version
274 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la
276 module_simple_protocol_unix_la_SOURCES = module-protocol-stub.c
277 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
278 module_simple_protocol_unix_la_LDFLAGS = -module -avoid-version
279 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la libsocket-util.la
281 module_cli_protocol_tcp_la_SOURCES = module-protocol-stub.c
282 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
283 module_cli_protocol_tcp_la_LDFLAGS = -module -avoid-version
284 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la
286 module_cli_protocol_unix_la_SOURCES = module-protocol-stub.c
287 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
288 module_cli_protocol_unix_la_LDFLAGS = -module -avoid-version
289 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la libsocket-util.la
291 module_native_protocol_tcp_la_SOURCES = module-protocol-stub.c
292 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
293 module_native_protocol_tcp_la_LDFLAGS = -module -avoid-version
294 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la
296 module_native_protocol_unix_la_SOURCES = module-protocol-stub.c
297 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
298 module_native_protocol_unix_la_LDFLAGS = -module -avoid-version
299 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la libsocket-util.la
301 module_native_protocol_fd_la_SOURCES = module-native-protocol-fd.c
302 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
303 module_native_protocol_fd_la_LDFLAGS = -module -avoid-version
304 module_native_protocol_fd_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la libsocket-util.la
306 module_esound_protocol_tcp_la_SOURCES = module-protocol-stub.c
307 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
308 module_esound_protocol_tcp_la_LDFLAGS = -module -avoid-version
309 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la
311 module_esound_protocol_unix_la_SOURCES = module-protocol-stub.c
312 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
313 module_esound_protocol_unix_la_LDFLAGS = -module -avoid-version
314 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la libsocket-util.la
316 module_pipe_sink_la_SOURCES = module-pipe-sink.c
317 module_pipe_sink_la_LDFLAGS = -module -avoid-version
318 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libiochannel.la
320 module_pipe_source_la_SOURCES = module-pipe-source.c
321 module_pipe_source_la_LDFLAGS = -module -avoid-version
322 module_pipe_source_la_LIBADD = $(AM_LIBADD) libiochannel.la
324 module_oss_la_SOURCES = module-oss.c
325 module_oss_la_LDFLAGS = -module -avoid-version
326 module_oss_la_LIBADD = $(AM_LIBADD) libiochannel.la liboss-util.la
328 module_oss_mmap_la_SOURCES = module-oss-mmap.c
329 module_oss_mmap_la_LDFLAGS = -module -avoid-version
330 module_oss_mmap_la_LIBADD = $(AM_LIBADD) liboss-util.la
332 module_cli_la_SOURCES = module-cli.c
333 module_cli_la_LDFLAGS = -module -avoid-version
334 module_cli_la_LIBADD = $(AM_LIBADD) libcli.la libiochannel.la
336 module_sine_la_SOURCES = module-sine.c
337 module_sine_la_LDFLAGS = -module -avoid-version
338 module_sine_la_LIBADD = $(AM_LIBADD)
340 module_combine_la_SOURCES = module-combine.c
341 module_combine_la_LDFLAGS = -module -avoid-version
342 module_combine_la_LIBADD = $(AM_LIBADD)
344 module_null_sink_la_SOURCES = module-null-sink.c
345 module_null_sink_la_LDFLAGS = -module -avoid-version
346 module_null_sink_la_LIBADD = $(AM_LIBADD)
348 module_match_la_SOURCES = module-match.c
349 module_match_la_LDFLAGS = -module -avoid-version
350 module_match_la_LIBADD = $(AM_LIBADD)
352 module_tunnel_sink_la_SOURCES = module-tunnel.c
353 module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS)
354 module_tunnel_sink_la_LDFLAGS = -module -avoid-version
355 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
357 module_tunnel_source_la_SOURCES = module-tunnel.c
358 module_tunnel_source_la_LDFLAGS = -module -avoid-version
359 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
361 module_esound_compat_spawnfd_la_SOURCES = module-esound-compat-spawnfd.c
362 module_esound_compat_spawnfd_la_LDFLAGS = -module -avoid-version
363 module_esound_compat_spawnfd_la_LIBADD = $(AM_LIBADD)
365 module_esound_compat_spawnpid_la_SOURCES = module-esound-compat-spawnpid.c
366 module_esound_compat_spawnpid_la_LDFLAGS = -module -avoid-version
367 module_esound_compat_spawnpid_la_LIBADD = $(AM_LIBADD)
369 libpolyp_@PA_MAJORMINOR@_la_SOURCES = polyplib.h \
371 tagstruct.c tagstruct.h \
372 iochannel.c iochannel.h \
373 pstream.c pstream.h \
374 pstream-util.c pstream-util.h \
375 pdispatch.c pdispatch.h \
376 mainloop-api.c mainloop-api.h \
379 memblock.c memblock.h \
380 socket-client.c socket-client.h \
383 dynarray.c dynarray.h \
384 memchunk.c memchunk.h \
385 authkey.c authkey.h \
386 socket-util.c socket-util.h \
389 xmalloc.c xmalloc.h \
390 polyplib-operation.c polyplib-operation.h \
391 polyplib-context.c polyplib-context.h \
392 polyplib-stream.c polyplib-stream.h \
393 polyplib-introspect.c polyplib-introspect.h \
394 polyplib-scache.c polyplib-scache.h \
395 polyplib-subscribe.c polyplib-subscribe.h \
396 polyplib-internal.h \
401 client-conf.c client-conf.h \
402 conf-parser.c conf-parser.h
404 libpolyp_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
405 libpolyp_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
407 libpolyp_mainloop_@PA_MAJORMINOR@_la_SOURCES = mainloop-api.h mainloop-api.c \
408 mainloop.c mainloop.h \
409 mainloop-signal.c mainloop-signal.h
410 libpolyp_mainloop_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
411 libpolyp_mainloop_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la
412 libpolyp_mainloop_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
414 libpolyp_error_@PA_MAJORMINOR@_la_SOURCES = polyplib-error.c polyplib-error.h
415 libpolyp_error_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
416 libpolyp_error_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la
417 libpolyp_error_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
419 libpolyp_simple_@PA_MAJORMINOR@_la_SOURCES = polyplib-simple.c polyplib-simple.h
420 libpolyp_simple_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
421 libpolyp_simple_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
422 libpolyp_simple_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
424 pacat_SOURCES = pacat.c
425 pacat_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
426 pacat_CFLAGS = $(AM_CFLAGS)
428 paplay_SOURCES = paplay.c
429 paplay_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
430 paplay_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
432 pactl_SOURCES = pactl.c
433 pactl_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
434 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
436 pacat_simple_SOURCES = pacat-simple.c
437 pacat_simple_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-simple-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
438 pacat_simple_CFLAGS = $(AM_CFLAGS)
440 parec_simple_SOURCES = parec-simple.c
441 parec_simple_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-simple-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
442 parec_simple_CFLAGS = $(AM_CFLAGS)
444 mainloop_test_SOURCES = mainloop-test.c
445 mainloop_test_CFLAGS = $(AM_CFLAGS)
446 mainloop_test_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la libpolyp-@PA_MAJORMINOR@.la
448 voltest_SOURCES = voltest.c sample.c
449 voltest_CFLAGS = $(AM_CFLAGS)
450 voltest_LDADD = $(AM_LDADD)
452 cpulimit_test_SOURCES = cpulimit-test.c cpulimit.c util.c log.c
453 cpulimit_test_CFLAGS = $(AM_CFLAGS)
454 cpulimit_test_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la
456 cpulimit_test2_SOURCES = cpulimit-test.c cpulimit.c util.c log.c
457 cpulimit_test2_CFLAGS = $(AM_CFLAGS) -DTEST2
458 cpulimit_test2_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la
463 modlib_LTLIBRARIES+= \
466 module-x11-publish.la
468 module-x11-bell-symdef.h \
469 module-x11-publish-symdef.h
471 libx11wrap_la_SOURCES = x11wrap.c x11wrap.h
472 libx11wrap_la_LDFLAGS = -avoid-version
473 libx11wrap_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
474 libx11wrap_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIB)
476 module_x11_bell_la_SOURCES = module-x11-bell.c
477 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
478 module_x11_bell_la_LDFLAGS = -module -avoid-version
479 module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIB) libx11wrap.la
481 module_x11_publish_la_SOURCES = module-x11-publish.c
482 module_x11_publish_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
483 module_x11_publish_la_LDFLAGS = -module -avoid-version
484 module_x11_publish_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIB) libx11wrap.la libauthkey.la libauthkey-prop.la
491 modlib_LTLIBRARIES+= \
493 module-alsa-sink.la \
494 module-alsa-source.la
496 module-alsa-sink-symdef.h \
497 module-alsa-source-symdef.h
499 libalsa_util_la_SOURCES = alsa-util.c alsa-util.h
500 libalsa_util_la_LDFLAGS = -avoid-version
501 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS)
502 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
504 module_alsa_sink_la_SOURCES = module-alsa-sink.c
505 module_alsa_sink_la_LDFLAGS = -module -avoid-version
506 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
507 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
509 module_alsa_source_la_SOURCES = module-alsa-source.c
510 module_alsa_source_la_LDFLAGS = -module -avoid-version
511 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
512 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
519 libpolyp-mainloop-glib-@PA_MAJORMINOR@.la
524 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_SOURCES = glib-mainloop.h glib-mainloop.c
525 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
526 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-mainloop-@PA_MAJORMINOR@.la $(GLIB20_LIBS)
527 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
529 mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
530 mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
531 mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpolyp-mainloop-glib-@PA_MAJORMINOR@.la
539 libpolyp-mainloop-glib12-@PA_MAJORMINOR@.la
544 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_SOURCES = glib-mainloop.h glib12-mainloop.c
545 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(GLIB12_CFLAGS)
546 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-mainloop-@PA_MAJORMINOR@.la $(GLIB12_LIBS)
547 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
549 mainloop_test_glib12_SOURCES = $(mainloop_test_SOURCES)
550 mainloop_test_glib12_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB12_CFLAGS) -DGLIB_MAIN_LOOP
551 mainloop_test_glib12_LDADD = $(mainloop_test_LDADD) $(GLIB12_LIBS) libpolyp-mainloop-glib12-@PA_MAJORMINOR@.la
555 ### libpolypcore (needs to be updated)
557 if BUILD_LIBPOLYPCORE
559 polypinclude_HEADERS+=cli-command.h\
589 lib_LTLIBRARIES+= libpolypcore.la
591 libpolypcore_la_SOURCES = idxset.c idxset.h \
594 mainloop.c mainloop.h \
595 memblock.c memblock.h \
597 sample-util.c sample-util.h \
598 memblockq.c memblockq.h \
601 source-output.c source-output.h \
602 sink-input.c sink-input.h \
606 mainloop-signal.c mainloop-signal.h \
607 mainloop-api.c mainloop-api.h \
609 hashmap.c hashmap.h \
610 namereg.c namereg.h \
612 resampler.c resampler.h \
614 memchunk.c memchunk.h \
615 sconv-s16le.c sconv-s16le.h \
616 sconv-s16be.c sconv-s16be.h \
618 modargs.c modargs.h \
619 cli-command.c cli-command.h \
620 cli-text.c cli-text.h \
621 tokenizer.c tokenizer.h \
622 dynarray.c dynarray.h
632 esdcompat.sh: esdcompat.sh.in Makefile
633 sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
634 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
635 -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
637 client.conf: client.conf.in Makefile
638 sed -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
640 default.pa: default.pa.in Makefile
641 sed -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
643 daemon.conf: daemon.conf.in Makefile
644 sed -e 's,@DLSEARCHPATH\@,$(modlibdir),g' \
645 -e 's,@DEFAULT_CONFIG_FILE\@,$(polypconfdir)/daemon.conf,g' < $< > $@
648 chown root $(DESTDIR)$(bindir)/polypaudio
649 chmod u+s $(DESTDIR)$(bindir)/polypaudio
651 $(SYMDEF_FILES): module-defs.h.m4
652 $(M4) -Dfname="$@" $< > $@