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)/polyp
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_SCRIPT_FILE=\"$(polypconfdir)/default.pa\"
28 AM_CFLAGS+=-DDEFAULT_CONFIG_FILE=\"$(polypconfdir)/daemon.conf\"
29 AM_CFLAGS+=-DDEFAULT_CLIENT_CONFIG_FILE=\"$(polypconfdir)/client.conf\"
30 AM_CFLAGS+=-DPOLYPAUDIO_BINARY=\"$(bindir)/polypaudio\"
32 AM_LDADD=$(PTHREAD_LIBS) -lm
33 AM_LIBADD=$(PTHREAD_LIBS) -lm
35 EXTRA_DIST = default.pa daemon.conf.in client.conf.in config depmod.py esdcompat.sh.in
36 bin_PROGRAMS = polypaudio pacat pactl
37 bin_SCRIPTS = esdcompat.sh
45 polypconf_DATA=default.pa daemon.conf client.conf
47 BUILT_SOURCES=polyplib-version.h
49 polypinclude_HEADERS= \
56 polyplib-introspect.h \
57 polyplib-subscribe.h \
58 polyplib-operation.h \
68 ### Warning! Due to an obscure bug in libtool/automake it is required
69 ### that the libraries in modlib_LTLIBRARIES are specified in-order,
70 ### i.e. libraries near the end of the list depend on libraries near
71 ### 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 \
109 libpolyp-@PA_MAJORMINOR@.la \
110 libpolyp-error-@PA_MAJORMINOR@.la \
111 libpolyp-mainloop-@PA_MAJORMINOR@.la \
112 libpolyp-simple-@PA_MAJORMINOR@.la
114 polypaudio_SOURCES = idxset.c idxset.h \
118 mainloop.c mainloop.h \
119 memblock.c memblock.h \
121 sample-util.c sample-util.h \
122 memblockq.c memblockq.h \
125 source-output.c source-output.h \
126 sink-input.c sink-input.h \
130 mainloop-signal.c mainloop-signal.h \
131 mainloop-api.c mainloop-api.h \
133 hashmap.c hashmap.h \
134 namereg.c namereg.h \
136 resampler.c resampler.h \
138 memchunk.c memchunk.h \
139 sconv-s16le.c sconv-s16le.h \
140 sconv-s16be.c sconv-s16be.h \
142 modargs.c modargs.h \
143 cmdline.c cmdline.h \
144 cli-command.c cli-command.h \
145 cli-text.c cli-text.h \
146 tokenizer.c tokenizer.h \
147 dynarray.c dynarray.h \
149 sound-file.c sound-file.h \
150 play-memchunk.c play-memchunk.h \
151 autoload.c autoload.h \
152 xmalloc.c xmalloc.h \
153 subscribe.h subscribe.c \
155 sound-file-stream.c sound-file-stream.h \
156 cpulimit.c cpulimit.h \
159 modinfo.c modinfo.h \
161 dumpmodules.c dumpmodules.h \
162 conparser.h confparser.c
164 polypaudio_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSNDFILE_CFLAGS)
165 polypaudio_INCLUDES = $(INCLTDL)
166 polypaudio_LDADD = $(AM_LDADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(LEXLIB)
167 polypaudio_LDFLAGS=-export-dynamic
169 libprotocol_simple_la_SOURCES = protocol-simple.c protocol-simple.h
170 libprotocol_simple_la_LDFLAGS = -avoid-version
171 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la
173 libsocket_server_la_SOURCES = socket-server.c socket-server.h
174 libsocket_server_la_LDFLAGS = -avoid-version
175 libsocket_server_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la
177 libsocket_client_la_SOURCES = socket-client.c socket-client.h
178 libsocket_client_la_LDFLAGS = -avoid-version
179 libsocket_client_la_LIBADD = $(AM_LIBADD) libiochannel.la libsocket-util.la
181 libpstream_la_SOURCES = pstream.c pstream.h
182 libpstream_la_LDFLAGS = -avoid-version
183 libpstream_la_LIBADD = $(AM_LIBADD) libpacket.la libiochannel.la
185 libpstream_util_la_SOURCES = pstream-util.c pstream-util.h
186 libpstream_util_la_LDFLAGS = -avoid-version
187 libpstream_util_la_LIBADD = $(AM_LIBADD) libpacket.la libpstream.la libtagstruct.la
189 libpdispatch_la_SOURCES = pdispatch.c pdispatch.h
190 libpdispatch_la_LDFLAGS = -avoid-version
191 libpdispatch_la_LIBADD = $(AM_LIBADD) libtagstruct.la
193 libiochannel_la_SOURCES = iochannel.c iochannel.h
194 libiochannel_la_LDFLAGS = -avoid-version
195 libiochannel_la_LIBADD = $(AM_LIBADD) libsocket-util.la
197 libpacket_la_SOURCES = packet.c packet.h
198 libpacket_la_LDFLAGS = -avoid-version
200 liboss_util_la_SOURCES = oss-util.c oss-util.h
201 liboss_util_la_LDFLAGS = -avoid-version
203 libioline_la_SOURCES = ioline.c ioline.h
204 libioline_la_LDFLAGS = -avoid-version
205 libioline_la_LIBADD = $(AM_LIBADD) libiochannel.la
207 libcli_la_SOURCES = cli.c cli.h
208 libcli_la_LDFLAGS = -avoid-version
209 libcli_la_LIBADD = $(AM_LIBADD) libiochannel.la libioline.la
211 libprotocol_cli_la_SOURCES = protocol-cli.c protocol-cli.h
212 libprotocol_cli_la_LDFLAGS = -avoid-version
213 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libcli.la
215 libprotocol_native_la_SOURCES = protocol-native.c protocol-native.h native-common.h
216 libprotocol_native_la_LDFLAGS = -avoid-version
217 libprotocol_native_la_LIBADD = $(AM_LIBADD) libsocket-server.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la
219 libtagstruct_la_SOURCES = tagstruct.c tagstruct.h
220 libtagstruct_la_LDFLAGS = -avoid-version
222 libprotocol_esound_la_SOURCES = protocol-esound.c protocol-esound.h esound.h
223 libprotocol_esound_la_LDFLAGS = -avoid-version
224 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libauthkey.la
226 libauthkey_la_SOURCES = authkey.c authkey.h
227 libauthkey_la_LDFLAGS = -avoid-version
229 libsocket_util_la_SOURCES = socket-util.c socket-util.h
230 libsocket_util_la_LDFLAGS = -avoid-version
232 module_simple_protocol_tcp_la_SOURCES = module-protocol-stub.c
233 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
234 module_simple_protocol_tcp_la_LDFLAGS = -module -avoid-version
235 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la
237 module_simple_protocol_unix_la_SOURCES = module-protocol-stub.c
238 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
239 module_simple_protocol_unix_la_LDFLAGS = -module -avoid-version
240 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-simple.la libsocket-server.la libsocket-util.la
242 module_cli_protocol_tcp_la_SOURCES = module-protocol-stub.c
243 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
244 module_cli_protocol_tcp_la_LDFLAGS = -module -avoid-version
245 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la
247 module_cli_protocol_unix_la_SOURCES = module-protocol-stub.c
248 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
249 module_cli_protocol_unix_la_LDFLAGS = -module -avoid-version
250 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-cli.la libsocket-server.la libsocket-util.la
252 module_native_protocol_tcp_la_SOURCES = module-protocol-stub.c
253 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
254 module_native_protocol_tcp_la_LDFLAGS = -module -avoid-version
255 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la
257 module_native_protocol_unix_la_SOURCES = module-protocol-stub.c
258 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
259 module_native_protocol_unix_la_LDFLAGS = -module -avoid-version
260 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la libsocket-util.la
262 module_native_protocol_fd_la_SOURCES = module-native-protocol-fd.c
263 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
264 module_native_protocol_fd_la_LDFLAGS = -module -avoid-version
265 module_native_protocol_fd_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libsocket-server.la libsocket-util.la
267 module_esound_protocol_tcp_la_SOURCES = module-protocol-stub.c
268 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
269 module_esound_protocol_tcp_la_LDFLAGS = -module -avoid-version
270 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la
272 module_esound_protocol_unix_la_SOURCES = module-protocol-stub.c
273 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
274 module_esound_protocol_unix_la_LDFLAGS = -module -avoid-version
275 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libprotocol-esound.la libsocket-server.la libsocket-util.la
277 module_pipe_sink_la_SOURCES = module-pipe-sink.c
278 module_pipe_sink_la_LDFLAGS = -module -avoid-version
279 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libiochannel.la
281 module_pipe_source_la_SOURCES = module-pipe-source.c
282 module_pipe_source_la_LDFLAGS = -module -avoid-version
283 module_pipe_source_la_LIBADD = $(AM_LIBADD) libiochannel.la
285 module_oss_la_SOURCES = module-oss.c
286 module_oss_la_LDFLAGS = -module -avoid-version
287 module_oss_la_LIBADD = $(AM_LIBADD) libiochannel.la liboss-util.la
289 module_oss_mmap_la_SOURCES = module-oss-mmap.c
290 module_oss_mmap_la_LDFLAGS = -module -avoid-version
291 module_oss_mmap_la_LIBADD = $(AM_LIBADD) liboss-util.la
293 module_cli_la_SOURCES = module-cli.c
294 module_cli_la_LDFLAGS = -module -avoid-version
295 module_cli_la_LIBADD = $(AM_LIBADD) libcli.la libiochannel.la
297 module_sine_la_SOURCES = module-sine.c
298 module_sine_la_LDFLAGS = -module -avoid-version
299 module_sine_la_LIBADD = $(AM_LIBADD)
301 module_combine_la_SOURCES = module-combine.c
302 module_combine_la_LDFLAGS = -module -avoid-version
303 module_combine_la_LIBADD = $(AM_LIBADD)
305 libpolyp_@PA_MAJORMINOR@_la_SOURCES = polyplib.h \
307 tagstruct.c tagstruct.h \
308 iochannel.c iochannel.h \
309 pstream.c pstream.h \
310 pstream-util.c pstream-util.h \
311 pdispatch.c pdispatch.h \
312 mainloop-api.c mainloop-api.h \
315 memblock.c memblock.h \
316 socket-client.c socket-client.h \
319 dynarray.c dynarray.h \
320 memchunk.c memchunk.h \
321 authkey.c authkey.h \
322 socket-util.c socket-util.h \
325 xmalloc.c xmalloc.h \
326 polyplib-operation.c polyplib-operation.h \
327 polyplib-context.c polyplib-context.h \
328 polyplib-stream.c polyplib-stream.h \
329 polyplib-introspect.c polyplib-introspect.h \
330 polyplib-scache.c polyplib-scache.h \
331 polyplib-subscribe.c polyplib-subscribe.h \
332 polyplib-internal.h \
337 config-client.c config-client.h \
338 confparser.c confparser.h
340 libpolyp_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
341 libpolyp_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
343 libpolyp_mainloop_@PA_MAJORMINOR@_la_SOURCES = mainloop-api.h mainloop-api.c \
344 mainloop.c mainloop.h \
345 mainloop-signal.c mainloop-signal.h
346 libpolyp_mainloop_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
347 libpolyp_mainloop_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la
348 libpolyp_mainloop_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
350 libpolyp_error_@PA_MAJORMINOR@_la_SOURCES = polyplib-error.c polyplib-error.h
351 libpolyp_error_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
352 libpolyp_error_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la
353 libpolyp_error_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
355 libpolyp_simple_@PA_MAJORMINOR@_la_SOURCES = polyplib-simple.c polyplib-simple.h
356 libpolyp_simple_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
357 libpolyp_simple_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
358 libpolyp_simple_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
360 pacat_SOURCES = pacat.c
361 pacat_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la
362 pacat_CFLAGS = $(AM_CFLAGS)
364 pactl_SOURCES = pactl.c
365 pactl_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la libpolyp-mainloop-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
366 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSDNFILE_CFLAGS)
368 pacat_simple_SOURCES = pacat-simple.c
369 pacat_simple_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-simple-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la
370 pacat_simple_CFLAGS = $(AM_CFLAGS)
372 parec_simple_SOURCES = parec-simple.c
373 parec_simple_LDADD = $(AM_LDADD) libpolyp-@PA_MAJORMINOR@.la libpolyp-simple-@PA_MAJORMINOR@.la libpolyp-error-@PA_MAJORMINOR@.la
374 parec_simple_CFLAGS = $(AM_CFLAGS)
376 mainloop_test_SOURCES = mainloop-test.c
377 mainloop_test_CFLAGS = $(AM_CFLAGS)
378 mainloop_test_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la libpolyp-@PA_MAJORMINOR@.la
380 cpulimit_test_SOURCES = cpulimit-test.c cpulimit.c util.c log.c
381 cpulimit_test_CFLAGS = $(AM_CFLAGS)
382 cpulimit_test_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la
384 cpulimit_test2_SOURCES = cpulimit-test.c cpulimit.c util.c log.c
385 cpulimit_test2_CFLAGS = $(AM_CFLAGS) -DTEST2
386 cpulimit_test2_LDADD = $(AM_LDADD) libpolyp-mainloop-@PA_MAJORMINOR@.la
391 modlib_LTLIBRARIES+= \
394 module_x11_bell_la_SOURCES = module-x11-bell.c
395 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
396 module_x11_bell_la_LDFLAGS = -module -avoid-version
397 module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIB)
403 modlib_LTLIBRARIES+= \
405 module-alsa-sink.la \
406 module-alsa-source.la
408 libalsa_util_la_SOURCES = alsa-util.c alsa-util.h
409 libalsa_util_la_LDFLAGS = -avoid-version
410 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS)
411 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
413 module_alsa_sink_la_SOURCES = module-alsa-sink.c
414 module_alsa_sink_la_LDFLAGS = -module -avoid-version
415 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
416 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
418 module_alsa_source_la_SOURCES = module-alsa-source.c
419 module_alsa_source_la_LDFLAGS = -module -avoid-version
420 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
421 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
428 libpolyp-mainloop-glib-@PA_MAJORMINOR@.la
433 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_SOURCES = glib-mainloop.h glib-mainloop.c
434 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
435 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-mainloop-@PA_MAJORMINOR@.la $(GLIB20_LIBS)
436 libpolyp_mainloop_glib_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
438 mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
439 mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
440 mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpolyp-mainloop-glib-@PA_MAJORMINOR@.la
448 libpolyp-mainloop-glib12-@PA_MAJORMINOR@.la
452 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_SOURCES = glib-mainloop.h glib12-mainloop.c
453 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(GLIB12_CFLAGS)
454 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp-mainloop-@PA_MAJORMINOR@.la $(GLIB12_LIBS)
455 libpolyp_mainloop_glib12_@PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
457 mainloop_test_glib12_SOURCES = $(mainloop_test_SOURCES)
458 mainloop_test_glib12_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB12_CFLAGS) -DGLIB_MAIN_LOOP
459 mainloop_test_glib12_LDADD = $(mainloop_test_LDADD) $(GLIB12_LIBS) libpolyp-mainloop-glib12-@PA_MAJORMINOR@.la
463 ### libpolypcore (needs to be updated)
465 if BUILD_LIBPOLYPCORE
467 polypinclude_HEADERS+=cli-command.h\
497 lib_LTLIBRARIES+= libpolypcore.la
499 libpolypcore_la_SOURCES = idxset.c idxset.h \
502 mainloop.c mainloop.h \
503 memblock.c memblock.h \
505 sample-util.c sample-util.h \
506 memblockq.c memblockq.h \
509 source-output.c source-output.h \
510 sink-input.c sink-input.h \
514 mainloop-signal.c mainloop-signal.h \
515 mainloop-api.c mainloop-api.h \
517 hashmap.c hashmap.h \
518 namereg.c namereg.h \
520 resampler.c resampler.h \
522 memchunk.c memchunk.h \
523 sconv-s16le.c sconv-s16le.h \
524 sconv-s16be.c sconv-s16be.h \
526 modargs.c modargs.h \
527 cli-command.c cli-command.h \
528 cli-text.c cli-text.h \
529 tokenizer.c tokenizer.h \
530 dynarray.c dynarray.h
540 esdcompat.sh: esdcompat.sh.in Makefile
541 sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
542 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
543 -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
545 client.conf: client.conf.in Makefile
546 sed -e 's,@POLYPAUDIO_BINARY\@,$(bindir)/polypaudio,g' < $< > $@
548 daemon.conf: daemon.conf.in Makefile
549 sed -e 's,@DLSEARCHPATH\@,$(modlibdir),g' \
550 -e 's,@DEFAULT_CONFIG_FILE\@,$(polypconfdir)/daemon.conf,g' < $< > $@
553 chown root:root $(DESTDIR)$(bindir)/polypaudio
554 chmod u+s $(DESTDIR)$(bindir)/polypaudio