1 # This file is part of PulseAudio.
3 # Copyright 2004-2006 Lennart Poettering
4 # Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
5 # Copyright 2006 Diego Pettenò
7 # PulseAudio is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # PulseAudio is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with PulseAudio; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 ###################################
24 ###################################
26 pulseincludedir=$(includedir)/pulse
27 pulsecoreincludedir=$(includedir)/pulsecore
28 pulselibexecdir=$(libexecdir)/pulse
30 xdgautostartdir=$(sysconfdir)/xdg/autostart
33 alsaprofilesetsdir=$(datadir)/pulseaudio/alsa-mixer/profile-sets
34 alsapathsdir=$(datadir)/pulseaudio/alsa-mixer/paths
37 dbuspolicydir=$(sysconfdir)/dbus-1/system.d
40 ###################################
41 # Compiler/linker flags #
42 ###################################
46 -I$(top_srcdir)/src/modules \
47 -I$(top_builddir)/src/modules \
49 -DPA_ALSA_PATHS_DIR=\"$(alsapathsdir)\" \
50 -DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\"
51 AM_CXXFLAGS = $(AM_CFLAGS)
52 SERVER_CFLAGS = -D__INCLUDED_FROM_PULSE_AUDIO
54 AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
55 AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
56 AM_LDFLAGS = $(NODELETE_LDFLAGS)
63 AM_LDFLAGS+=-Wl,--export-all-symbols,--enable-auto-import -no-undefined
64 WINSOCK_LIBS=-lwsock32 -lws2_32 -lwininet
68 AM_LDFLAGS+=-Wl,-headerpad_max_install_names -headerpad_max_install_names
73 MODULE_LDFLAGS = $(AM_LDFLAGS) -module -disable-static -avoid-version $(NOUNDEFINED_LDFLAGS)
74 MODULE_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
76 ###################################
78 ###################################
81 pulse/client.conf.in \
83 daemon/daemon.conf.in \
84 daemon/default.pa.in \
88 daemon/start-pulseaudio-x11.in \
89 daemon/start-pulseaudio-kde.in \
92 modules/module-defs.h.m4 \
93 daemon/pulseaudio.desktop.in \
94 daemon/pulseaudio-kde.desktop.in \
96 daemon/pulseaudio-system.conf \
97 modules/echo-cancel/adrian-license.txt
107 daemon/pulseaudio-system.conf
111 xdgautostart_in_files = \
112 daemon/pulseaudio.desktop.in \
113 daemon/pulseaudio-kde.desktop.in
114 xdgautostart_DATA = $(xdgautostart_in_files:.desktop.in=.desktop)
115 @INTLTOOL_DESKTOP_RULE@
119 ###################################
121 ###################################
125 include $(top_srcdir)/orc.mak
128 ###################################
130 ###################################
132 bin_PROGRAMS = pulseaudio
134 pulseaudio_SOURCES = \
135 daemon/caps.c daemon/caps.h \
136 daemon/cmdline.c daemon/cmdline.h \
137 daemon/cpulimit.c daemon/cpulimit.h \
138 daemon/daemon-conf.c daemon/daemon-conf.h \
139 daemon/dumpmodules.c daemon/dumpmodules.h \
140 daemon/ltdl-bind-now.c daemon/ltdl-bind-now.h \
143 pulseaudio_CFLAGS = $(AM_CFLAGS) $(CAP_CFLAGS)
144 pulseaudio_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(LIBLTDL) $(CAP_LIBS)
145 # This is needed because automake doesn't properly expand the foreach below
146 pulseaudio_DEPENDENCIES = libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(PREOPEN_LIBS)
149 pulseaudio_CFLAGS += $(DBUS_CFLAGS)
150 pulseaudio_SOURCES += daemon/server-lookup.c daemon/server-lookup.h
151 pulseaudio_LDADD += $(DBUS_LIBS)
155 PREOPEN_LIBS = $(PREOPEN_MODS)
157 PREOPEN_LIBS = $(modlibexec_LTLIBRARIES)
161 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(IMMEDIATE_LDFLAGS) -dlpreopen force $(foreach f,$(PREOPEN_LIBS),-dlpreopen $(f))
163 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(IMMEDIATE_LDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
166 ###################################
168 ###################################
170 bin_SCRIPTS = esdcompat
177 bin_PROGRAMS += pasuspender
181 bin_PROGRAMS += pacmd
185 bin_PROGRAMS += pax11publish
186 bin_SCRIPTS += start-pulseaudio-x11 start-pulseaudio-kde
189 pacat_SOURCES = utils/pacat.c
190 pacat_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
191 pacat_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
192 pacat_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
194 pactl_SOURCES = utils/pactl.c
195 pactl_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
196 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
197 pactl_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
199 pasuspender_SOURCES = utils/pasuspender.c
200 pasuspender_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
201 pasuspender_CFLAGS = $(AM_CFLAGS)
202 pasuspender_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
204 pacmd_SOURCES = utils/pacmd.c
205 pacmd_CFLAGS = $(AM_CFLAGS)
206 pacmd_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
207 pacmd_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
209 pax11publish_SOURCES = utils/pax11publish.c
210 pax11publish_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
211 pax11publish_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(X11_LIBS)
212 pax11publish_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
214 ###################################
216 ###################################
224 thread-mainloop-test \
227 get-binary-name-test \
254 # These tests need a running pulseaudio daemon
293 TESTS_ENVIRONMENT=MAKE_CHECK=1
294 TESTS = $(TESTS_default)
296 if BUILD_TESTS_DEFAULT
297 noinst_PROGRAMS = $(TESTS_default) $(TESTS_norun) $(TESTS_daemon)
299 check_PROGRAMS = $(TESTS_default) $(TESTS_norun) $(TESTS_daemon)
303 $(MAKE) check TESTS="$(TESTS_daemon)"
305 mainloop_test_SOURCES = tests/mainloop-test.c
306 mainloop_test_CFLAGS = $(AM_CFLAGS)
307 mainloop_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
308 mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
310 thread_mainloop_test_SOURCES = tests/thread-mainloop-test.c
311 thread_mainloop_test_CFLAGS = $(AM_CFLAGS)
312 thread_mainloop_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
313 thread_mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
315 utf8_test_SOURCES = tests/utf8-test.c
316 utf8_test_CFLAGS = $(AM_CFLAGS)
317 utf8_test_LDADD = $(AM_LDADD) libpulse.la
318 utf8_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
320 format_test_SOURCES = tests/format-test.c
321 format_test_CFLAGS = $(AM_CFLAGS)
322 format_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
323 format_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
325 get_binary_name_test_SOURCES = tests/get-binary-name-test.c
326 get_binary_name_test_CFLAGS = $(AM_CFLAGS)
327 get_binary_name_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
328 get_binary_name_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
330 ipacl_test_SOURCES = tests/ipacl-test.c
331 ipacl_test_CFLAGS = $(AM_CFLAGS)
332 ipacl_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
333 ipacl_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
335 hook_list_test_SOURCES = tests/hook-list-test.c
336 hook_list_test_CFLAGS = $(AM_CFLAGS)
337 hook_list_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
338 hook_list_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
340 memblock_test_SOURCES = tests/memblock-test.c
341 memblock_test_CFLAGS = $(AM_CFLAGS)
342 memblock_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
343 memblock_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
345 thread_test_SOURCES = tests/thread-test.c
346 thread_test_CFLAGS = $(AM_CFLAGS)
347 thread_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
348 thread_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
350 once_test_SOURCES = tests/once-test.c
351 once_test_CFLAGS = $(AM_CFLAGS)
352 once_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
353 once_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
355 flist_test_SOURCES = tests/flist-test.c
356 flist_test_CFLAGS = $(AM_CFLAGS)
357 flist_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
358 flist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
360 asyncq_test_SOURCES = tests/asyncq-test.c
361 asyncq_test_CFLAGS = $(AM_CFLAGS)
362 asyncq_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
363 asyncq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
365 asyncmsgq_test_SOURCES = tests/asyncmsgq-test.c
366 asyncmsgq_test_CFLAGS = $(AM_CFLAGS)
367 asyncmsgq_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
368 asyncmsgq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
370 queue_test_SOURCES = tests/queue-test.c
371 queue_test_CFLAGS = $(AM_CFLAGS)
372 queue_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
373 queue_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
375 rtpoll_test_SOURCES = tests/rtpoll-test.c
376 rtpoll_test_CFLAGS = $(AM_CFLAGS)
377 rtpoll_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
378 rtpoll_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
380 mcalign_test_SOURCES = tests/mcalign-test.c
381 mcalign_test_CFLAGS = $(AM_CFLAGS)
382 mcalign_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
383 mcalign_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
385 pacat_simple_SOURCES = tests/pacat-simple.c
386 pacat_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la
387 pacat_simple_CFLAGS = $(AM_CFLAGS)
388 pacat_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
390 parec_simple_SOURCES = tests/parec-simple.c
391 parec_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la
392 parec_simple_CFLAGS = $(AM_CFLAGS)
393 parec_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
395 extended_test_SOURCES = tests/extended-test.c
396 extended_test_LDADD = $(AM_LDADD) libpulse.la
397 extended_test_CFLAGS = $(AM_CFLAGS)
398 extended_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
400 strlist_test_SOURCES = tests/strlist-test.c
401 strlist_test_CFLAGS = $(AM_CFLAGS)
402 strlist_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
403 strlist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
405 close_test_SOURCES = tests/close-test.c
406 close_test_CFLAGS = $(AM_CFLAGS)
407 close_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
408 close_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
410 volume_test_SOURCES = tests/volume-test.c
411 volume_test_CFLAGS = $(AM_CFLAGS)
412 volume_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
413 volume_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
415 channelmap_test_SOURCES = tests/channelmap-test.c
416 channelmap_test_CFLAGS = $(AM_CFLAGS)
417 channelmap_test_LDADD = $(AM_LDADD) libpulse.la
418 channelmap_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
420 cpulimit_test_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
421 cpulimit_test_CFLAGS = $(AM_CFLAGS)
422 cpulimit_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
423 cpulimit_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
425 cpulimit_test2_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
426 cpulimit_test2_CFLAGS = $(AM_CFLAGS) -DTEST2
427 cpulimit_test2_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
428 cpulimit_test2_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
430 mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
431 mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
432 mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpulse-mainloop-glib.la
433 mainloop_test_glib_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
435 memblockq_test_SOURCES = tests/memblockq-test.c
436 memblockq_test_CFLAGS = $(AM_CFLAGS)
437 memblockq_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
438 memblockq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
440 sync_playback_SOURCES = tests/sync-playback.c
441 sync_playback_LDADD = $(AM_LDADD) libpulse.la
442 sync_playback_CFLAGS = $(AM_CFLAGS)
443 sync_playback_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
445 interpol_test_SOURCES = tests/interpol-test.c
446 interpol_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
447 interpol_test_CFLAGS = $(AM_CFLAGS)
448 interpol_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
450 sig2str_test_SOURCES = tests/sig2str-test.c
451 sig2str_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
452 sig2str_test_CFLAGS = $(AM_CFLAGS)
453 sig2str_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
455 resampler_test_SOURCES = tests/resampler-test.c
456 resampler_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
457 resampler_test_CFLAGS = $(AM_CFLAGS)
458 resampler_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
460 mix_test_SOURCES = tests/mix-test.c
461 mix_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
462 mix_test_CFLAGS = $(AM_CFLAGS)
463 mix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
465 remix_test_SOURCES = tests/remix-test.c
466 remix_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
467 remix_test_CFLAGS = $(AM_CFLAGS)
468 remix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
470 smoother_test_SOURCES = tests/smoother-test.c
471 smoother_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
472 smoother_test_CFLAGS = $(AM_CFLAGS)
473 smoother_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
475 proplist_test_SOURCES = tests/proplist-test.c
476 proplist_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
477 proplist_test_CFLAGS = $(AM_CFLAGS)
478 proplist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
480 rtstutter_SOURCES = tests/rtstutter.c
481 rtstutter_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
482 rtstutter_CFLAGS = $(AM_CFLAGS)
483 rtstutter_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
485 stripnul_SOURCES = tests/stripnul.c
486 stripnul_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
487 stripnul_CFLAGS = $(AM_CFLAGS)
488 stripnul_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
490 lock_autospawn_test_SOURCES = tests/lock-autospawn-test.c
491 lock_autospawn_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
492 lock_autospawn_test_CFLAGS = $(AM_CFLAGS)
493 lock_autospawn_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
495 sigbus_test_SOURCES = tests/sigbus-test.c
496 sigbus_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
497 sigbus_test_CFLAGS = $(AM_CFLAGS)
498 sigbus_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
500 gtk_test_SOURCES = tests/gtk-test.c
501 gtk_test_LDADD = $(AM_LDADD) $(GTK20_LIBS) libpulse-mainloop-glib.la libpulse.la
502 gtk_test_CFLAGS = $(AM_CFLAGS) $(GTK20_CFLAGS)
503 gtk_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
505 alsa_time_test_SOURCES = tests/alsa-time-test.c
506 alsa_time_test_LDADD = $(AM_LDADD) $(ASOUNDLIB_LIBS)
507 alsa_time_test_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
508 alsa_time_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
510 usergroup_test_SOURCES = tests/usergroup-test.c
511 usergroup_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
512 usergroup_test_CFLAGS = $(AM_CFLAGS)
513 usergroup_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
515 connect_stress_SOURCES = tests/connect-stress.c
516 connect_stress_LDADD = $(AM_LDADD) libpulse.la
517 connect_stress_CFLAGS = $(AM_CFLAGS)
518 connect_stress_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
520 echo_cancel_test_SOURCES = $(module_echo_cancel_la_SOURCES)
521 nodist_echo_cancel_test_SOURCES = $(nodist_module_echo_cancel_la_SOURCES)
522 echo_cancel_test_LDADD = $(module_echo_cancel_la_LIBADD)
523 echo_cancel_test_CFLAGS = $(module_echo_cancel_la_CFLAGS) -DECHO_CANCEL_TEST=1
525 echo_cancel_test_CXXFLAGS = $(module_echo_cancel_la_CXXFLAGS) -DECHO_CANCEL_TEST=1
527 echo_cancel_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
529 ###################################
531 ###################################
533 pkglib_LTLIBRARIES = \
534 libpulsecommon-@PA_MAJORMINOR@.la
536 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES = \
537 pulse/client-conf.c pulse/client-conf.h \
538 pulse/fork-detect.c pulse/fork-detect.h \
539 pulse/xmalloc.c pulse/xmalloc.h \
540 pulse/proplist.c pulse/proplist.h \
541 pulse/utf8.c pulse/utf8.h \
542 pulse/channelmap.c pulse/channelmap.h \
543 pulse/sample.c pulse/sample.h \
544 pulse/util.c pulse/util.h \
545 pulse/timeval.c pulse/timeval.h \
546 pulse/rtclock.c pulse/rtclock.h \
548 pulsecore/authkey.c pulsecore/authkey.h \
549 pulsecore/conf-parser.c pulsecore/conf-parser.h \
550 pulsecore/core-error.c pulsecore/core-error.h \
551 pulsecore/core-rtclock.c pulsecore/core-rtclock.h \
552 pulsecore/core-util.c pulsecore/core-util.h \
554 pulsecore/dynarray.c pulsecore/dynarray.h \
555 pulsecore/endianmacros.h \
556 pulsecore/flist.c pulsecore/flist.h \
557 pulsecore/hashmap.c pulsecore/hashmap.h \
558 pulsecore/i18n.c pulsecore/i18n.h \
559 pulsecore/idxset.c pulsecore/idxset.h \
560 pulsecore/arpa-inet.c pulsecore/arpa-inet.h \
561 pulsecore/iochannel.c pulsecore/iochannel.h \
562 pulsecore/ioline.c pulsecore/ioline.h \
563 pulsecore/ipacl.c pulsecore/ipacl.h \
565 pulsecore/lock-autospawn.c pulsecore/lock-autospawn.h \
566 pulsecore/log.c pulsecore/log.h \
567 pulsecore/ratelimit.c pulsecore/ratelimit.h \
569 pulsecore/mcalign.c pulsecore/mcalign.h \
570 pulsecore/memblock.c pulsecore/memblock.h \
571 pulsecore/memblockq.c pulsecore/memblockq.h \
572 pulsecore/memchunk.c pulsecore/memchunk.h \
573 pulsecore/native-common.h \
574 pulsecore/once.c pulsecore/once.h \
575 pulsecore/packet.c pulsecore/packet.h \
576 pulsecore/parseaddr.c pulsecore/parseaddr.h \
577 pulsecore/pdispatch.c pulsecore/pdispatch.h \
578 pulsecore/pid.c pulsecore/pid.h \
579 pulsecore/pipe.c pulsecore/pipe.h \
580 pulsecore/poll.c pulsecore/poll.h \
581 pulsecore/memtrap.c pulsecore/memtrap.h \
582 pulsecore/aupdate.c pulsecore/aupdate.h \
583 pulsecore/proplist-util.c pulsecore/proplist-util.h \
584 pulsecore/pstream-util.c pulsecore/pstream-util.h \
585 pulsecore/pstream.c pulsecore/pstream.h \
586 pulsecore/queue.c pulsecore/queue.h \
587 pulsecore/random.c pulsecore/random.h \
589 pulsecore/shm.c pulsecore/shm.h \
590 pulsecore/bitset.c pulsecore/bitset.h \
591 pulsecore/socket-client.c pulsecore/socket-client.h \
592 pulsecore/socket-server.c pulsecore/socket-server.h \
593 pulsecore/socket-util.c pulsecore/socket-util.h \
594 pulsecore/strbuf.c pulsecore/strbuf.h \
595 pulsecore/strlist.c pulsecore/strlist.h \
596 pulsecore/tagstruct.c pulsecore/tagstruct.h \
597 pulsecore/time-smoother.c pulsecore/time-smoother.h \
598 pulsecore/tokenizer.c pulsecore/tokenizer.h \
599 pulsecore/usergroup.c pulsecore/usergroup.h \
600 pulsecore/sndfile-util.c pulsecore/sndfile-util.h \
603 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
604 libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
605 libpulsecommon_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) $(LIBWRAP_LIBS) $(WINSOCK_LIBS) $(LTLIBICONV) $(LIBSNDFILE_LIBS)
608 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
609 pulse/client-conf-x11.c pulse/client-conf-x11.h \
610 pulsecore/x11prop.c pulsecore/x11prop.h
611 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(X11_CFLAGS)
612 libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS += $(X11_LIBS)
615 # proplist-util.h uses these header files, but not the library itself!
616 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(GLIB20_CFLAGS) $(GTK20_CFLAGS)
618 ## Please note that libpulsecommon implicitly also depends on<
619 ## libpulse! i.e. we have a cyclic dependancy here. Which is intended
620 ## since libpulse only includes stable, official APIs, while
621 ## libpulsecommon only includes unofficial APIs.
624 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
625 pulsecore/mutex-win32.c pulsecore/mutex.h \
626 pulsecore/thread-win32.c pulsecore/thread.h \
627 pulsecore/semaphore-win32.c pulsecore/semaphore.h
630 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
631 pulsecore/mutex-posix.c pulsecore/mutex.h \
632 pulsecore/thread-posix.c pulsecore/thread.h \
633 pulsecore/semaphore-osx.c pulsecore/semaphore.h
634 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += "-I/Developer/Headers/FlatCarbon/"
635 #libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS += "-framework CoreServices"
637 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
638 pulsecore/mutex-posix.c pulsecore/mutex.h \
639 pulsecore/thread-posix.c pulsecore/thread.h \
640 pulsecore/semaphore-posix.c pulsecore/semaphore.h
645 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
646 libpulsecommon_@PA_MAJORMINOR@_la_LIBADD += $(LIBASYNCNS_LIBS)
650 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += pulsecore/dllmain.c
654 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
655 pulsecore/dbus-util.c pulsecore/dbus-util.h \
656 pulsecore/rtkit.c pulsecore/rtkit.h
657 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(DBUS_CFLAGS)
658 libpulsecommon_@PA_MAJORMINOR@_la_LIBADD += $(DBUS_LIBS)
661 ###################################
663 ###################################
665 pulseinclude_HEADERS = \
671 pulse/ext-device-manager.h \
672 pulse/ext-device-restore.h \
673 pulse/ext-stream-restore.h \
677 pulse/mainloop-api.h \
678 pulse/mainloop-signal.h \
689 pulse/thread-mainloop.h \
702 pulseinclude_HEADERS += \
703 pulse/glib-mainloop.h
706 libpulse-mainloop-glib.la
710 libpulse_la_SOURCES = \
712 pulse/channelmap.c pulse/channelmap.h \
713 pulse/context.c pulse/context.h \
715 pulse/error.c pulse/error.h \
716 pulse/ext-device-manager.c pulse/ext-device-manager.h \
717 pulse/ext-device-restore.c pulse/ext-device-restore.h \
718 pulse/ext-stream-restore.c pulse/ext-stream-restore.h \
719 pulse/format.c pulse/format.h \
722 pulse/introspect.c pulse/introspect.h \
723 pulse/mainloop-api.c pulse/mainloop-api.h \
724 pulse/mainloop-signal.c pulse/mainloop-signal.h \
725 pulse/mainloop.c pulse/mainloop.h \
726 pulse/operation.c pulse/operation.h \
727 pulse/proplist.c pulse/proplist.h \
729 pulse/rtclock.c pulse/rtclock.h \
730 pulse/sample.c pulse/sample.h \
731 pulse/scache.c pulse/scache.h \
732 pulse/stream.c pulse/stream.h \
733 pulse/subscribe.c pulse/subscribe.h \
734 pulse/thread-mainloop.c pulse/thread-mainloop.h \
735 pulse/timeval.c pulse/timeval.h \
736 pulse/utf8.c pulse/utf8.h \
737 pulse/util.c pulse/util.h \
738 pulse/volume.c pulse/volume.h \
739 pulse/xmalloc.c pulse/xmalloc.h
741 libpulse_la_CFLAGS = $(AM_CFLAGS) $(LIBJSON_CFLAGS)
742 libpulse_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS) $(LTLIBICONV) $(LIBJSON_LIBS) libpulsecommon-@PA_MAJORMINOR@.la
743 libpulse_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_VERSION_INFO)
746 libpulse_la_CFLAGS += $(DBUS_CFLAGS)
747 libpulse_la_LIBADD += $(DBUS_LIBS)
750 libpulse_simple_la_SOURCES = pulse/simple.c pulse/simple.h
751 libpulse_simple_la_CFLAGS = $(AM_CFLAGS)
752 libpulse_simple_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
753 libpulse_simple_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_SIMPLE_VERSION_INFO)
755 libpulse_mainloop_glib_la_SOURCES = pulse/glib-mainloop.h pulse/glib-mainloop.c
756 libpulse_mainloop_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
757 libpulse_mainloop_glib_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(GLIB20_LIBS)
758 libpulse_mainloop_glib_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO)
760 ###################################
762 ###################################
765 padsplibdir = $(pkglibdir)
766 padsplib_LTLIBRARIES = libpulsedsp.la
770 -e "s|@pkglibdir[@]|$(pkglibdir)|g"
772 padsp: utils/padsp.in
779 libpulsedsp_la_SOURCES = utils/padsp.c
780 libpulsedsp_la_CFLAGS = $(AM_CFLAGS)
781 libpulsedsp_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
782 libpulsedsp_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version -disable-static
784 ###################################
785 # Daemon core library #
786 ###################################
788 lib_LTLIBRARIES += libpulsecore-@PA_MAJORMINOR@.la
791 libpulsecore_@PA_MAJORMINOR@_la_SOURCES = \
792 pulsecore/asyncmsgq.c pulsecore/asyncmsgq.h \
793 pulsecore/asyncq.c pulsecore/asyncq.h \
794 pulsecore/auth-cookie.c pulsecore/auth-cookie.h \
795 pulsecore/cli-command.c pulsecore/cli-command.h \
796 pulsecore/cli-text.c pulsecore/cli-text.h \
797 pulsecore/client.c pulsecore/client.h \
798 pulsecore/card.c pulsecore/card.h \
799 pulsecore/core-scache.c pulsecore/core-scache.h \
800 pulsecore/core-subscribe.c pulsecore/core-subscribe.h \
801 pulsecore/core.c pulsecore/core.h \
802 pulsecore/fdsem.c pulsecore/fdsem.h \
803 pulsecore/g711.c pulsecore/g711.h \
804 pulsecore/hook-list.c pulsecore/hook-list.h \
805 pulsecore/ltdl-helper.c pulsecore/ltdl-helper.h \
806 pulsecore/modargs.c pulsecore/modargs.h \
807 pulsecore/modinfo.c pulsecore/modinfo.h \
808 pulsecore/module.c pulsecore/module.h \
809 pulsecore/msgobject.c pulsecore/msgobject.h \
810 pulsecore/namereg.c pulsecore/namereg.h \
811 pulsecore/object.c pulsecore/object.h \
812 pulsecore/play-memblockq.c pulsecore/play-memblockq.h \
813 pulsecore/play-memchunk.c pulsecore/play-memchunk.h \
814 pulsecore/remap.c pulsecore/remap.h \
815 pulsecore/remap_mmx.c pulsecore/remap_sse.c \
816 pulsecore/resampler.c pulsecore/resampler.h \
817 pulsecore/rtpoll.c pulsecore/rtpoll.h \
818 pulsecore/sample-util.c pulsecore/sample-util.h \
820 pulsecore/cpu-arm.c pulsecore/cpu-arm.h \
821 pulsecore/cpu-x86.c pulsecore/cpu-x86.h \
822 pulsecore/cpu-orc.c pulsecore/cpu-orc.h \
823 pulsecore/svolume_c.c pulsecore/svolume_arm.c \
824 pulsecore/svolume_mmx.c pulsecore/svolume_sse.c \
825 pulsecore/sconv-s16be.c pulsecore/sconv-s16be.h \
826 pulsecore/sconv-s16le.c pulsecore/sconv-s16le.h \
827 pulsecore/sconv_sse.c \
828 pulsecore/sconv.c pulsecore/sconv.h \
829 pulsecore/shared.c pulsecore/shared.h \
830 pulsecore/sink-input.c pulsecore/sink-input.h \
831 pulsecore/sink.c pulsecore/sink.h \
832 pulsecore/device-port.c pulsecore/device-port.h \
833 pulsecore/sioman.c pulsecore/sioman.h \
834 pulsecore/sound-file-stream.c pulsecore/sound-file-stream.h \
835 pulsecore/sound-file.c pulsecore/sound-file.h \
836 pulsecore/source-output.c pulsecore/source-output.h \
837 pulsecore/source.c pulsecore/source.h \
838 pulsecore/start-child.c pulsecore/start-child.h \
839 pulsecore/thread-mq.c pulsecore/thread-mq.h \
842 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSPEEX_CFLAGS) $(LIBSNDFILE_CFLAGS) $(WINSOCK_CFLAGS)
843 libpulsecore_@PA_MAJORMINOR@_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
844 libpulsecore_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSPEEX_LIBS) $(LIBSNDFILE_LIBS) $(WINSOCK_LIBS) $(LTLIBICONV) libpulsecommon-@PA_MAJORMINOR@.la libpulse.la libpulsecore-foreign.la
847 ORC_SOURCE += pulsecore/svolume
848 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/svolume_orc.c
849 nodist_libpulsecore_@PA_MAJORMINOR@_la_SOURCES = pulsecore/svolume-orc-gen.c pulsecore/svolume-orc-gen.h
850 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(ORC_CFLAGS)
851 libpulsecore_@PA_MAJORMINOR@_la_LIBADD += $(ORC_LIBS)
855 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/x11wrap.c pulsecore/x11wrap.h
856 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(X11_CFLAGS)
857 libpulsecore_@PA_MAJORMINOR@_la_LDFLAGS += $(X11_LIBS)
861 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += \
862 pulsecore/dbus-shared.c pulsecore/dbus-shared.h \
863 pulsecore/protocol-dbus.c pulsecore/protocol-dbus.h
864 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(DBUS_CFLAGS)
865 libpulsecore_@PA_MAJORMINOR@_la_LIBADD += $(DBUS_LIBS)
869 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/database-gdbm.c
870 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(GDBM_CFLAGS)
871 libpulsecore_@PA_MAJORMINOR@_la_LIBADD += $(GDBM_LIBS)
875 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/database-tdb.c
876 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(TDB_CFLAGS)
877 libpulsecore_@PA_MAJORMINOR@_la_LIBADD += $(TDB_LIBS)
881 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/database-simple.c
884 # We split the foreign code off to not be annoyed by warnings we don't care about
885 noinst_LTLIBRARIES = libpulsecore-foreign.la
887 libpulsecore_foreign_la_SOURCES = \
888 pulsecore/ffmpeg/resample2.c pulsecore/ffmpeg/avcodec.h pulsecore/ffmpeg/dsputil.h
890 libpulsecore_foreign_la_CFLAGS = $(AM_CFLAGS) $(FOREIGN_CFLAGS)
892 ###################################
893 # Plug-in support libraries #
894 ###################################
896 ### Warning! Due to an obscure bug in libtool/automake it is required
897 ### that the libraries in modlibexec_LTLIBRARIES are specified in-order,
898 ### i.e. libraries near the end of the list depend on libraries near
899 ### the head, and not the other way!
901 modlibexec_LTLIBRARIES = \
904 libprotocol-simple.la \
905 libprotocol-http.la \
906 libprotocol-native.la
909 modlibexec_LTLIBRARIES += \
910 libprotocol-esound.la
913 # We need to emulate sendmsg/recvmsg to support this on Win32
915 modlibexec_LTLIBRARIES += \
920 modlibexec_LTLIBRARIES += \
924 libprotocol_simple_la_SOURCES = pulsecore/protocol-simple.c pulsecore/protocol-simple.h
925 libprotocol_simple_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
926 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
928 libcli_la_SOURCES = pulsecore/cli.c pulsecore/cli.h
929 libcli_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
930 libcli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
932 libprotocol_cli_la_SOURCES = pulsecore/protocol-cli.c pulsecore/protocol-cli.h
933 libprotocol_cli_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
934 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la libcli.la
936 libprotocol_http_la_SOURCES = pulsecore/protocol-http.c pulsecore/protocol-http.h pulsecore/mime-type.c pulsecore/mime-type.h
937 libprotocol_http_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
938 libprotocol_http_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
940 libprotocol_native_la_SOURCES = pulsecore/protocol-native.c pulsecore/protocol-native.h pulsecore/native-common.h
941 libprotocol_native_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS)
942 libprotocol_native_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
943 libprotocol_native_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
945 libprotocol_native_la_CFLAGS += $(DBUS_CFLAGS)
946 libprotocol_native_la_LIBADD += $(DBUS_LIBS)
950 libprotocol_esound_la_SOURCES = pulsecore/protocol-esound.c pulsecore/protocol-esound.h pulsecore/esound.h
951 libprotocol_esound_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
952 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
955 librtp_la_SOURCES = \
956 modules/rtp/rtp.c modules/rtp/rtp.h \
957 modules/rtp/sdp.c modules/rtp/sdp.h \
958 modules/rtp/sap.c modules/rtp/sap.h \
959 modules/rtp/rtsp_client.c modules/rtp/rtsp_client.h \
960 modules/rtp/headerlist.c modules/rtp/headerlist.h
961 librtp_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
962 librtp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
964 libraop_la_SOURCES = \
965 modules/raop/raop_client.c modules/raop/raop_client.h \
966 modules/raop/base64.c modules/raop/base64.h
967 libraop_la_CFLAGS = $(AM_CFLAGS) $(OPENSSL_CFLAGS) -I$(top_srcdir)/src/modules/rtp
968 libraop_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
969 libraop_la_LIBADD = $(AM_LIBADD) $(OPENSSL_LIBS) libpulsecore-@PA_MAJORMINOR@.la librtp.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
972 libavahi_wrap_la_SOURCES = pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
973 libavahi_wrap_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
974 libavahi_wrap_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
975 libavahi_wrap_la_LIBADD = $(AM_LIBADD) $(AVAHI_CFLAGS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
977 ###################################
978 # Plug-in libraries #
979 ###################################
982 # Serveral module (e.g. libalsa-util.la)
983 modlibexec_LTLIBRARIES += \
984 module-console-kit.la
987 modlibexec_LTLIBRARIES += \
989 module-cli-protocol-tcp.la \
990 module-simple-protocol-tcp.la \
991 module-null-sink.la \
992 module-null-source.la \
993 module-sine-source.la \
995 module-volume-restore.la \
996 module-device-manager.la \
997 module-device-restore.la \
998 module-stream-restore.la \
999 module-card-restore.la \
1000 module-default-device-restore.la \
1001 module-always-sink.la \
1002 module-rescue-streams.la \
1003 module-intended-roles.la \
1004 module-suspend-on-idle.la \
1005 module-echo-cancel.la \
1006 module-http-protocol-tcp.la \
1008 module-native-protocol-tcp.la \
1009 module-native-protocol-fd.la \
1011 module-combine-sink.la \
1012 module-remap-sink.la \
1013 module-ladspa-sink.la \
1014 module-tunnel-sink.la \
1015 module-tunnel-source.la \
1016 module-position-event-sounds.la \
1017 module-augment-properties.la \
1018 module-role-cork.la \
1019 module-loopback.la \
1020 module-virtual-sink.la \
1021 module-virtual-source.la \
1022 module-virtual-surround-sink.la \
1023 module-switch-on-connect.la \
1024 module-switch-on-port-available.la \
1025 module-filter-apply.la \
1026 module-filter-heuristics.la
1029 modlibexec_LTLIBRARIES += \
1030 module-esound-protocol-tcp.la \
1031 module-esound-sink.la
1034 # See comment at librtp.la above
1036 modlibexec_LTLIBRARIES += \
1037 module-rtp-send.la \
1042 modlibexec_LTLIBRARIES += \
1043 module-cli-protocol-unix.la \
1044 module-simple-protocol-unix.la \
1045 module-http-protocol-unix.la \
1046 module-native-protocol-unix.la
1048 modlibexec_LTLIBRARIES += \
1049 module-esound-protocol-unix.la
1054 modlibexec_LTLIBRARIES += \
1055 module-pipe-sink.la \
1056 module-pipe-source.la
1061 modlibexec_LTLIBRARIES += \
1062 module-esound-compat-spawnfd.la \
1063 module-esound-compat-spawnpid.la
1068 modlibexec_LTLIBRARIES += \
1073 modlibexec_LTLIBRARIES += \
1074 module-x11-bell.la \
1075 module-x11-publish.la \
1076 module-x11-xsmp.la \
1077 module-x11-cork-request.la
1081 modlibexec_LTLIBRARIES += \
1087 modlibexec_LTLIBRARIES += \
1088 module-coreaudio-detect.la \
1089 module-coreaudio-device.la
1092 pulselibexec_PROGRAMS =
1095 modlibexec_LTLIBRARIES += \
1097 module-alsa-sink.la \
1098 module-alsa-source.la \
1101 dist_alsaprofilesets_DATA = \
1102 modules/alsa/mixer/profile-sets/default.conf \
1103 modules/alsa/mixer/profile-sets/extra-hdmi.conf \
1104 modules/alsa/mixer/profile-sets/force-speaker.conf \
1105 modules/alsa/mixer/profile-sets/force-speaker-and-int-mic.conf \
1106 modules/alsa/mixer/profile-sets/maudio-fasttrack-pro.conf \
1107 modules/alsa/mixer/profile-sets/native-instruments-audio4dj.conf \
1108 modules/alsa/mixer/profile-sets/native-instruments-audio8dj.conf \
1109 modules/alsa/mixer/profile-sets/native-instruments-traktor-audio6.conf \
1110 modules/alsa/mixer/profile-sets/native-instruments-traktor-audio10.conf \
1111 modules/alsa/mixer/profile-sets/native-instruments-traktorkontrol-s4.conf \
1112 modules/alsa/mixer/profile-sets/native-instruments-korecontroller.conf \
1113 modules/alsa/mixer/profile-sets/kinect-audio.conf
1116 dist_udevrules_DATA = \
1117 modules/alsa/mixer/profile-sets/90-pulseaudio.rules
1120 dist_alsapaths_DATA = \
1121 modules/alsa/mixer/paths/analog-input-aux.conf \
1122 modules/alsa/mixer/paths/analog-input.conf \
1123 modules/alsa/mixer/paths/analog-input.conf.common \
1124 modules/alsa/mixer/paths/analog-input-fm.conf \
1125 modules/alsa/mixer/paths/analog-input-linein.conf \
1126 modules/alsa/mixer/paths/analog-input-mic.conf \
1127 modules/alsa/mixer/paths/analog-input-dock-mic.conf \
1128 modules/alsa/mixer/paths/analog-input-front-mic.conf \
1129 modules/alsa/mixer/paths/analog-input-internal-mic.conf \
1130 modules/alsa/mixer/paths/analog-input-internal-mic-always.conf \
1131 modules/alsa/mixer/paths/analog-input-rear-mic.conf \
1132 modules/alsa/mixer/paths/analog-input-mic.conf.common \
1133 modules/alsa/mixer/paths/analog-input-mic-line.conf \
1134 modules/alsa/mixer/paths/analog-input-tvtuner.conf \
1135 modules/alsa/mixer/paths/analog-input-video.conf \
1136 modules/alsa/mixer/paths/analog-output.conf \
1137 modules/alsa/mixer/paths/analog-output-speaker.conf \
1138 modules/alsa/mixer/paths/analog-output-speaker-always.conf \
1139 modules/alsa/mixer/paths/analog-output.conf.common \
1140 modules/alsa/mixer/paths/analog-output-desktop-speaker.conf \
1141 modules/alsa/mixer/paths/analog-output-headphones.conf \
1142 modules/alsa/mixer/paths/analog-output-headphones-2.conf \
1143 modules/alsa/mixer/paths/analog-output-lfe-on-mono.conf \
1144 modules/alsa/mixer/paths/analog-output-mono.conf \
1145 modules/alsa/mixer/paths/iec958-stereo-output.conf \
1146 modules/alsa/mixer/paths/hdmi-output-0.conf \
1147 modules/alsa/mixer/paths/hdmi-output-1.conf \
1148 modules/alsa/mixer/paths/hdmi-output-2.conf \
1149 modules/alsa/mixer/paths/hdmi-output-3.conf
1154 modlibexec_LTLIBRARIES += \
1159 modlibexec_LTLIBRARIES += \
1160 module-zeroconf-publish.la \
1161 module-zeroconf-discover.la
1165 modlibexec_LTLIBRARIES += \
1166 module-bonjour-publish.la
1170 modlibexec_LTLIBRARIES += \
1175 modlibexec_LTLIBRARIES += \
1176 module-xenpv-sink.la
1181 modlibexec_LTLIBRARIES += \
1182 module-mmkbd-evdev.la
1186 modlibexec_LTLIBRARIES += \
1187 module-jack-sink.la \
1188 module-jack-source.la
1191 modlibexec_LTLIBRARIES += \
1192 module-jackdbus-detect.la
1198 modlibexec_LTLIBRARIES += \
1201 pulselibexec_PROGRAMS += \
1206 modlibexec_LTLIBRARIES += \
1211 modlibexec_LTLIBRARIES += \
1212 module-hal-detect.la
1216 modlibexec_LTLIBRARIES += \
1217 module-hal-detect.la
1221 modlibexec_LTLIBRARIES += \
1222 module-udev-detect.la
1226 modlibexec_LTLIBRARIES += \
1227 module-systemd-login.la
1231 modlibexec_LTLIBRARIES += \
1232 module-rygel-media-server.la \
1233 module-dbus-protocol.la
1237 modlibexec_LTLIBRARIES += \
1238 libbluetooth-util.la \
1239 module-bluetooth-proximity.la \
1240 module-bluetooth-discover.la \
1241 libbluetooth-ipc.la \
1242 libbluetooth-sbc.la \
1243 module-bluetooth-device.la
1245 pulselibexec_PROGRAMS += \
1250 modlibexec_LTLIBRARIES += \
1254 modlibexec_LTLIBRARIES += \
1255 module-raop-discover.la
1261 modlibexec_LTLIBRARIES += \
1262 module-equalizer-sink.la
1263 bin_SCRIPTS += utils/qpaeq
1267 # These are generated by an M4 script
1269 module-cli-symdef.h \
1270 module-cli-protocol-tcp-symdef.h \
1271 module-cli-protocol-unix-symdef.h \
1272 module-pipe-sink-symdef.h \
1273 module-pipe-source-symdef.h \
1274 module-simple-protocol-tcp-symdef.h \
1275 module-simple-protocol-unix-symdef.h \
1276 module-native-protocol-tcp-symdef.h \
1277 module-native-protocol-unix-symdef.h \
1278 module-native-protocol-fd-symdef.h \
1279 module-sine-symdef.h \
1280 module-combine-symdef.h \
1281 module-combine-sink-symdef.h \
1282 module-remap-sink-symdef.h \
1283 module-ladspa-sink-symdef.h \
1284 module-equalizer-sink-symdef.h \
1285 module-match-symdef.h \
1286 module-tunnel-sink-symdef.h \
1287 module-tunnel-source-symdef.h \
1288 module-null-sink-symdef.h \
1289 module-null-source-symdef.h \
1290 module-sine-source-symdef.h \
1291 module-zeroconf-publish-symdef.h \
1292 module-zeroconf-discover-symdef.h \
1293 module-bonjour-publish-symdef.h \
1294 module-lirc-symdef.h \
1295 module-xenpv-sink-symdef.h \
1296 module-mmkbd-evdev-symdef.h \
1297 module-http-protocol-tcp-symdef.h \
1298 module-http-protocol-unix-symdef.h \
1299 module-rygel-media-server-symdef.h \
1300 module-x11-bell-symdef.h \
1301 module-x11-publish-symdef.h \
1302 module-x11-xsmp-symdef.h \
1303 module-x11-cork-request-symdef.h \
1304 module-oss-symdef.h \
1305 module-alsa-sink-symdef.h \
1306 module-alsa-source-symdef.h \
1307 module-alsa-card-symdef.h \
1308 module-coreaudio-detect-symdef.h \
1309 module-coreaudio-device-symdef.h \
1310 module-solaris-symdef.h \
1311 module-waveout-symdef.h \
1312 module-detect-symdef.h \
1313 module-rtp-send-symdef.h \
1314 module-rtp-recv-symdef.h \
1315 module-jackdbus-detect-symdef.h \
1316 module-jack-sink-symdef.h \
1317 module-jack-source-symdef.h \
1318 module-volume-restore-symdef.h \
1319 module-device-manager-symdef.h \
1320 module-device-restore-symdef.h \
1321 module-stream-restore-symdef.h \
1322 module-card-restore-symdef.h \
1323 module-default-device-restore-symdef.h \
1324 module-always-sink-symdef.h \
1325 module-rescue-streams-symdef.h \
1326 module-intended-roles-symdef.h \
1327 module-suspend-on-idle-symdef.h \
1328 module-echo-cancel-symdef.h \
1329 module-hal-detect-symdef.h \
1330 module-udev-detect-symdef.h \
1331 module-systemd-login-symdef.h \
1332 module-bluetooth-proximity-symdef.h \
1333 module-bluetooth-discover-symdef.h \
1334 module-bluetooth-device-symdef.h \
1335 module-raop-sink-symdef.h \
1336 module-raop-discover-symdef.h \
1337 module-gconf-symdef.h \
1338 module-position-event-sounds-symdef.h \
1339 module-augment-properties-symdef.h \
1340 module-role-cork-symdef.h \
1341 module-console-kit-symdef.h \
1342 module-dbus-protocol-symdef.h \
1343 module-loopback-symdef.h \
1344 module-virtual-sink-symdef.h \
1345 module-virtual-source-symdef.h \
1346 module-virtual-surround-sink-symdef.h \
1347 module-switch-on-connect-symdef.h \
1348 module-switch-on-port-available-symdef.h \
1349 module-filter-apply-symdef.h \
1350 module-filter-heuristics-symdef.h
1354 module-esound-protocol-tcp-symdef.h \
1355 module-esound-protocol-unix-symdef.h \
1356 module-esound-compat-spawnfd-symdef.h \
1357 module-esound-compat-spawnpid-symdef.h \
1358 module-esound-sink-symdef.h
1361 EXTRA_DIST += $(SYMDEF_FILES)
1362 BUILT_SOURCES += $(SYMDEF_FILES) builddirs
1364 $(SYMDEF_FILES): modules/module-defs.h.m4
1365 $(AM_V_at)$(MKDIR_P) modules
1366 $(AM_V_GEN)$(M4) -Dfname="$@" $< > $@
1370 $(AM_V_at)$(MKDIR_P) daemon modules
1374 module_simple_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1375 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1376 module_simple_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1377 module_simple_protocol_tcp_la_LIBADD = $(MODULE_LIBADD) libprotocol-simple.la
1379 module_simple_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1380 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1381 module_simple_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1382 module_simple_protocol_unix_la_LIBADD = $(MODULE_LIBADD) libprotocol-simple.la
1386 module_cli_la_SOURCES = modules/module-cli.c
1387 module_cli_la_LDFLAGS = $(MODULE_LDFLAGS)
1388 module_cli_la_LIBADD = $(MODULE_LIBADD) libcli.la
1390 module_cli_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1391 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1392 module_cli_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1393 module_cli_protocol_tcp_la_LIBADD = $(MODULE_LIBADD) libprotocol-cli.la
1395 module_cli_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1396 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1397 module_cli_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1398 module_cli_protocol_unix_la_LIBADD = $(MODULE_LIBADD) libprotocol-cli.la
1402 module_http_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1403 module_http_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1404 module_http_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1405 module_http_protocol_tcp_la_LIBADD = $(MODULE_LIBADD) libprotocol-http.la
1407 module_http_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1408 module_http_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1409 module_http_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1410 module_http_protocol_unix_la_LIBADD = $(MODULE_LIBADD) libprotocol-http.la
1414 module_dbus_protocol_la_SOURCES = \
1415 modules/dbus/iface-card.c modules/dbus/iface-card.h \
1416 modules/dbus/iface-card-profile.c modules/dbus/iface-card-profile.h \
1417 modules/dbus/iface-client.c modules/dbus/iface-client.h \
1418 modules/dbus/iface-core.c modules/dbus/iface-core.h \
1419 modules/dbus/iface-device.c modules/dbus/iface-device.h \
1420 modules/dbus/iface-device-port.c modules/dbus/iface-device-port.h \
1421 modules/dbus/iface-memstats.c modules/dbus/iface-memstats.h \
1422 modules/dbus/iface-module.c modules/dbus/iface-module.h \
1423 modules/dbus/iface-sample.c modules/dbus/iface-sample.h \
1424 modules/dbus/iface-stream.c modules/dbus/iface-stream.h \
1425 modules/dbus/module-dbus-protocol.c
1426 module_dbus_protocol_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1427 module_dbus_protocol_la_LDFLAGS = $(MODULE_LDFLAGS)
1428 module_dbus_protocol_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS)
1432 module_native_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1433 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1434 module_native_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1435 module_native_protocol_tcp_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1437 module_native_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1438 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1439 module_native_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1440 module_native_protocol_unix_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1442 module_native_protocol_fd_la_SOURCES = modules/module-native-protocol-fd.c
1443 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
1444 module_native_protocol_fd_la_LDFLAGS = $(MODULE_LDFLAGS)
1445 module_native_protocol_fd_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1450 module_esound_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1451 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1452 module_esound_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1453 module_esound_protocol_tcp_la_LIBADD = $(MODULE_LIBADD) libprotocol-esound.la
1455 module_esound_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1456 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1457 module_esound_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1458 module_esound_protocol_unix_la_LIBADD = $(MODULE_LIBADD) libprotocol-esound.la
1460 module_esound_compat_spawnfd_la_SOURCES = modules/module-esound-compat-spawnfd.c
1461 module_esound_compat_spawnfd_la_LDFLAGS = $(MODULE_LDFLAGS)
1462 module_esound_compat_spawnfd_la_LIBADD = $(MODULE_LIBADD)
1464 module_esound_compat_spawnpid_la_SOURCES = modules/module-esound-compat-spawnpid.c
1465 module_esound_compat_spawnpid_la_LDFLAGS = $(MODULE_LDFLAGS)
1466 module_esound_compat_spawnpid_la_LIBADD = $(MODULE_LIBADD)
1468 module_esound_sink_la_SOURCES = modules/module-esound-sink.c
1469 module_esound_sink_la_LDFLAGS = $(MODULE_LDFLAGS) $(WINSOCK_LIBS)
1470 module_esound_sink_la_LIBADD = $(MODULE_LIBADD)
1475 module_pipe_sink_la_SOURCES = modules/module-pipe-sink.c
1476 module_pipe_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1477 module_pipe_sink_la_LIBADD = $(MODULE_LIBADD)
1479 module_pipe_source_la_SOURCES = modules/module-pipe-source.c
1480 module_pipe_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1481 module_pipe_source_la_LIBADD = $(MODULE_LIBADD)
1483 # Fake sources/sinks
1485 module_sine_la_SOURCES = modules/module-sine.c
1486 module_sine_la_LDFLAGS = $(MODULE_LDFLAGS)
1487 module_sine_la_LIBADD = $(MODULE_LIBADD)
1489 module_null_sink_la_SOURCES = modules/module-null-sink.c
1490 module_null_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1491 module_null_sink_la_LIBADD = $(MODULE_LIBADD)
1493 module_null_source_la_SOURCES = modules/module-null-source.c
1494 module_null_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1495 module_null_source_la_LIBADD = $(MODULE_LIBADD)
1497 module_sine_source_la_SOURCES = modules/module-sine-source.c
1498 module_sine_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1499 module_sine_source_la_LIBADD = $(MODULE_LIBADD)
1503 module_combine_la_SOURCES = modules/module-combine.c
1504 module_combine_la_LDFLAGS = $(MODULE_LDFLAGS)
1505 module_combine_la_LIBADD = $(MODULE_LIBADD)
1507 module_combine_sink_la_SOURCES = modules/module-combine-sink.c
1508 module_combine_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1509 module_combine_sink_la_LIBADD = $(MODULE_LIBADD)
1511 module_switch_on_connect_la_SOURCES = modules/module-switch-on-connect.c
1512 module_switch_on_connect_la_LDFLAGS = $(MODULE_LDFLAGS)
1513 module_switch_on_connect_la_LIBADD = $(MODULE_LIBADD)
1515 module_switch_on_port_available_la_SOURCES = modules/module-switch-on-port-available.c
1516 module_switch_on_port_available_la_LDFLAGS = $(MODULE_LDFLAGS)
1517 module_switch_on_port_available_la_LIBADD = $(MODULE_LIBADD)
1519 module_filter_apply_la_SOURCES = modules/module-filter-apply.c
1520 module_filter_apply_la_LDFLAGS = $(MODULE_LDFLAGS)
1521 module_filter_apply_la_LIBADD = $(MODULE_LIBADD)
1523 module_filter_heuristics_la_SOURCES = modules/module-filter-heuristics.c
1524 module_filter_heuristics_la_LDFLAGS = $(MODULE_LDFLAGS)
1525 module_filter_heuristics_la_LIBADD = $(MODULE_LIBADD)
1527 module_remap_sink_la_SOURCES = modules/module-remap-sink.c
1528 module_remap_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1529 module_remap_sink_la_LIBADD = $(MODULE_LIBADD)
1531 module_ladspa_sink_la_SOURCES = modules/module-ladspa-sink.c modules/ladspa.h
1532 module_ladspa_sink_la_CFLAGS = -DLADSPA_PATH=\"$(libdir)/ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa:/usr/local/lib64/ladspa:/usr/lib64/ladspa\" $(AM_CFLAGS)
1533 module_ladspa_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1534 module_ladspa_sink_la_LIBADD = $(MODULE_LIBADD) $(LIBLTDL)
1536 module_equalizer_sink_la_SOURCES = modules/module-equalizer-sink.c
1537 module_equalizer_sink_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS) $(DBUS_CFLAGS) $(FFTW_CFLAGS)
1538 module_equalizer_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1539 module_equalizer_sink_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) $(FFTW_LIBS)
1541 module_match_la_SOURCES = modules/module-match.c
1542 module_match_la_LDFLAGS = $(MODULE_LDFLAGS)
1543 module_match_la_LIBADD = $(MODULE_LIBADD)
1545 module_tunnel_sink_la_SOURCES = modules/module-tunnel.c
1546 module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS)
1547 module_tunnel_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1548 module_tunnel_sink_la_LIBADD = $(MODULE_LIBADD)
1550 module_tunnel_source_la_SOURCES = modules/module-tunnel.c
1551 module_tunnel_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1552 module_tunnel_source_la_LIBADD = $(MODULE_LIBADD)
1554 module_loopback_la_SOURCES = modules/module-loopback.c
1555 module_loopback_la_LDFLAGS = $(MODULE_LDFLAGS)
1556 module_loopback_la_LIBADD = $(MODULE_LIBADD)
1558 module_virtual_sink_la_SOURCES = modules/module-virtual-sink.c
1559 module_virtual_sink_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS)
1560 module_virtual_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1561 module_virtual_sink_la_LIBADD = $(MODULE_LIBADD)
1563 module_virtual_source_la_SOURCES = modules/module-virtual-source.c
1564 module_virtual_source_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS)
1565 module_virtual_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1566 module_virtual_source_la_LIBADD = $(MODULE_LIBADD)
1568 module_virtual_surround_sink_la_SOURCES = modules/module-virtual-surround-sink.c
1569 module_virtual_surround_sink_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS)
1570 module_virtual_surround_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1571 module_virtual_surround_sink_la_LIBADD = $(MODULE_LIBADD)
1575 module_x11_bell_la_SOURCES = modules/x11/module-x11-bell.c
1576 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1577 module_x11_bell_la_LDFLAGS = $(MODULE_LDFLAGS)
1578 module_x11_bell_la_LIBADD = $(MODULE_LIBADD) $(X11_LIBS)
1580 module_x11_publish_la_SOURCES = modules/x11/module-x11-publish.c
1581 module_x11_publish_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1582 module_x11_publish_la_LDFLAGS = $(MODULE_LDFLAGS)
1583 module_x11_publish_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la $(X11_LIBS)
1585 module_x11_xsmp_la_SOURCES = modules/x11/module-x11-xsmp.c
1586 module_x11_xsmp_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1587 module_x11_xsmp_la_LDFLAGS = $(MODULE_LDFLAGS)
1588 module_x11_xsmp_la_LIBADD = $(MODULE_LIBADD) $(X11_LIBS)
1590 module_x11_cork_request_la_SOURCES = modules/x11/module-x11-cork-request.c
1591 module_x11_cork_request_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1592 module_x11_cork_request_la_LDFLAGS = $(MODULE_LDFLAGS)
1593 module_x11_cork_request_la_LIBADD = $(MODULE_LIBADD) $(X11_LIBS)
1597 liboss_util_la_SOURCES = modules/oss/oss-util.c modules/oss/oss-util.h
1598 liboss_util_la_LDFLAGS = -avoid-version
1599 liboss_util_la_LIBADD = $(MODULE_LIBADD)
1601 module_oss_la_SOURCES = modules/oss/module-oss.c
1602 module_oss_la_LDFLAGS = $(MODULE_LDFLAGS)
1603 module_oss_la_LIBADD = $(MODULE_LIBADD) liboss-util.la
1607 module_coreaudio_detect_la_SOURCES = modules/macosx/module-coreaudio-detect.c
1608 module_coreaudio_detect_la_LDFLAGS = $(MODULE_LDFLAGS) \
1609 -Wl,-framework -Wl,Cocoa -framework CoreAudio \
1610 -Wl,-framework -Wl,AudioUnit -framework AudioUnit
1611 module_coreaudio_detect_la_LIBADD = $(MODULE_LIBADD)
1613 module_coreaudio_device_la_SOURCES = modules/macosx/module-coreaudio-device.c
1614 module_coreaudio_device_la_LDFLAGS = $(MODULE_LDFLAGS) \
1615 -Wl,-framework -Wl,Cocoa -framework CoreAudio \
1616 -Wl,-framework -Wl,AudioUnit -framework AudioUnit
1617 module_coreaudio_device_la_LIBADD = $(MODULE_LIBADD)
1621 libalsa_util_la_SOURCES = \
1622 modules/alsa/alsa-util.c modules/alsa/alsa-util.h \
1623 modules/alsa/alsa-mixer.c modules/alsa/alsa-mixer.h \
1624 modules/alsa/alsa-sink.c modules/alsa/alsa-sink.h \
1625 modules/alsa/alsa-source.c modules/alsa/alsa-source.h \
1626 modules/reserve-wrap.c modules/reserve-wrap.h
1627 libalsa_util_la_LDFLAGS = -avoid-version
1628 libalsa_util_la_LIBADD = $(MODULE_LIBADD) $(ASOUNDLIB_LIBS)
1629 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS) $(ASOUNDLIB_CFLAGS)
1632 libalsa_util_la_SOURCES += modules/hal-util.h modules/hal-util.c
1633 libalsa_util_la_LIBADD += $(HAL_LIBS)
1634 libalsa_util_la_CFLAGS += $(HAL_CFLAGS)
1638 libalsa_util_la_SOURCES += modules/udev-util.h modules/udev-util.c
1639 libalsa_util_la_LIBADD += $(UDEV_LIBS)
1640 libalsa_util_la_CFLAGS += $(UDEV_CFLAGS)
1644 libalsa_util_la_SOURCES += modules/reserve.h modules/reserve.c modules/reserve-monitor.h modules/reserve-monitor.c
1645 libalsa_util_la_LIBADD += $(DBUS_LIBS)
1646 libalsa_util_la_CFLAGS += $(DBUS_CFLAGS)
1649 module_alsa_sink_la_SOURCES = modules/alsa/module-alsa-sink.c
1650 module_alsa_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1651 module_alsa_sink_la_LIBADD = $(MODULE_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
1652 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1654 module_alsa_source_la_SOURCES = modules/alsa/module-alsa-source.c
1655 module_alsa_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1656 module_alsa_source_la_LIBADD = $(MODULE_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
1657 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1659 module_alsa_card_la_SOURCES = modules/alsa/module-alsa-card.c
1660 module_alsa_card_la_LDFLAGS = $(MODULE_LDFLAGS)
1661 module_alsa_card_la_LIBADD = $(MODULE_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
1662 module_alsa_card_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1666 module_solaris_la_SOURCES = modules/module-solaris.c
1667 module_solaris_la_LDFLAGS = $(MODULE_LDFLAGS)
1668 module_solaris_la_LIBADD = $(MODULE_LIBADD)
1672 module_zeroconf_publish_la_SOURCES = modules/module-zeroconf-publish.c
1673 module_zeroconf_publish_la_LDFLAGS = $(MODULE_LDFLAGS)
1674 module_zeroconf_publish_la_LIBADD = $(MODULE_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libprotocol-native.la
1675 module_zeroconf_publish_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1677 module_zeroconf_discover_la_SOURCES = modules/module-zeroconf-discover.c
1678 module_zeroconf_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1679 module_zeroconf_discover_la_LIBADD = $(MODULE_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la
1680 module_zeroconf_discover_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1684 module_bonjour_publish_la_SOURCES = modules/macosx/module-bonjour-publish.c
1685 module_bonjour_publish_la_LDFLAGS = $(MODULE_LDFLAGS) \
1686 -Wl,-framework -Wl,CoreFoundation -framework CoreFoundation
1687 module_bonjour_publish_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1691 module_lirc_la_SOURCES = modules/module-lirc.c
1692 module_lirc_la_LDFLAGS = $(MODULE_LDFLAGS)
1693 module_lirc_la_LIBADD = $(MODULE_LIBADD) $(LIRC_LIBS)
1694 module_lirc_la_CFLAGS = $(AM_CFLAGS) $(LIRC_CFLAGS)
1699 module_xenpv_sink_la_SOURCES = modules/xen/module-xenpv-sink.c modules/xen/gntalloc.h modules/xen/gntdev.h
1700 module_xenpv_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1701 module_xenpv_sink_la_LIBADD = $(MODULE_LIBADD) $(XEN_LIBS)
1702 module_xenpv_sink_la_CFLAGS = $(AM_CFLAGS) $(XEN_CFLAGS) -I$(top_srcdir)/src/modules/xen
1707 module_mmkbd_evdev_la_SOURCES = modules/module-mmkbd-evdev.c
1708 module_mmkbd_evdev_la_LDFLAGS = $(MODULE_LDFLAGS)
1709 module_mmkbd_evdev_la_LIBADD = $(MODULE_LIBADD)
1710 module_mmkbd_evdev_la_CFLAGS = $(AM_CFLAGS)
1713 module_waveout_la_SOURCES = modules/module-waveout.c
1714 module_waveout_la_LDFLAGS = $(MODULE_LDFLAGS)
1715 module_waveout_la_LIBADD = $(MODULE_LIBADD) -lwinmm
1716 module_waveout_la_CFLAGS = $(AM_CFLAGS)
1718 # Hardware autodetection module
1719 module_detect_la_SOURCES = modules/module-detect.c
1720 module_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1721 module_detect_la_LIBADD = $(MODULE_LIBADD)
1722 module_detect_la_CFLAGS = $(AM_CFLAGS)
1724 # Volume restore module
1725 module_volume_restore_la_SOURCES = modules/module-volume-restore.c
1726 module_volume_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1727 module_volume_restore_la_LIBADD = $(MODULE_LIBADD)
1728 module_volume_restore_la_CFLAGS = $(AM_CFLAGS)
1730 # Position event sounds in space
1731 module_position_event_sounds_la_SOURCES = modules/module-position-event-sounds.c
1732 module_position_event_sounds_la_LDFLAGS = $(MODULE_LDFLAGS)
1733 module_position_event_sounds_la_LIBADD = $(MODULE_LIBADD)
1734 module_position_event_sounds_la_CFLAGS = $(AM_CFLAGS)
1736 # Augment properties from XDG .desktop files
1737 module_augment_properties_la_SOURCES = modules/module-augment-properties.c
1738 module_augment_properties_la_LDFLAGS = $(MODULE_LDFLAGS)
1739 module_augment_properties_la_LIBADD = $(MODULE_LIBADD)
1740 #module_augment_properties_la_CFLAGS = $(AM_CFLAGS) -DDESKTOPFILEDIR=\"$(datadir)/applications\"
1741 module_augment_properties_la_CFLAGS = $(AM_CFLAGS) -DDESKTOPFILEDIR=\"/usr/share/applications\"
1743 # Cork certain streams while others are active (e.g. cork music when phone streams appear)
1744 module_role_cork_la_SOURCES = modules/module-role-cork.c
1745 module_role_cork_la_LDFLAGS = $(MODULE_LDFLAGS)
1746 module_role_cork_la_LIBADD = $(MODULE_LIBADD)
1747 module_role_cork_la_CFLAGS = $(AM_CFLAGS)
1749 # Device description restore module
1750 module_device_manager_la_SOURCES = modules/module-device-manager.c
1751 module_device_manager_la_LDFLAGS = $(MODULE_LDFLAGS)
1752 module_device_manager_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1753 module_device_manager_la_CFLAGS = $(AM_CFLAGS)
1755 # Device volume/muted restore module
1756 module_device_restore_la_SOURCES = modules/module-device-restore.c
1757 module_device_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1758 module_device_restore_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1759 module_device_restore_la_CFLAGS = $(AM_CFLAGS)
1762 module_device_restore_la_LIBADD += $(DBUS_LIBS)
1763 module_device_restore_la_CFLAGS += $(DBUS_CFLAGS)
1766 # Stream volume/muted/device restore module
1767 module_stream_restore_la_SOURCES = modules/module-stream-restore.c
1768 module_stream_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1769 module_stream_restore_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1770 module_stream_restore_la_CFLAGS = $(AM_CFLAGS)
1773 module_stream_restore_la_LIBADD += $(DBUS_LIBS)
1774 module_stream_restore_la_CFLAGS += $(DBUS_CFLAGS)
1777 # Card profile restore module
1778 module_card_restore_la_SOURCES = modules/module-card-restore.c
1779 module_card_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1780 module_card_restore_la_LIBADD = $(MODULE_LIBADD)
1781 module_card_restore_la_CFLAGS = $(AM_CFLAGS)
1783 # Default sink/source restore module
1784 module_default_device_restore_la_SOURCES = modules/module-default-device-restore.c
1785 module_default_device_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1786 module_default_device_restore_la_LIBADD = $(MODULE_LIBADD)
1787 module_default_device_restore_la_CFLAGS = $(AM_CFLAGS)
1789 # Always Sink module
1790 module_always_sink_la_SOURCES = modules/module-always-sink.c
1791 module_always_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1792 module_always_sink_la_LIBADD = $(MODULE_LIBADD)
1793 module_always_sink_la_CFLAGS = $(AM_CFLAGS)
1795 # Rescue streams module
1796 module_rescue_streams_la_SOURCES = modules/module-rescue-streams.c
1797 module_rescue_streams_la_LDFLAGS = $(MODULE_LDFLAGS)
1798 module_rescue_streams_la_LIBADD = $(MODULE_LIBADD)
1799 module_rescue_streams_la_CFLAGS = $(AM_CFLAGS)
1801 # Automatically move streams to devices that are intended for their roles
1802 module_intended_roles_la_SOURCES = modules/module-intended-roles.c
1803 module_intended_roles_la_LDFLAGS = $(MODULE_LDFLAGS)
1804 module_intended_roles_la_LIBADD = $(MODULE_LIBADD)
1805 module_intended_roles_la_CFLAGS = $(AM_CFLAGS)
1807 # Suspend-on-idle module
1808 module_suspend_on_idle_la_SOURCES = modules/module-suspend-on-idle.c
1809 module_suspend_on_idle_la_LDFLAGS = $(MODULE_LDFLAGS)
1810 module_suspend_on_idle_la_LIBADD = $(MODULE_LIBADD)
1811 module_suspend_on_idle_la_CFLAGS = $(AM_CFLAGS)
1813 # echo-cancel module
1814 module_echo_cancel_la_SOURCES = \
1815 modules/echo-cancel/module-echo-cancel.c modules/echo-cancel/echo-cancel.h
1816 module_echo_cancel_la_LDFLAGS = $(MODULE_LDFLAGS)
1817 module_echo_cancel_la_LIBADD = $(MODULE_LIBADD) $(LIBSPEEX_LIBS)
1818 module_echo_cancel_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS) $(LIBSPEEX_CFLAGS)
1820 module_echo_cancel_la_SOURCES += \
1821 modules/echo-cancel/adrian-aec.c modules/echo-cancel/adrian-aec.h \
1822 modules/echo-cancel/adrian.c modules/echo-cancel/adrian.h
1823 module_echo_cancel_la_CFLAGS += -DHAVE_ADRIAN_EC=1
1825 ORC_SOURCE += modules/echo-cancel/adrian-aec
1826 nodist_module_echo_cancel_la_SOURCES = \
1827 modules/echo-cancel/adrian-aec-orc-gen.c \
1828 modules/echo-cancel/adrian-aec-orc-gen.h
1829 module_echo_cancel_la_LIBADD += $(ORC_LIBS)
1830 module_echo_cancel_la_CFLAGS += $(ORC_CFLAGS) -I$(top_builddir)/src/modules/echo-cancel
1834 module_echo_cancel_la_SOURCES += modules/echo-cancel/speex.c
1837 # The webrtc code is split off into a helper library to avoid having automake
1838 # link module-echo-cancel with C++ (which it does if there are any C++ deps,
1839 # even conditional ones).
1840 modlibexec_LTLIBRARIES += libwebrtc-util.la
1842 libwebrtc_util_la_SOURCES = modules/echo-cancel/webrtc.cc
1843 libwebrtc_util_la_CXXFLAGS = $(AM_CXXFLAGS) $(SERVER_CFLAGS) $(WEBRTC_CFLAGS) -DHAVE_WEBRTC=1
1844 libwebrtc_util_la_LIBADD = $(WEBRTC_LIBS)
1846 module_echo_cancel_la_CFLAGS += -DHAVE_WEBRTC=1
1847 module_echo_cancel_la_LIBADD += libwebrtc-util.la
1851 module_rtp_send_la_SOURCES = modules/rtp/module-rtp-send.c
1852 module_rtp_send_la_LDFLAGS = $(MODULE_LDFLAGS)
1853 module_rtp_send_la_LIBADD = $(MODULE_LIBADD) librtp.la
1854 module_rtp_send_la_CFLAGS = $(AM_CFLAGS)
1856 module_rtp_recv_la_SOURCES = modules/rtp/module-rtp-recv.c
1857 module_rtp_recv_la_LDFLAGS = $(MODULE_LDFLAGS)
1858 module_rtp_recv_la_LIBADD = $(MODULE_LIBADD) librtp.la
1859 module_rtp_recv_la_CFLAGS = $(AM_CFLAGS)
1863 module_jackdbus_detect_la_SOURCES = modules/jack/module-jackdbus-detect.c
1864 module_jackdbus_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1865 module_jackdbus_detect_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) $(JACK_LIBS)
1866 module_jackdbus_detect_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) $(JACK_CFLAGS)
1868 module_jack_sink_la_SOURCES = modules/jack/module-jack-sink.c
1869 module_jack_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1870 module_jack_sink_la_LIBADD = $(MODULE_LIBADD) $(JACK_LIBS)
1871 module_jack_sink_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1873 module_jack_source_la_SOURCES = modules/jack/module-jack-source.c
1874 module_jack_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1875 module_jack_source_la_LIBADD = $(MODULE_LIBADD) $(JACK_LIBS)
1876 module_jack_source_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1879 module_hal_detect_la_SOURCES = modules/module-hal-detect-compat.c
1880 module_hal_detect_la_LIBADD = $(MODULE_LIBADD)
1881 module_hal_detect_la_CFLAGS = $(AM_CFLAGS)
1883 module_hal_detect_la_SOURCES = modules/module-hal-detect.c
1884 module_hal_detect_la_LIBADD = $(MODULE_LIBADD) $(HAL_LIBS)
1885 module_hal_detect_la_CFLAGS = $(AM_CFLAGS) $(HAL_CFLAGS)
1887 module_hal_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1889 module_udev_detect_la_SOURCES = modules/module-udev-detect.c
1890 module_udev_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1891 module_udev_detect_la_LIBADD = $(MODULE_LIBADD) $(UDEV_LIBS)
1892 module_udev_detect_la_CFLAGS = $(AM_CFLAGS) $(UDEV_CFLAGS)
1894 module_console_kit_la_SOURCES = modules/module-console-kit.c
1895 module_console_kit_la_LDFLAGS = $(MODULE_LDFLAGS)
1896 module_console_kit_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) $(SYSTEMD_LIBS)
1897 module_console_kit_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) $(SYSTEMD_CFLAGS)
1899 module_systemd_login_la_SOURCES = modules/module-systemd-login.c
1900 module_systemd_login_la_LDFLAGS = $(MODULE_LDFLAGS)
1901 module_systemd_login_la_LIBADD = $(MODULE_LIBADD) $(SYSTEMD_LIBS)
1902 module_systemd_login_la_CFLAGS = $(AM_CFLAGS) $(SYSTEMD_CFLAGS)
1905 module_gconf_la_SOURCES = modules/gconf/module-gconf.c
1906 module_gconf_la_LDFLAGS = $(MODULE_LDFLAGS)
1907 module_gconf_la_LIBADD = $(MODULE_LIBADD)
1908 module_gconf_la_CFLAGS = $(AM_CFLAGS) -DPA_GCONF_HELPER=\"$(pulselibexecdir)/gconf-helper\"
1910 gconf_helper_SOURCES = modules/gconf/gconf-helper.c
1911 gconf_helper_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(GCONF_LIBS)
1912 gconf_helper_CFLAGS = $(AM_CFLAGS) $(GCONF_CFLAGS)
1913 gconf_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
1915 # Bluetooth proximity
1916 module_bluetooth_proximity_la_SOURCES = modules/bluetooth/module-bluetooth-proximity.c
1917 module_bluetooth_proximity_la_LDFLAGS = $(MODULE_LDFLAGS)
1918 module_bluetooth_proximity_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS)
1919 module_bluetooth_proximity_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) -DPA_BT_PROXIMITY_HELPER=\"$(pulselibexecdir)/proximity-helper\"
1921 proximity_helper_SOURCES = modules/bluetooth/proximity-helper.c
1922 proximity_helper_LDADD = $(AM_LDADD) $(BLUEZ_LIBS)
1923 proximity_helper_CFLAGS = $(AM_CFLAGS) $(BLUEZ_CFLAGS)
1924 proximity_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
1926 # Bluetooth sink / source
1927 module_bluetooth_discover_la_SOURCES = modules/bluetooth/module-bluetooth-discover.c
1928 module_bluetooth_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1929 module_bluetooth_discover_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) libbluetooth-util.la
1930 module_bluetooth_discover_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1932 libbluetooth_sbc_la_SOURCES = \
1933 modules/bluetooth/sbc/sbc.c modules/bluetooth/sbc/sbc.h \
1934 modules/bluetooth/sbc/sbc_primitives.c modules/bluetooth/sbc/sbc_primitives.h \
1935 modules/bluetooth/sbc/sbc_primitives_armv6.h modules/bluetooth/sbc/sbc_primitives_armv6.c \
1936 modules/bluetooth/sbc/sbc_primitives_iwmmxt.h modules/bluetooth/sbc/sbc_primitives_iwmmxt.c \
1937 modules/bluetooth/sbc/sbc_primitives_mmx.c modules/bluetooth/sbc/sbc_primitives_mmx.h \
1938 modules/bluetooth/sbc/sbc_primitives_neon.c modules/bluetooth/sbc/sbc_primitives_neon.h \
1939 modules/bluetooth/sbc/sbc_math.h \
1940 modules/bluetooth/sbc/sbc_tables.h
1941 libbluetooth_sbc_la_LDFLAGS = -avoid-version
1942 libbluetooth_sbc_la_LIBADD = $(MODULE_LIBADD)
1943 libbluetooth_sbc_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/src/modules/bluetooth/sbc
1944 BLUETOOTH_SBC_FILES = $(subst modules/bluetooth/,,$(libbluetooth_sbc_la_SOURCES))
1946 libbluetooth_ipc_la_SOURCES = \
1947 modules/bluetooth/a2dp-codecs.h \
1948 modules/bluetooth/ipc.c modules/bluetooth/ipc.h
1949 libbluetooth_ipc_la_LDFLAGS = -avoid-version
1950 libbluetooth_ipc_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1951 libbluetooth_ipc_la_CFLAGS = $(AM_CFLAGS)
1952 BLUETOOTH_IPC_FILES = $(subst modules/bluetooth/,,$(libbluetooth_ipc_la_SOURCES)) rtp.h
1954 libbluetooth_util_la_SOURCES = modules/bluetooth/bluetooth-util.c modules/bluetooth/bluetooth-util.h
1955 libbluetooth_util_la_LDFLAGS = -avoid-version
1956 libbluetooth_util_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS)
1957 libbluetooth_util_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1959 module_bluetooth_device_la_SOURCES = modules/bluetooth/module-bluetooth-device.c modules/bluetooth/rtp.h
1960 module_bluetooth_device_la_LDFLAGS = $(MODULE_LDFLAGS)
1961 module_bluetooth_device_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) libbluetooth-util.la libbluetooth-ipc.la libbluetooth-sbc.la
1962 module_bluetooth_device_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) -I$(top_srcdir)/src/modules/bluetooth/sbc
1964 # Apple Airtunes/RAOP
1965 module_raop_sink_la_SOURCES = modules/raop/module-raop-sink.c
1966 module_raop_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1967 module_raop_sink_la_LIBADD = $(MODULE_LIBADD) librtp.la libraop.la
1968 module_raop_sink_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/src/modules/rtp
1970 module_raop_discover_la_SOURCES = modules/raop/module-raop-discover.c
1971 module_raop_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1972 module_raop_discover_la_LIBADD = $(MODULE_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la
1973 module_raop_discover_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1976 module_rygel_media_server_la_SOURCES = modules/module-rygel-media-server.c
1977 module_rygel_media_server_la_LDFLAGS = $(MODULE_LDFLAGS)
1978 module_rygel_media_server_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) libprotocol-http.la
1979 module_rygel_media_server_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1981 ###################################
1982 # Some minor stuff #
1983 ###################################
1985 CLEANFILES += daemon/pulseaudio.desktop daemon/pulseaudio-kde.desktop
1986 DISTCLEANFILES = esdcompat client.conf default.pa system.pa daemon.conf start-pulseaudio-x11 start-pulseaudio-kde
1989 SYMLINK_PROGRAM=cd $(DESTDIR)$(bindir) && cp
1991 SYMLINK_PROGRAM=ln -sf
1995 -chown root $(DESTDIR)$(pulselibexecdir)/proximity-helper
1996 -chmod u+s $(DESTDIR)$(pulselibexecdir)/proximity-helper
1998 $(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/parec$(EXEEXT)
1999 $(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/pamon$(EXEEXT)
2000 $(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/paplay$(EXEEXT)
2001 $(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/parecord$(EXEEXT)
2002 rm -f $(DESTDIR)$(libdir)/libpulsedsp.la
2003 rm -f $(DESTDIR)$(modlibexecdir)/*.la
2006 rm -f $(DESTDIR)$(bindir)/parec$(EXEEXT)
2007 rm -f $(DESTDIR)$(bindir)/pamon$(EXEEXT)
2008 rm -f $(DESTDIR)$(bindir)/paplay$(EXEEXT)
2009 rm -f $(DESTDIR)$(bindir)/parecord$(EXEEXT)
2010 rm -f $(DESTDIR)$(libdir)/libpulsedsp.*
2011 rm -f $(DESTDIR)$(modlibexecdir)/*.so
2014 libtool --mode=execute valgrind --tool=massif --depth=6 --alloc-fn=pa_xmalloc --alloc-fn=pa_xmalloc0 --alloc-fn=pa_xrealloc --alloc-fn=dbus_realloc --alloc-fn=pa_xnew0_internal --alloc-fn=pa_xnew_internal ./pulseaudio
2017 wget -O pulsecore/ffmpeg/resample2.c http://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec/resample2.c?view=co
2019 # We get things twice here, because sometimes gitweb will us just give a "Generating..." otherwise.
2021 for i in $(BLUETOOTH_SBC_FILES) ; do \
2022 wget -O /dev/null http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=$$i ; \
2023 wget -O $(top_srcdir)/src/modules/bluetooth/$$i http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=$$i ; \
2025 for i in $(BLUETOOTH_IPC_FILES); do \
2026 wget -O /dev/null http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=audio/$$i ; \
2027 wget -O $(top_srcdir)/src/modules/bluetooth/$$i http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=audio/$$i ; \
2031 for i in reserve.c reserve.h reserve-monitor.c reserve-monitor.h ; do \
2032 wget -O $(top_srcdir)/src/modules/$$i http://git.0pointer.de/\?p=reserve.git\;a=blob_plain\;f=$$i\;hb=master ; \
2036 for i in rtkit.c rtkit.h ; do \
2037 wget -O $(top_srcdir)/src/pulsecore/$$i http://git.0pointer.de/\?p=rtkit.git\;a=blob_plain\;f=$$i\;hb=master ; \
2040 # Automatically generate linker version script. We use the same one for all public .sos
2042 ( echo "PULSE_0 {" ; \
2044 ctags -I PA_GCC_MALLOC,PA_GCC_ALLOC_SIZE2,PA_GCC_ALLOC_SIZE,PA_GCC_PURE,PA_GCC_CONST,PA_GCC_DEPRECATED,PA_GCC_PRINTF_ATTR -f - --c-kinds=p $(pulseinclude_HEADERS) | awk '/^pa_/ { print $$1 ";" }' | sort ; \
2047 echo "};" ) > $(srcdir)/map-file
2049 update-all: update-ffmpeg update-sbc update-map-file
2051 # Force installation order of libraries. libtool relinks on install time, in
2052 # which case libpulsecommon has to be installed before others, but the padsp
2053 # preload library has to be done after the normal libraries (e.g. libpulse)
2055 # Unfortunately automake behaviour means that rules without commands also
2056 # override build-in rules, so it's not trivial to add dependencies.
2057 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328 for the workaround
2059 # Isn't libtool/autotools fun!
2061 installlibLTLIBRARIES = install-libLTLIBRARIES
2062 $(installlibLTLIBRARIES): install-pkglibLTLIBRARIES
2064 installmodlibexecLTLIBRARIES = install-modlibexecLTLIBRARIES
2065 $(installmodlibexecLTLIBRARIES): install-pkglibLTLIBRARIES
2067 installpadsplibLTLIBRARIES = install-padsplibLTLIBRARIES
2068 $(installpadsplibLTLIBRARIES): install-libLTLIBRARIES
2070 .PHONY: massif update-all update-ffmpeg update-sbc update-map-file