build-sys: Replace dummy Makefiles with proper Makefile.am's
[pulseaudio-mirror.git] / src / Makefile.am
blob499a5bada714e40cd38fce7f5e826401267e3677
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
20 # USA.
22 SUBDIRS = pulsecore pulse daemon modules utils tests
24 ###################################
25 #       Extra directories         #
26 ###################################
28 pulseincludedir=$(includedir)/pulse
29 pulsecoreincludedir=$(includedir)/pulsecore
30 pulseconfdir=$(sysconfdir)/pulse
31 pulselibexecdir=$(libexecdir)/pulse
32 xdgautostartdir=$(sysconfdir)/xdg/autostart
33 alsaprofilesetsdir=$(datadir)/pulseaudio/alsa-mixer/profile-sets
34 alsapathsdir=$(datadir)/pulseaudio/alsa-mixer/paths
35 dbuspolicydir=$(sysconfdir)/dbus-1/system.d
37 ###################################
38 #            Defines              #
39 ###################################
41 PA_BINARY=$(bindir)/pulseaudio$(EXEEXT)
42 if OS_IS_WIN32
43 PA_DEFAULT_CONFIG_DIR=%PULSE_ROOT%
44 else
45 PA_DEFAULT_CONFIG_DIR=$(pulseconfdir)
46 endif
48 ###################################
49 #     Compiler/linker flags       #
50 ###################################
52 AM_CFLAGS = \
53         -I$(top_srcdir)/src \
54         -I$(top_builddir)/src \
55         -I$(top_srcdir)/src/modules \
56         -I$(top_builddir)/src/modules \
57         -I$(top_srcdir)/src/modules/rtp \
58         -I$(top_builddir)/src/modules/rtp \
59         -I$(top_srcdir)/src/modules/gconf \
60         -I$(top_builddir)/src/modules/gconf \
61         -I$(top_srcdir)/src/modules/bluetooth \
62         -I$(top_builddir)/src/modules/bluetooth \
63         -I$(top_srcdir)/src/modules/oss \
64         -I$(top_builddir)/src/modules/oss \
65         -I$(top_srcdir)/src/modules/alsa \
66         -I$(top_builddir)/src/modules/alsa \
67         -I$(top_srcdir)/src/modules/raop \
68         -I$(top_builddir)/src/modules/raop \
69         -I$(top_srcdir)/src/modules/x11 \
70         -I$(top_builddir)/src/modules/x11 \
71         -I$(top_srcdir)/src/modules/jack \
72         -I$(top_builddir)/src/modules/jack \
73         -I$(top_srcdir)/src/modules/dbus \
74         -I$(top_builddir)/src/modules/dbus \
75         -I$(top_srcdir)/src/modules/echo-cancel \
76         -I$(top_builddir)/src/modules/echo-cancel \
77         $(PTHREAD_CFLAGS) -D_POSIX_PTHREAD_SEMANTICS \
78         $(LIBSAMPLERATE_CFLAGS) \
79         $(LIBSNDFILE_CFLAGS) \
80         $(LIBSPEEX_CFLAGS) \
81         -DPA_BUILDDIR=\"$(abs_builddir)\" \
82         -DPA_DLSEARCHPATH=\"$(modlibexecdir)\" \
83         -DPA_DEFAULT_CONFIG_DIR=\"$(PA_DEFAULT_CONFIG_DIR)\" \
84         -DPA_BINARY=\"$(PA_BINARY)\" \
85         -DPA_SYSTEM_RUNTIME_PATH=\"$(PA_SYSTEM_RUNTIME_PATH)\" \
86         -DPA_SYSTEM_CONFIG_PATH=\"$(PA_SYSTEM_CONFIG_PATH)\" \
87         -DPA_SYSTEM_STATE_PATH=\"$(PA_SYSTEM_STATE_PATH)\" \
88         -DAO_REQUIRE_CAS \
89         -DPULSE_LOCALEDIR=\"$(pulselocaledir)\" \
90         -DPA_MACHINE_ID=\"$(localstatedir)/lib/dbus/machine-id\" \
91         -DPA_ALSA_PATHS_DIR=\"$(alsapathsdir)\" \
92         -DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\"
94 AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
95 AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
96 AM_LDFLAGS = $(NODELETE_LDFLAGS)
98 if STATIC_BINS
99 BINLDFLAGS = -static
100 endif
102 if OS_IS_WIN32
103 AM_LDFLAGS+=-Wl,--export-all-symbols
104 WINSOCK_LIBS=-lwsock32 -lws2_32 -lwininet
105 endif
107 FOREIGN_CFLAGS = -w
108 MODULE_LDFLAGS = -module -disable-static -avoid-version $(LDFLAGS_NOUNDEFINED)
110 ###################################
111 #          Extra files            #
112 ###################################
114 EXTRA_DIST = \
115                 pulse/client.conf.in \
116                 pulse/version.h.in \
117                 daemon/daemon.conf.in \
118                 daemon/default.pa.in \
119                 daemon/system.pa.in \
120                 daemon/default.pa.win32 \
121                 depmod.py \
122                 daemon/esdcompat.in \
123                 daemon/start-pulseaudio-x11.in \
124                 daemon/start-pulseaudio-kde.in \
125                 utils/padsp \
126                 utils/qpaeq \
127                 modules/module-defs.h.m4 \
128                 daemon/pulseaudio.desktop.in \
129                 daemon/pulseaudio-kde.desktop.in \
130                 map-file \
131                 daemon/pulseaudio-system.conf \
132                 modules/echo-cancel/adrian-license.txt
134 pulseconf_DATA = \
135                 default.pa \
136                 system.pa \
137                 daemon.conf \
138                 client.conf
140 dbuspolicy_DATA = \
141                 daemon/pulseaudio-system.conf
143 if HAVE_X11
144 xdgautostart_in_files = \
145                 daemon/pulseaudio.desktop.in \
146                 daemon/pulseaudio-kde.desktop.in
147 endif
148 xdgautostart_DATA = $(xdgautostart_in_files:.desktop.in=.desktop)
149 @INTLTOOL_DESKTOP_RULE@
152 BUILT_SOURCES = \
153                 pulse/version.h
155 ###################################
156 #          Main daemon            #
157 ###################################
159 bin_PROGRAMS = pulseaudio
161 pulseaudio_SOURCES = \
162                 daemon/caps.c daemon/caps.h \
163                 daemon/cmdline.c daemon/cmdline.h \
164                 daemon/cpulimit.c daemon/cpulimit.h \
165                 daemon/daemon-conf.c daemon/daemon-conf.h \
166                 daemon/dumpmodules.c daemon/dumpmodules.h \
167                 daemon/ltdl-bind-now.c daemon/ltdl-bind-now.h \
168                 daemon/main.c
170 pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSPEEX_CFLAGS) $(LIBSNDFILE_CFLAGS) $(CAP_CFLAGS)
171 pulseaudio_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSPEEX_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS)
172 # This is needed because automake doesn't properly expand the foreach below
173 pulseaudio_DEPENDENCIES = libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(PREOPEN_LIBS)
175 if HAVE_DBUS
176 pulseaudio_CFLAGS += $(DBUS_CFLAGS)
177 pulseaudio_SOURCES += daemon/server-lookup.c daemon/server-lookup.h
178 pulseaudio_LDADD += $(DBUS_LIBS)
179 endif
181 if PREOPEN_MODS
182 PREOPEN_LIBS = $(PREOPEN_MODS)
183 else
184 PREOPEN_LIBS = $(modlibexec_LTLIBRARIES)
185 endif
187 if FORCE_PREOPEN
188 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(IMMEDIATE_LDFLAGS) -dlpreopen force $(foreach f,$(PREOPEN_LIBS),-dlpreopen $(f))
189 else
190 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(IMMEDIATE_LDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
191 endif
193 ###################################
194 #       Utility programs          #
195 ###################################
197 bin_PROGRAMS += \
198                 pacat \
199                 pactl \
200                 pasuspender
202 if HAVE_AF_UNIX
203 bin_PROGRAMS += pacmd
204 endif
206 if HAVE_X11
207 bin_PROGRAMS += pax11publish
208 endif
210 if HAVE_AVAHI
211 bin_PROGRAMS += pabrowse
212 endif
214 bin_SCRIPTS = esdcompat start-pulseaudio-x11 start-pulseaudio-kde
216 pacat_SOURCES = utils/pacat.c
217 pacat_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
218 pacat_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
219 pacat_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
221 pactl_SOURCES = utils/pactl.c
222 pactl_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
223 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
224 pactl_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
226 pasuspender_SOURCES = utils/pasuspender.c
227 pasuspender_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
228 pasuspender_CFLAGS = $(AM_CFLAGS)
229 pasuspender_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
231 pacmd_SOURCES = utils/pacmd.c
232 pacmd_CFLAGS = $(AM_CFLAGS)
233 pacmd_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
234 pacmd_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
236 pax11publish_SOURCES = utils/pax11publish.c
237 pax11publish_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
238 pax11publish_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(X11_LIBS)
239 pax11publish_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
241 pabrowse_SOURCES = utils/pabrowse.c
242 pabrowse_LDADD = $(AM_LDADD) libpulse.la libpulse-browse.la libpulsecommon-@PA_MAJORMINOR@.la
243 pabrowse_CFLAGS = $(AM_CFLAGS)
244 pabrowse_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
246 ###################################
247 #         Test programs           #
248 ###################################
250 # missing: mcalign-test flist-test pacat-simple parec-simple sync-playback rtstutter stripnul interpol-test thread-test
252 TESTS = \
253                 mainloop-test \
254                 strlist-test \
255                 close-test \
256                 voltest \
257                 vector-test \
258                 memblockq-test \
259                 channelmap-test \
260                 thread-mainloop-test \
261                 utf8-test \
262                 get-binary-name-test \
263                 ipacl-test \
264                 hook-list-test \
265                 memblock-test \
266                 asyncq-test \
267                 asyncmsgq-test \
268                 queue-test \
269                 rtpoll-test \
270                 sig2str-test \
271                 resampler-test \
272                 smoother-test \
273                 mix-test \
274                 remix-test \
275                 envelope-test \
276                 proplist-test \
277                 lock-autospawn-test \
278                 prioq-test \
279                 sigbus-test \
280                 usergroup-test
282 TESTS_BINARIES = \
283                 mainloop-test \
284                 mcalign-test \
285                 pacat-simple \
286                 parec-simple \
287                 strlist-test \
288                 close-test \
289                 voltest \
290                 vector-test \
291                 memblockq-test \
292                 sync-playback \
293                 interpol-test \
294                 channelmap-test \
295                 thread-mainloop-test \
296                 utf8-test \
297                 get-binary-name-test \
298                 ipacl-test \
299                 hook-list-test \
300                 memblock-test \
301                 thread-test \
302                 flist-test \
303                 asyncq-test \
304                 asyncmsgq-test \
305                 queue-test \
306                 rtpoll-test \
307                 sig2str-test \
308                 resampler-test \
309                 smoother-test \
310                 mix-test \
311                 remix-test \
312                 envelope-test \
313                 proplist-test \
314                 rtstutter \
315                 stripnul \
316                 lock-autospawn-test \
317                 prioq-test \
318                 sigbus-test \
319                 usergroup-test
321 if HAVE_SIGXCPU
322 #TESTS += \
323 #               cpulimit-test \
324 #               cpulimit-test2
325 TESTS_BINARIES += \
326                 cpulimit-test \
327                 cpulimit-test2
328 endif
330 if HAVE_GLIB20
331 TESTS += \
332                 mainloop-test-glib
333 TESTS_BINARIES += \
334                 mainloop-test-glib
335 endif
337 if HAVE_GTK20
338 TESTS_BINARIES += \
339                 gtk-test
340 endif
342 if HAVE_ALSA
343 TESTS_BINARIES += \
344                 alsa-time-test
345 endif
347 if !OS_IS_DARWIN
348 TESTS_BINARIES += \
349                 once-test
350 endif
352 if BUILD_TESTS_DEFAULT
353 noinst_PROGRAMS = $(TESTS_BINARIES)
354 else
355 check_PROGRAMS = $(TESTS_BINARIES)
356 endif
358 mainloop_test_SOURCES = tests/mainloop-test.c
359 mainloop_test_CFLAGS = $(AM_CFLAGS)
360 mainloop_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
361 mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
363 thread_mainloop_test_SOURCES = tests/thread-mainloop-test.c
364 thread_mainloop_test_CFLAGS = $(AM_CFLAGS)
365 thread_mainloop_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
366 thread_mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
368 utf8_test_SOURCES = tests/utf8-test.c
369 utf8_test_CFLAGS = $(AM_CFLAGS)
370 utf8_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
371 utf8_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
373 get_binary_name_test_SOURCES = tests/get-binary-name-test.c
374 get_binary_name_test_CFLAGS = $(AM_CFLAGS)
375 get_binary_name_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
376 get_binary_name_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
378 ipacl_test_SOURCES = tests/ipacl-test.c
379 ipacl_test_CFLAGS = $(AM_CFLAGS)
380 ipacl_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
381 ipacl_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
383 hook_list_test_SOURCES = tests/hook-list-test.c
384 hook_list_test_CFLAGS = $(AM_CFLAGS)
385 hook_list_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
386 hook_list_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
388 memblock_test_SOURCES = tests/memblock-test.c
389 memblock_test_CFLAGS = $(AM_CFLAGS)
390 memblock_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
391 memblock_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
393 thread_test_SOURCES = tests/thread-test.c
394 thread_test_CFLAGS = $(AM_CFLAGS)
395 thread_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
396 thread_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
398 once_test_SOURCES = tests/once-test.c
399 once_test_CFLAGS = $(AM_CFLAGS)
400 once_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
401 once_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
403 flist_test_SOURCES = tests/flist-test.c
404 flist_test_CFLAGS = $(AM_CFLAGS)
405 flist_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
406 flist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
408 asyncq_test_SOURCES = tests/asyncq-test.c
409 asyncq_test_CFLAGS = $(AM_CFLAGS)
410 asyncq_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
411 asyncq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
413 asyncmsgq_test_SOURCES = tests/asyncmsgq-test.c
414 asyncmsgq_test_CFLAGS = $(AM_CFLAGS)
415 asyncmsgq_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
416 asyncmsgq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
418 queue_test_SOURCES = tests/queue-test.c
419 queue_test_CFLAGS = $(AM_CFLAGS)
420 queue_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
421 queue_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
423 rtpoll_test_SOURCES = tests/rtpoll-test.c
424 rtpoll_test_CFLAGS = $(AM_CFLAGS)
425 rtpoll_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
426 rtpoll_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
428 mcalign_test_SOURCES = tests/mcalign-test.c
429 mcalign_test_CFLAGS = $(AM_CFLAGS)
430 mcalign_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
431 mcalign_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
433 pacat_simple_SOURCES = tests/pacat-simple.c
434 pacat_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la libpulsecommon-@PA_MAJORMINOR@.la
435 pacat_simple_CFLAGS = $(AM_CFLAGS)
436 pacat_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
438 parec_simple_SOURCES = tests/parec-simple.c
439 parec_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la libpulsecommon-@PA_MAJORMINOR@.la
440 parec_simple_CFLAGS = $(AM_CFLAGS)
441 parec_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
443 strlist_test_SOURCES = tests/strlist-test.c
444 strlist_test_CFLAGS = $(AM_CFLAGS)
445 strlist_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
446 strlist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
448 close_test_SOURCES = tests/close-test.c
449 close_test_CFLAGS = $(AM_CFLAGS)
450 close_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
451 close_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
453 voltest_SOURCES = tests/voltest.c
454 voltest_CFLAGS = $(AM_CFLAGS)
455 voltest_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
456 voltest_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
458 vector_test_SOURCES = tests/vector-test.c
459 vector_test_CFLAGS = $(AM_CFLAGS)
460 vector_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
461 vector_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
463 channelmap_test_SOURCES = tests/channelmap-test.c
464 channelmap_test_CFLAGS = $(AM_CFLAGS)
465 channelmap_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
466 channelmap_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
468 cpulimit_test_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
469 cpulimit_test_CFLAGS = $(AM_CFLAGS)
470 cpulimit_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
471 cpulimit_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
473 cpulimit_test2_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
474 cpulimit_test2_CFLAGS = $(AM_CFLAGS) -DTEST2
475 cpulimit_test2_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
476 cpulimit_test2_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
478 mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
479 mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
480 mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpulse-mainloop-glib.la
481 mainloop_test_glib_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
483 memblockq_test_SOURCES = tests/memblockq-test.c
484 memblockq_test_CFLAGS = $(AM_CFLAGS)
485 memblockq_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
486 memblockq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
488 sync_playback_SOURCES = tests/sync-playback.c
489 sync_playback_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
490 sync_playback_CFLAGS = $(AM_CFLAGS)
491 sync_playback_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
493 interpol_test_SOURCES = tests/interpol-test.c
494 interpol_test_LDADD = $(AM_LDADD) libpulse.la libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
495 interpol_test_CFLAGS = $(AM_CFLAGS)
496 interpol_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
498 sig2str_test_SOURCES = tests/sig2str-test.c
499 sig2str_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
500 sig2str_test_CFLAGS = $(AM_CFLAGS)
501 sig2str_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
503 resampler_test_SOURCES = tests/resampler-test.c
504 resampler_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
505 resampler_test_CFLAGS = $(AM_CFLAGS)
506 resampler_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
508 mix_test_SOURCES = tests/mix-test.c
509 mix_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
510 mix_test_CFLAGS = $(AM_CFLAGS)
511 mix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
513 remix_test_SOURCES = tests/remix-test.c
514 remix_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
515 remix_test_CFLAGS = $(AM_CFLAGS)
516 remix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
518 smoother_test_SOURCES = tests/smoother-test.c
519 smoother_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
520 smoother_test_CFLAGS = $(AM_CFLAGS)
521 smoother_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
523 envelope_test_SOURCES = tests/envelope-test.c
524 envelope_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
525 envelope_test_CFLAGS = $(AM_CFLAGS)
526 envelope_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
528 proplist_test_SOURCES = tests/proplist-test.c
529 proplist_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
530 proplist_test_CFLAGS = $(AM_CFLAGS)
531 proplist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
533 rtstutter_SOURCES = tests/rtstutter.c
534 rtstutter_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
535 rtstutter_CFLAGS = $(AM_CFLAGS)
536 rtstutter_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
538 stripnul_SOURCES = tests/stripnul.c
539 stripnul_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
540 stripnul_CFLAGS = $(AM_CFLAGS)
541 stripnul_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
543 lock_autospawn_test_SOURCES = tests/lock-autospawn-test.c
544 lock_autospawn_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
545 lock_autospawn_test_CFLAGS = $(AM_CFLAGS)
546 lock_autospawn_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
548 prioq_test_SOURCES = tests/prioq-test.c
549 prioq_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
550 prioq_test_CFLAGS = $(AM_CFLAGS)
551 prioq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
553 sigbus_test_SOURCES = tests/sigbus-test.c
554 sigbus_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
555 sigbus_test_CFLAGS = $(AM_CFLAGS)
556 sigbus_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
558 gtk_test_SOURCES = tests/gtk-test.c
559 gtk_test_LDADD = $(AM_LDADD) libpulse.la libpulse-mainloop-glib.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
560 gtk_test_CFLAGS = $(AM_CFLAGS) $(GTK20_CFLAGS)
561 gtk_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(GTK20_LIBS)
563 alsa_time_test_SOURCES = tests/alsa-time-test.c
564 alsa_time_test_LDADD = $(AM_LDADD)
565 alsa_time_test_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
566 alsa_time_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(ASOUNDLIB_LIBS)
568 usergroup_test_SOURCES = tests/usergroup-test.c
569 usergroup_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
570 usergroup_test_CFLAGS = $(AM_CFLAGS)
571 usergroup_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
573 ###################################
574 #         Common library          #
575 ###################################
577 lib_LTLIBRARIES = \
578                 libpulsecommon-@PA_MAJORMINOR@.la
580 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES = \
581                 pulse/client-conf.c pulse/client-conf.h \
582                 pulse/i18n.c pulse/i18n.h \
583                 pulse/fork-detect.c pulse/fork-detect.h \
584                 pulsecore/atomic.h \
585                 pulsecore/authkey.c pulsecore/authkey.h \
586                 pulsecore/conf-parser.c pulsecore/conf-parser.h \
587                 pulsecore/core-error.c pulsecore/core-error.h \
588                 pulsecore/core-rtclock.c pulsecore/core-rtclock.h \
589                 pulsecore/core-util.c pulsecore/core-util.h \
590                 pulsecore/creds.h \
591                 pulsecore/dynarray.c pulsecore/dynarray.h \
592                 pulsecore/endianmacros.h \
593                 pulsecore/flist.c pulsecore/flist.h \
594                 pulsecore/hashmap.c pulsecore/hashmap.h \
595                 pulsecore/idxset.c pulsecore/idxset.h \
596                 pulsecore/inet_ntop.c pulsecore/inet_ntop.h \
597                 pulsecore/inet_pton.c pulsecore/inet_pton.h \
598                 pulsecore/iochannel.c pulsecore/iochannel.h \
599                 pulsecore/ioline.c pulsecore/ioline.h \
600                 pulsecore/ipacl.h pulsecore/ipacl.c \
601                 pulsecore/llist.h \
602                 pulsecore/lock-autospawn.c pulsecore/lock-autospawn.h \
603                 pulsecore/log.c pulsecore/log.h \
604                 pulsecore/ratelimit.c pulsecore/ratelimit.h \
605                 pulsecore/macro.h pulsecore/vector.h \
606                 pulsecore/mcalign.c pulsecore/mcalign.h \
607                 pulsecore/memblock.c pulsecore/memblock.h \
608                 pulsecore/memblockq.c pulsecore/memblockq.h \
609                 pulsecore/memchunk.c pulsecore/memchunk.h \
610                 pulsecore/native-common.h \
611                 pulsecore/once.c pulsecore/once.h \
612                 pulsecore/packet.c pulsecore/packet.h \
613                 pulsecore/parseaddr.c pulsecore/parseaddr.h \
614                 pulsecore/pdispatch.c pulsecore/pdispatch.h \
615                 pulsecore/pid.c pulsecore/pid.h \
616                 pulsecore/pipe.c pulsecore/pipe.h \
617                 pulsecore/poll.c pulsecore/poll.h \
618                 pulsecore/prioq.c pulsecore/prioq.h \
619                 pulsecore/memtrap.c pulsecore/memtrap.h \
620                 pulsecore/aupdate.c pulsecore/aupdate.h \
621                 pulsecore/proplist-util.c pulsecore/proplist-util.h \
622                 pulsecore/pstream-util.c pulsecore/pstream-util.h \
623                 pulsecore/pstream.c pulsecore/pstream.h \
624                 pulsecore/queue.c pulsecore/queue.h \
625                 pulsecore/random.c pulsecore/random.h \
626                 pulsecore/refcnt.h \
627                 pulsecore/shm.c pulsecore/shm.h \
628                 pulsecore/bitset.c pulsecore/bitset.h \
629                 pulsecore/socket-client.c pulsecore/socket-client.h \
630                 pulsecore/socket-server.c pulsecore/socket-server.h \
631                 pulsecore/socket-util.c pulsecore/socket-util.h \
632                 pulsecore/strbuf.c pulsecore/strbuf.h \
633                 pulsecore/strlist.c pulsecore/strlist.h \
634                 pulsecore/tagstruct.c pulsecore/tagstruct.h \
635                 pulsecore/time-smoother.c pulsecore/time-smoother.h \
636                 pulsecore/tokenizer.c pulsecore/tokenizer.h \
637                 pulsecore/usergroup.c pulsecore/usergroup.h \
638                 pulsecore/sndfile-util.c pulsecore/sndfile-util.h \
639                 pulsecore/winsock.h
641 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
642 libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
643 libpulsecommon_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) $(LIBWRAP_LIBS) $(WINSOCK_LIBS) $(LTLIBICONV) $(LIBSNDFILE_LIBS)
645 if HAVE_X11
646 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += pulse/client-conf-x11.c pulse/client-conf-x11.h
647 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(X11_CFLAGS)
648 libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS += $(X11_LIBS)
649 endif
651 # proplist-util.h uses these header files, but not the library itself!
652 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(GLIB20_CFLAGS) $(GTK20_CFLAGS)
654 ## Please note that libpulsecommon implicitly also depends on<
655 ## libpulse! i.e. we have a cyclic dependancy here. Which is intended
656 ## since libpulse only includes stable, official APIs, while
657 ## libpulsecommon only includes unofficial APIs.
659 if OS_IS_WIN32
660 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
661                 pulsecore/mutex-win32.c pulsecore/mutex.h \
662                 pulsecore/thread-win32.c pulsecore/thread.h \
663                 pulsecore/semaphore-win32.c pulsecore/semaphore.h
664 else !OS_IS_WIN32
665 if OS_IS_DARWIN
666 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
667                 pulsecore/mutex-posix.c pulsecore/mutex.h \
668                 pulsecore/thread-posix.c pulsecore/thread.h \
669                 pulsecore/semaphore-osx.c pulsecore/semaphore.h
670 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += "-I/Developer/Headers/FlatCarbon/"
671 #libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS += "-framework CoreServices"
672 else !OS_IS_DARWIN
673 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
674                 pulsecore/mutex-posix.c pulsecore/mutex.h \
675                 pulsecore/thread-posix.c pulsecore/thread.h \
676                 pulsecore/semaphore-posix.c pulsecore/semaphore.h
677 endif !OS_IS_DARWIN
678 endif !OS_IS_WIN32
680 if HAVE_X11
681 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += pulsecore/x11prop.c pulsecore/x11prop.h
682 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(X11_CFLAGS)
683 libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS += $(X11_LIBS)
684 endif
686 if HAVE_LIBASYNCNS
687 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
688 libpulsecommon_@PA_MAJORMINOR@_la_LIBADD += $(LIBASYNCNS_LIBS)
689 endif
691 if OS_IS_WIN32
692 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += pulsecore/dllmain.c
693 endif
695 if HAVE_DBUS
696 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
697                 pulsecore/dbus-util.c pulsecore/dbus-util.h \
698                 pulsecore/rtkit.c pulsecore/rtkit.h
699 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(DBUS_CFLAGS)
700 libpulsecommon_@PA_MAJORMINOR@_la_LIBADD += $(DBUS_LIBS)
701 endif
703 ###################################
704 #         Client library          #
705 ###################################
707 pulseinclude_HEADERS = \
708                 pulse/cdecl.h \
709                 pulse/channelmap.h \
710                 pulse/context.h \
711                 pulse/def.h \
712                 pulse/error.h \
713                 pulse/ext-device-manager.h \
714                 pulse/ext-stream-restore.h \
715                 pulse/gccmacro.h \
716                 pulse/introspect.h \
717                 pulse/mainloop-api.h \
718                 pulse/mainloop-signal.h \
719                 pulse/mainloop.h \
720                 pulse/operation.h \
721                 pulse/proplist.h \
722                 pulse/pulseaudio.h \
723                 pulse/rtclock.h \
724                 pulse/sample.h \
725                 pulse/scache.h \
726                 pulse/simple.h \
727                 pulse/stream.h \
728                 pulse/subscribe.h \
729                 pulse/thread-mainloop.h \
730                 pulse/timeval.h \
731                 pulse/utf8.h \
732                 pulse/util.h \
733                 pulse/version.h \
734                 pulse/volume.h \
735                 pulse/xmalloc.h
737 lib_LTLIBRARIES += \
738                 libpulse.la \
739                 libpulse-simple.la
741 if HAVE_AVAHI
742 pulseinclude_HEADERS += \
743                 pulse/browser.h
745 lib_LTLIBRARIES += \
746                 libpulse-browse.la
747 endif
749 if HAVE_GLIB20
750 pulseinclude_HEADERS += \
751                 pulse/glib-mainloop.h
753 lib_LTLIBRARIES += \
754                 libpulse-mainloop-glib.la
755 endif
757 # Public interface
758 libpulse_la_SOURCES = \
759                 pulse/cdecl.h \
760                 pulse/channelmap.c pulse/channelmap.h \
761                 pulse/context.c pulse/context.h \
762                 pulse/def.h \
763                 pulse/error.c pulse/error.h \
764                 pulse/ext-device-manager.c pulse/ext-device-manager.h \
765                 pulse/ext-stream-restore.c pulse/ext-stream-restore.h \
766                 pulse/gccmacro.h \
767                 pulse/internal.h \
768                 pulse/introspect.c pulse/introspect.h \
769                 pulse/mainloop-api.c pulse/mainloop-api.h \
770                 pulse/mainloop-signal.c pulse/mainloop-signal.h \
771                 pulse/mainloop.c pulse/mainloop.h \
772                 pulse/operation.c pulse/operation.h \
773                 pulse/proplist.c pulse/proplist.h \
774                 pulse/pulseaudio.h \
775                 pulse/rtclock.c pulse/rtclock.h \
776                 pulse/sample.c pulse/sample.h \
777                 pulse/scache.c pulse/scache.h \
778                 pulse/stream.c pulse/stream.h \
779                 pulse/subscribe.c pulse/subscribe.h \
780                 pulse/thread-mainloop.c pulse/thread-mainloop.h \
781                 pulse/timeval.c pulse/timeval.h \
782                 pulse/utf8.c pulse/utf8.h \
783                 pulse/util.c pulse/util.h \
784                 pulse/volume.c pulse/volume.h \
785                 pulse/xmalloc.c pulse/xmalloc.h
787 libpulse_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
788 libpulse_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS) $(LTLIBICONV) libpulsecommon-@PA_MAJORMINOR@.la
789 libpulse_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_VERSION_INFO)
791 libpulse_simple_la_SOURCES = pulse/simple.c pulse/simple.h
792 libpulse_simple_la_CFLAGS = $(AM_CFLAGS)
793 libpulse_simple_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
794 libpulse_simple_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_SIMPLE_VERSION_INFO)
796 libpulse_browse_la_SOURCES = pulse/browser.c pulse/browser.h pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
797 libpulse_browse_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
798 libpulse_browse_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(AVAHI_LIBS)
799 libpulse_browse_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_BROWSE_VERSION_INFO)
801 libpulse_mainloop_glib_la_SOURCES = pulse/glib-mainloop.h pulse/glib-mainloop.c
802 libpulse_mainloop_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
803 libpulse_mainloop_glib_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(GLIB20_LIBS)
804 libpulse_mainloop_glib_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO)
806 ###################################
807 #         OSS emulation           #
808 ###################################
810 if HAVE_OSS_WRAPPER
811 lib_LTLIBRARIES += libpulsedsp.la
812 bin_SCRIPTS += utils/padsp
813 endif
815 libpulsedsp_la_SOURCES = utils/padsp.c
816 libpulsedsp_la_CFLAGS = $(AM_CFLAGS)
817 libpulsedsp_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
818 libpulsedsp_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version -disable-static
820 ###################################
821 #      Daemon core library        #
822 ###################################
824 lib_LTLIBRARIES += libpulsecore-@PA_MAJORMINOR@.la
826 # Pure core stuff
827 libpulsecore_@PA_MAJORMINOR@_la_SOURCES = \
828                 pulsecore/asyncmsgq.c pulsecore/asyncmsgq.h \
829                 pulsecore/asyncq.c pulsecore/asyncq.h \
830                 pulsecore/auth-cookie.c pulsecore/auth-cookie.h \
831                 pulsecore/cli-command.c pulsecore/cli-command.h \
832                 pulsecore/cli-text.c pulsecore/cli-text.h \
833                 pulsecore/client.c pulsecore/client.h \
834                 pulsecore/card.c pulsecore/card.h \
835                 pulsecore/core-scache.c pulsecore/core-scache.h \
836                 pulsecore/core-subscribe.c pulsecore/core-subscribe.h \
837                 pulsecore/core.c pulsecore/core.h \
838                 pulsecore/envelope.c pulsecore/envelope.h \
839                 pulsecore/fdsem.c pulsecore/fdsem.h \
840                 pulsecore/g711.c pulsecore/g711.h \
841                 pulsecore/hook-list.c pulsecore/hook-list.h \
842                 pulsecore/ltdl-helper.c pulsecore/ltdl-helper.h \
843                 pulsecore/modargs.c pulsecore/modargs.h \
844                 pulsecore/modinfo.c pulsecore/modinfo.h \
845                 pulsecore/module.c pulsecore/module.h \
846                 pulsecore/msgobject.c pulsecore/msgobject.h \
847                 pulsecore/namereg.c pulsecore/namereg.h \
848                 pulsecore/object.c pulsecore/object.h \
849                 pulsecore/play-memblockq.c pulsecore/play-memblockq.h \
850                 pulsecore/play-memchunk.c pulsecore/play-memchunk.h \
851                 pulsecore/remap.c pulsecore/remap.h \
852                 pulsecore/remap_mmx.c pulsecore/remap_sse.c \
853                 pulsecore/resampler.c pulsecore/resampler.h \
854                 pulsecore/rtpoll.c pulsecore/rtpoll.h \
855                 pulsecore/sample-util.c pulsecore/sample-util.h \
856                 pulsecore/cpu.h \
857                 pulsecore/cpu-arm.c pulsecore/cpu-arm.h \
858                 pulsecore/cpu-x86.c pulsecore/cpu-x86.h \
859                 pulsecore/svolume_c.c pulsecore/svolume_arm.c \
860                 pulsecore/svolume_mmx.c pulsecore/svolume_sse.c \
861                 pulsecore/sconv-s16be.c pulsecore/sconv-s16be.h \
862                 pulsecore/sconv-s16le.c pulsecore/sconv-s16le.h \
863                 pulsecore/sconv_sse.c \
864                 pulsecore/sconv.c pulsecore/sconv.h \
865                 pulsecore/shared.c pulsecore/shared.h \
866                 pulsecore/shm.c pulsecore/shm.h \
867                 pulsecore/sink-input.c pulsecore/sink-input.h \
868                 pulsecore/sink.c pulsecore/sink.h \
869                 pulsecore/sioman.c pulsecore/sioman.h \
870                 pulsecore/sound-file-stream.c pulsecore/sound-file-stream.h \
871                 pulsecore/sound-file.c pulsecore/sound-file.h \
872                 pulsecore/source-output.c pulsecore/source-output.h \
873                 pulsecore/source.c pulsecore/source.h \
874                 pulsecore/start-child.c pulsecore/start-child.h \
875                 pulsecore/thread-mq.c pulsecore/thread-mq.h \
876                 pulsecore/time-smoother.c pulsecore/time-smoother.h \
877                 pulsecore/database.h
879 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSPEEX_CFLAGS) $(WINSOCK_CFLAGS)
880 libpulsecore_@PA_MAJORMINOR@_la_LDFLAGS = -avoid-version
881 libpulsecore_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSPEEX_LIBS) $(WINSOCK_LIBS) $(LTLIBICONV) libpulsecommon-@PA_MAJORMINOR@.la libpulse.la libpulsecore-foreign.la
883 if HAVE_X11
884 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/x11wrap.c pulsecore/x11wrap.h
885 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(X11_CFLAGS)
886 libpulsecore_@PA_MAJORMINOR@_la_LDFLAGS += $(X11_LIBS)
887 endif
889 if HAVE_DBUS
890 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += \
891                 pulsecore/dbus-shared.c pulsecore/dbus-shared.h \
892                 pulsecore/protocol-dbus.c pulsecore/protocol-dbus.h
893 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(DBUS_CFLAGS)
894 libpulsecore_@PA_MAJORMINOR@_la_LIBADD += $(DBUS_LIBS)
895 endif
897 if HAVE_GDBM
898 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/database-gdbm.c
899 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(GDBM_CFLAGS)
900 libpulsecore_@PA_MAJORMINOR@_la_LIBADD += $(GDBM_LIBS)
901 endif
903 if HAVE_TDB
904 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/database-tdb.c
905 libpulsecore_@PA_MAJORMINOR@_la_CFLAGS += $(TDB_CFLAGS)
906 libpulsecore_@PA_MAJORMINOR@_la_LIBADD += $(TDB_LIBS)
907 endif
909 if HAVE_SIMPLEDB
910 libpulsecore_@PA_MAJORMINOR@_la_SOURCES += pulsecore/database-simple.c
911 endif
913 # We split the foreign code off to not be annoyed by warnings we don't care about
914 noinst_LTLIBRARIES = libpulsecore-foreign.la
916 libpulsecore_foreign_la_SOURCES = \
917                 pulsecore/ffmpeg/resample2.c pulsecore/ffmpeg/avcodec.h pulsecore/ffmpeg/dsputil.h
919 libpulsecore_foreign_la_CFLAGS = $(AM_CFLAGS) $(FOREIGN_CFLAGS)
921 ###################################
922 #   Plug-in support libraries     #
923 ###################################
925 ### Warning! Due to an obscure bug in libtool/automake it is required
926 ### that the libraries in modlibexec_LTLIBRARIES are specified in-order,
927 ### i.e. libraries near the end of the list depend on libraries near
928 ### the head, and not the other way!
930 modlibexec_LTLIBRARIES = \
931                 libcli.la \
932                 libprotocol-cli.la \
933                 libprotocol-simple.la \
934                 libprotocol-http.la \
935                 libprotocol-native.la \
936                 libprotocol-esound.la
938 # We need to emulate sendmsg/recvmsg to support this on Win32
939 if !OS_IS_WIN32
940 modlibexec_LTLIBRARIES += \
941                 librtp.la
942 endif
944 if HAVE_AVAHI
945 modlibexec_LTLIBRARIES += \
946                 libavahi-wrap.la
947 endif
949 libprotocol_simple_la_SOURCES = pulsecore/protocol-simple.c pulsecore/protocol-simple.h
950 libprotocol_simple_la_LDFLAGS = -avoid-version
951 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
953 libcli_la_SOURCES = pulsecore/cli.c pulsecore/cli.h
954 libcli_la_LDFLAGS = -avoid-version
955 libcli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
957 libprotocol_cli_la_SOURCES = pulsecore/protocol-cli.c pulsecore/protocol-cli.h
958 libprotocol_cli_la_LDFLAGS = -avoid-version
959 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la libcli.la
961 libprotocol_http_la_SOURCES = pulsecore/protocol-http.c pulsecore/protocol-http.h pulsecore/mime-type.c pulsecore/mime-type.h
962 libprotocol_http_la_LDFLAGS = -avoid-version
963 libprotocol_http_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
965 libprotocol_native_la_SOURCES = pulsecore/protocol-native.c pulsecore/protocol-native.h pulsecore/native-common.h
966 libprotocol_native_la_LDFLAGS = -avoid-version
967 libprotocol_native_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
969 libprotocol_esound_la_SOURCES = pulsecore/protocol-esound.c pulsecore/protocol-esound.h pulsecore/esound.h
970 libprotocol_esound_la_LDFLAGS = -avoid-version
971 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
973 librtp_la_SOURCES = \
974                 modules/rtp/rtp.c modules/rtp/rtp.h \
975                 modules/rtp/sdp.c modules/rtp/sdp.h \
976                 modules/rtp/sap.c modules/rtp/sap.h \
977                 modules/rtp/rtsp_client.c modules/rtp/rtsp_client.h \
978                 modules/rtp/headerlist.c modules/rtp/headerlist.h
979 librtp_la_LDFLAGS = -avoid-version
980 librtp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
982 libraop_la_SOURCES = \
983         modules/raop/raop_client.c modules/raop/raop_client.h \
984         modules/raop/base64.c modules/raop/base64.h
985 libraop_la_CFLAGS = $(AM_CFLAGS) $(OPENSSL_CFLAGS)
986 libraop_la_LDFLAGS = -avoid-version
987 libraop_la_LIBADD = $(AM_LIBADD) $(OPENSSL_LIBS) libpulsecore-@PA_MAJORMINOR@.la librtp.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
989 # Avahi
990 libavahi_wrap_la_SOURCES = pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
991 libavahi_wrap_la_LDFLAGS = -avoid-version
992 libavahi_wrap_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
993 libavahi_wrap_la_LIBADD = $(AM_LIBADD) $(AVAHI_CFLAGS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
995 ###################################
996 #        Plug-in libraries        #
997 ###################################
999 if HAVE_DBUS
1000 # Serveral module (e.g. libalsa-util.la)
1001 modlibexec_LTLIBRARIES += \
1002                 module-console-kit.la
1003 endif
1005 modlibexec_LTLIBRARIES += \
1006                 module-cli.la \
1007                 module-cli-protocol-tcp.la \
1008                 module-simple-protocol-tcp.la \
1009                 module-null-sink.la \
1010                 module-sine-source.la \
1011                 module-detect.la \
1012                 module-volume-restore.la \
1013                 module-device-manager.la \
1014                 module-device-restore.la \
1015                 module-stream-restore.la \
1016                 module-card-restore.la \
1017                 module-default-device-restore.la \
1018                 module-always-sink.la \
1019                 module-rescue-streams.la \
1020                 module-intended-roles.la \
1021                 module-suspend-on-idle.la \
1022                 module-echo-cancel.la \
1023                 module-http-protocol-tcp.la \
1024                 module-sine.la \
1025                 module-native-protocol-tcp.la \
1026                 module-native-protocol-fd.la \
1027                 module-esound-protocol-tcp.la \
1028                 module-combine.la \
1029                 module-remap-sink.la \
1030                 module-ladspa-sink.la \
1031                 module-esound-sink.la \
1032                 module-tunnel-sink.la \
1033                 module-tunnel-source.la \
1034                 module-position-event-sounds.la \
1035                 module-augment-properties.la \
1036                 module-cork-music-on-phone.la \
1037                 module-loopback.la \
1038                 module-virtual-sink.la \
1039                 module-virtual-source.la
1041 # See comment at librtp.la above
1042 if !OS_IS_WIN32
1043 modlibexec_LTLIBRARIES += \
1044                 module-rtp-send.la \
1045                 module-rtp-recv.la
1046 endif
1048 if HAVE_AF_UNIX
1049 modlibexec_LTLIBRARIES += \
1050                 module-cli-protocol-unix.la \
1051                 module-simple-protocol-unix.la \
1052                 module-http-protocol-unix.la \
1053                 module-native-protocol-unix.la \
1054                 module-esound-protocol-unix.la
1055 endif
1057 if HAVE_MKFIFO
1058 modlibexec_LTLIBRARIES += \
1059                 module-pipe-sink.la \
1060                 module-pipe-source.la
1061 endif
1063 if !OS_IS_WIN32
1064 modlibexec_LTLIBRARIES += \
1065                 module-esound-compat-spawnfd.la \
1066                 module-esound-compat-spawnpid.la
1067 endif
1069 if HAVE_REGEX
1070 modlibexec_LTLIBRARIES += \
1071                 module-match.la
1072 endif
1074 if HAVE_X11
1075 modlibexec_LTLIBRARIES += \
1076                 module-x11-bell.la \
1077                 module-x11-publish.la \
1078                 module-x11-xsmp.la \
1079                 module-x11-cork-request.la
1080 endif
1082 if HAVE_OSS_OUTPUT
1083 modlibexec_LTLIBRARIES += \
1084                 liboss-util.la \
1085                 module-oss.la
1086 endif
1088 if HAVE_COREAUDIO
1089 modlibexec_LTLIBRARIES += \
1090                 module-coreaudio-detect.la \
1091                 module-coreaudio-device.la
1092 endif
1094 pulselibexec_PROGRAMS =
1096 if HAVE_ALSA
1097 modlibexec_LTLIBRARIES += \
1098                 libalsa-util.la \
1099                 module-alsa-sink.la \
1100                 module-alsa-source.la \
1101                 module-alsa-card.la
1103 dist_alsaprofilesets_DATA = \
1104                 modules/alsa/mixer/profile-sets/default.conf \
1105                 modules/alsa/mixer/profile-sets/maudio-fasttrack-pro.conf \
1106                 modules/alsa/mixer/profile-sets/native-instruments-audio4dj.conf \
1107                 modules/alsa/mixer/profile-sets/native-instruments-audio8dj.conf \
1108                 modules/alsa/mixer/profile-sets/native-instruments-traktorkontrol-s4.conf \
1109                 modules/alsa/mixer/profile-sets/native-instruments-korecontroller.conf
1111 if HAVE_UDEV
1112 dist_udevrules_DATA = \
1113                 modules/alsa/mixer/profile-sets/90-pulseaudio.rules
1114 endif
1116 dist_alsapaths_DATA = \
1117                 modules/alsa/mixer/paths/analog-input-aux.conf \
1118                 modules/alsa/mixer/paths/analog-input.conf \
1119                 modules/alsa/mixer/paths/analog-input.conf.common \
1120                 modules/alsa/mixer/paths/analog-input-fm.conf \
1121                 modules/alsa/mixer/paths/analog-input-internal-mic.conf \
1122                 modules/alsa/mixer/paths/analog-input-linein.conf \
1123                 modules/alsa/mixer/paths/analog-input-mic.conf \
1124                 modules/alsa/mixer/paths/analog-input-mic.conf.common \
1125                 modules/alsa/mixer/paths/analog-input-mic-line.conf \
1126                 modules/alsa/mixer/paths/analog-input-tvtuner.conf \
1127                 modules/alsa/mixer/paths/analog-input-video.conf \
1128                 modules/alsa/mixer/paths/analog-output.conf \
1129                 modules/alsa/mixer/paths/analog-output-speaker.conf \
1130                 modules/alsa/mixer/paths/analog-output.conf.common \
1131                 modules/alsa/mixer/paths/analog-output-desktop-speaker.conf \
1132                 modules/alsa/mixer/paths/analog-output-headphones.conf \
1133                 modules/alsa/mixer/paths/analog-output-headphones-2.conf \
1134                 modules/alsa/mixer/paths/analog-output-lfe-on-mono.conf \
1135                 modules/alsa/mixer/paths/analog-output-mono.conf \
1136                 modules/alsa/mixer/paths/iec958-stereo-output.conf \
1137                 modules/alsa/mixer/paths/iec958-passthrough-output.conf
1139 endif
1141 if HAVE_SOLARIS
1142 modlibexec_LTLIBRARIES += \
1143                 module-solaris.la
1144 endif
1146 if HAVE_AVAHI
1147 modlibexec_LTLIBRARIES += \
1148                 module-zeroconf-publish.la \
1149                 module-zeroconf-discover.la
1150 endif
1152 if HAVE_BONJOUR
1153 modlibexec_LTLIBRARIES += \
1154                 module-bonjour-publish.la
1155 endif
1157 if HAVE_LIRC
1158 modlibexec_LTLIBRARIES += \
1159                 module-lirc.la
1160 endif
1162 if HAVE_EVDEV
1163 modlibexec_LTLIBRARIES += \
1164                 module-mmkbd-evdev.la
1165 endif
1167 if HAVE_JACK
1168 modlibexec_LTLIBRARIES += \
1169                 module-jack-sink.la \
1170                 module-jack-source.la
1171 endif
1173 if HAVE_GCONF
1174 modlibexec_LTLIBRARIES += \
1175                 module-gconf.la
1177 pulselibexec_PROGRAMS += \
1178                 gconf-helper
1179 endif
1181 #if OS_IS_WIN32
1182 #modlibexec_LTLIBRARIES += \
1183 #               module-waveout.la
1184 #endif
1186 if HAVE_HAL
1187 modlibexec_LTLIBRARIES += \
1188                 module-hal-detect.la
1189 endif
1191 if HAVE_HAL_COMPAT
1192 modlibexec_LTLIBRARIES += \
1193                 module-hal-detect.la
1194 endif
1196 if HAVE_UDEV
1197 modlibexec_LTLIBRARIES += \
1198                 module-udev-detect.la
1199 endif
1201 if HAVE_DBUS
1202 modlibexec_LTLIBRARIES += \
1203                 module-rygel-media-server.la \
1204                 module-dbus-protocol.la
1205 endif
1207 if HAVE_BLUEZ
1208 modlibexec_LTLIBRARIES += \
1209                 libbluetooth-util.la \
1210                 module-bluetooth-proximity.la \
1211                 module-bluetooth-discover.la \
1212                 libbluetooth-ipc.la \
1213                 libbluetooth-sbc.la \
1214                 module-bluetooth-device.la
1216 pulselibexec_PROGRAMS += \
1217                 proximity-helper
1218 endif
1220 if HAVE_OPENSSL
1221 modlibexec_LTLIBRARIES += \
1222                 libraop.la \
1223                 module-raop-sink.la
1224 if HAVE_AVAHI
1225 modlibexec_LTLIBRARIES += \
1226                 module-raop-discover.la
1227 endif
1228 endif
1230 if HAVE_FFTW
1231 modlibexec_LTLIBRARIES += \
1232                 module-equalizer-sink.la
1233 bin_SCRIPTS += utils/qpaeq
1234 endif
1236 # These are generated by an M4 script
1237 SYMDEF_FILES = \
1238                 modules/module-cli-symdef.h \
1239                 modules/module-cli-protocol-tcp-symdef.h \
1240                 modules/module-cli-protocol-unix-symdef.h \
1241                 modules/module-pipe-sink-symdef.h \
1242                 modules/module-pipe-source-symdef.h \
1243                 modules/module-simple-protocol-tcp-symdef.h \
1244                 modules/module-simple-protocol-unix-symdef.h \
1245                 modules/module-esound-protocol-tcp-symdef.h \
1246                 modules/module-esound-protocol-unix-symdef.h \
1247                 modules/module-native-protocol-tcp-symdef.h \
1248                 modules/module-native-protocol-unix-symdef.h \
1249                 modules/module-native-protocol-fd-symdef.h \
1250                 modules/module-sine-symdef.h \
1251                 modules/module-combine-symdef.h \
1252                 modules/module-remap-sink-symdef.h \
1253                 modules/module-ladspa-sink-symdef.h \
1254                 modules/module-equalizer-sink-symdef.h \
1255                 modules/module-esound-compat-spawnfd-symdef.h \
1256                 modules/module-esound-compat-spawnpid-symdef.h \
1257                 modules/module-match-symdef.h \
1258                 modules/module-tunnel-sink-symdef.h \
1259                 modules/module-tunnel-source-symdef.h \
1260                 modules/module-null-sink-symdef.h \
1261                 modules/module-sine-source-symdef.h \
1262                 modules/module-esound-sink-symdef.h \
1263                 modules/module-zeroconf-publish-symdef.h \
1264                 modules/module-zeroconf-discover-symdef.h \
1265                 modules/module-bonjour-publish-symdef.h \
1266                 modules/module-lirc-symdef.h \
1267                 modules/module-mmkbd-evdev-symdef.h \
1268                 modules/module-http-protocol-tcp-symdef.h \
1269                 modules/module-http-protocol-unix-symdef.h \
1270                 modules/module-rygel-media-server-symdef.h \
1271                 modules/x11/module-x11-bell-symdef.h \
1272                 modules/x11/module-x11-publish-symdef.h \
1273                 modules/x11/module-x11-xsmp-symdef.h \
1274                 modules/x11/module-x11-cork-request-symdef.h \
1275                 modules/oss/module-oss-symdef.h \
1276                 modules/alsa/module-alsa-sink-symdef.h \
1277                 modules/alsa/module-alsa-source-symdef.h \
1278                 modules/alsa/module-alsa-card-symdef.h \
1279                 modules/coreaudio/module-coreaudio-detect-symdef.h \
1280                 modules/coreaudio/module-coreaudio-device-symdef.h \
1281                 modules/module-solaris-symdef.h \
1282                 modules/module-waveout-symdef.h \
1283                 modules/module-detect-symdef.h \
1284                 modules/rtp/module-rtp-send-symdef.h \
1285                 modules/rtp/module-rtp-recv-symdef.h \
1286                 modules/jack/module-jack-sink-symdef.h \
1287                 modules/jack/module-jack-source-symdef.h \
1288                 modules/module-volume-restore-symdef.h \
1289                 modules/module-device-manager-symdef.h \
1290                 modules/module-device-restore-symdef.h \
1291                 modules/module-stream-restore-symdef.h \
1292                 modules/module-card-restore-symdef.h \
1293                 modules/module-default-device-restore-symdef.h \
1294                 modules/module-always-sink-symdef.h \
1295                 modules/module-rescue-streams-symdef.h \
1296                 modules/module-intended-roles-symdef.h \
1297                 modules/module-suspend-on-idle-symdef.h \
1298                 modules/echo-cancel/module-echo-cancel-symdef.h \
1299                 modules/module-hal-detect-symdef.h \
1300                 modules/module-udev-detect-symdef.h \
1301                 modules/bluetooth/module-bluetooth-proximity-symdef.h \
1302                 modules/bluetooth/module-bluetooth-discover-symdef.h \
1303                 modules/bluetooth/module-bluetooth-device-symdef.h \
1304                 modules/raop/module-raop-sink-symdef.h \
1305                 modules/raop/module-raop-discover-symdef.h \
1306                 modules/gconf/module-gconf-symdef.h \
1307                 modules/module-position-event-sounds-symdef.h \
1308                 modules/module-augment-properties-symdef.h \
1309                 modules/module-cork-music-on-phone-symdef.h \
1310                 modules/module-console-kit-symdef.h \
1311                 modules/dbus/module-dbus-protocol-symdef.h \
1312                 modules/module-loopback-symdef.h \
1313                 modules/module-virtual-sink-symdef.h \
1314                 modules/module-virtual-source-symdef.h
1316 EXTRA_DIST += $(SYMDEF_FILES)
1317 BUILT_SOURCES += $(SYMDEF_FILES)
1319 $(SYMDEF_FILES): modules/module-defs.h.m4
1320         $(MKDIR_P) $(dir $@)
1321         $(M4) -Dfname="$@" $< > $@
1323 # Simple protocol
1325 module_simple_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1326 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1327 module_simple_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1328 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-simple.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1330 module_simple_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1331 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1332 module_simple_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1333 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-simple.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1335 # CLI protocol
1337 module_cli_la_SOURCES = modules/module-cli.c
1338 module_cli_la_LDFLAGS = $(MODULE_LDFLAGS)
1339 module_cli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libcli.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1341 module_cli_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1342 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1343 module_cli_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1344 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-cli.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1346 module_cli_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1347 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1348 module_cli_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1349 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-cli.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1351 # HTTP protocol
1353 module_http_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1354 module_http_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1355 module_http_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1356 module_http_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-http.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1358 module_http_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1359 module_http_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1360 module_http_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1361 module_http_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-http.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1363 # D-Bus protocol
1365 module_dbus_protocol_la_SOURCES = \
1366                 modules/dbus/iface-card.c modules/dbus/iface-card.h \
1367                 modules/dbus/iface-card-profile.c modules/dbus/iface-card-profile.h \
1368                 modules/dbus/iface-client.c modules/dbus/iface-client.h \
1369                 modules/dbus/iface-core.c modules/dbus/iface-core.h \
1370                 modules/dbus/iface-device.c modules/dbus/iface-device.h \
1371                 modules/dbus/iface-device-port.c modules/dbus/iface-device-port.h \
1372                 modules/dbus/iface-memstats.c modules/dbus/iface-memstats.h \
1373                 modules/dbus/iface-module.c modules/dbus/iface-module.h \
1374                 modules/dbus/iface-sample.c modules/dbus/iface-sample.h \
1375                 modules/dbus/iface-stream.c modules/dbus/iface-stream.h \
1376                 modules/dbus/module-dbus-protocol.c
1377 module_dbus_protocol_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1378 module_dbus_protocol_la_LDFLAGS = $(MODULE_LDFLAGS)
1379 module_dbus_protocol_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1381 # Native protocol
1383 module_native_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1384 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1385 module_native_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1386 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-native.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1388 module_native_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1389 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1390 module_native_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1391 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-native.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1393 module_native_protocol_fd_la_SOURCES = modules/module-native-protocol-fd.c
1394 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
1395 module_native_protocol_fd_la_LDFLAGS = $(MODULE_LDFLAGS)
1396 module_native_protocol_fd_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-native.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1398 # EsounD protocol
1400 module_esound_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1401 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1402 module_esound_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1403 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-esound.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1405 module_esound_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1406 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1407 module_esound_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1408 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libprotocol-esound.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1410 module_esound_compat_spawnfd_la_SOURCES = modules/module-esound-compat-spawnfd.c
1411 module_esound_compat_spawnfd_la_LDFLAGS = $(MODULE_LDFLAGS)
1412 module_esound_compat_spawnfd_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1414 module_esound_compat_spawnpid_la_SOURCES = modules/module-esound-compat-spawnpid.c
1415 module_esound_compat_spawnpid_la_LDFLAGS = $(MODULE_LDFLAGS)
1416 module_esound_compat_spawnpid_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1418 module_esound_sink_la_SOURCES = modules/module-esound-sink.c
1419 module_esound_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1420 module_esound_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1422 # Pipes
1424 module_pipe_sink_la_SOURCES = modules/module-pipe-sink.c
1425 module_pipe_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1426 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1428 module_pipe_source_la_SOURCES = modules/module-pipe-source.c
1429 module_pipe_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1430 module_pipe_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1432 # Fake sources/sinks
1434 module_sine_la_SOURCES = modules/module-sine.c
1435 module_sine_la_LDFLAGS = $(MODULE_LDFLAGS)
1436 module_sine_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1438 module_null_sink_la_SOURCES = modules/module-null-sink.c
1439 module_null_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1440 module_null_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1442 module_sine_source_la_SOURCES = modules/module-sine-source.c
1443 module_sine_source_la_LDFLAGS = -module -avoid-version
1444 module_sine_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1446 # Couplings
1448 module_combine_la_SOURCES = modules/module-combine.c
1449 module_combine_la_LDFLAGS = $(MODULE_LDFLAGS)
1450 module_combine_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1452 module_remap_sink_la_SOURCES = modules/module-remap-sink.c
1453 module_remap_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1454 module_remap_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1456 module_ladspa_sink_la_SOURCES = modules/module-ladspa-sink.c modules/ladspa.h
1457 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)
1458 module_ladspa_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1459 module_ladspa_sink_la_LIBADD = $(AM_LIBADD) $(LIBLTDL) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1461 module_equalizer_sink_la_SOURCES = modules/module-equalizer-sink.c
1462 module_equalizer_sink_la_CFLAGS = $(AM_CFLAGS) $(FFTW_CFLAGS)
1463 module_equalizer_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1464 module_equalizer_sink_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) $(FFTW_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1466 module_match_la_SOURCES = modules/module-match.c
1467 module_match_la_LDFLAGS = $(MODULE_LDFLAGS)
1468 module_match_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1470 module_tunnel_sink_la_SOURCES = modules/module-tunnel.c
1471 module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS)
1472 module_tunnel_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1473 module_tunnel_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1475 module_tunnel_source_la_SOURCES = modules/module-tunnel.c
1476 module_tunnel_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1477 module_tunnel_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1479 module_loopback_la_SOURCES = modules/module-loopback.c
1480 module_loopback_la_LDFLAGS = $(MODULE_LDFLAGS)
1481 module_loopback_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1483 module_virtual_sink_la_SOURCES = modules/module-virtual-sink.c
1484 module_virtual_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1485 module_virtual_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1487 module_virtual_source_la_SOURCES = modules/module-virtual-source.c
1488 module_virtual_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1489 module_virtual_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1491 # X11
1493 module_x11_bell_la_SOURCES = modules/x11/module-x11-bell.c
1494 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1495 module_x11_bell_la_LDFLAGS = $(MODULE_LDFLAGS)
1496 module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1498 module_x11_publish_la_SOURCES = modules/x11/module-x11-publish.c
1499 module_x11_publish_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1500 module_x11_publish_la_LDFLAGS = $(MODULE_LDFLAGS)
1501 module_x11_publish_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libprotocol-native.la libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1503 module_x11_xsmp_la_SOURCES = modules/x11/module-x11-xsmp.c
1504 module_x11_xsmp_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1505 module_x11_xsmp_la_LDFLAGS = $(MODULE_LDFLAGS)
1506 module_x11_xsmp_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1508 module_x11_cork_request_la_SOURCES = modules/x11/module-x11-cork-request.c
1509 module_x11_cork_request_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1510 module_x11_cork_request_la_LDFLAGS = $(MODULE_LDFLAGS)
1511 module_x11_cork_request_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1513 # OSS
1515 liboss_util_la_SOURCES = modules/oss/oss-util.c modules/oss/oss-util.h
1516 liboss_util_la_LDFLAGS = -avoid-version
1517 liboss_util_la_LIBADD = libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1519 module_oss_la_SOURCES = modules/oss/module-oss.c
1520 module_oss_la_LDFLAGS = $(MODULE_LDFLAGS)
1521 module_oss_la_LIBADD = $(AM_LIBADD) liboss-util.la libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1523 # COREAUDIO
1525 module_coreaudio_detect_la_SOURCES = modules/coreaudio/module-coreaudio-detect.c
1526 module_coreaudio_detect_la_LDFLAGS = $(MODULE_LDFLAGS) \
1527                         -Wl,-framework -Wl,Cocoa -framework CoreAudio \
1528                         -Wl,-framework -Wl,AudioUnit -framework AudioUnit
1529 module_coreaudio_detect_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1531 module_coreaudio_device_la_SOURCES = modules/coreaudio/module-coreaudio-device.c
1532 module_coreaudio_device_la_LDFLAGS = $(MODULE_LDFLAGS) \
1533                         -Wl,-framework -Wl,Cocoa -framework CoreAudio \
1534                         -Wl,-framework -Wl,AudioUnit -framework AudioUnit
1535 module_coreaudio_device_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1536 # ALSA
1538 libalsa_util_la_SOURCES = modules/alsa/alsa-util.c modules/alsa/alsa-util.h modules/alsa/alsa-mixer.c modules/alsa/alsa-mixer.h modules/alsa/alsa-sink.c modules/alsa/alsa-sink.h modules/alsa/alsa-source.c modules/alsa/alsa-source.h modules/reserve-wrap.c modules/reserve-wrap.h
1539 libalsa_util_la_LDFLAGS = -avoid-version
1540 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1541 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1543 if HAVE_HAL
1544 libalsa_util_la_SOURCES += modules/hal-util.h modules/hal-util.c
1545 libalsa_util_la_LIBADD += $(HAL_LIBS)
1546 libalsa_util_la_CFLAGS += $(HAL_CFLAGS)
1547 endif
1549 if HAVE_UDEV
1550 libalsa_util_la_SOURCES += modules/udev-util.h modules/udev-util.c
1551 libalsa_util_la_LIBADD += $(UDEV_LIBS)
1552 libalsa_util_la_CFLAGS += $(UDEV_CFLAGS)
1553 endif
1555 if HAVE_DBUS
1556 libalsa_util_la_SOURCES += modules/reserve.h modules/reserve.c modules/reserve-monitor.h modules/reserve-monitor.c
1557 libalsa_util_la_LIBADD += $(DBUS_LIBS)
1558 libalsa_util_la_CFLAGS += $(DBUS_CFLAGS)
1559 endif
1561 module_alsa_sink_la_SOURCES = modules/alsa/module-alsa-sink.c
1562 module_alsa_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1563 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1564 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1566 module_alsa_source_la_SOURCES = modules/alsa/module-alsa-source.c
1567 module_alsa_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1568 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1569 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1571 module_alsa_card_la_SOURCES = modules/alsa/module-alsa-card.c
1572 module_alsa_card_la_LDFLAGS = $(MODULE_LDFLAGS)
1573 module_alsa_card_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1574 module_alsa_card_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1576 # Solaris
1578 module_solaris_la_SOURCES = modules/module-solaris.c
1579 module_solaris_la_LDFLAGS = $(MODULE_LDFLAGS)
1580 module_solaris_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1582 # Avahi
1584 module_zeroconf_publish_la_SOURCES = modules/module-zeroconf-publish.c
1585 module_zeroconf_publish_la_LDFLAGS = $(MODULE_LDFLAGS)
1586 module_zeroconf_publish_la_LIBADD = $(AM_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libprotocol-native.la libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1587 module_zeroconf_publish_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1589 module_zeroconf_discover_la_SOURCES = modules/module-zeroconf-discover.c
1590 module_zeroconf_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1591 module_zeroconf_discover_la_LIBADD = $(AM_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1592 module_zeroconf_discover_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1594 # Bonjour
1596 module_bonjour_publish_la_SOURCES = modules/module-bonjour-publish.c
1597 module_bonjour_publish_la_LDFLAGS = $(MODULE_LDFLAGS) \
1598                         -Wl,-framework -Wl,CoreFoundation -framework CoreFoundation
1599 module_bonjour_publish_la_LIBADD = libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1601 # LIRC
1603 module_lirc_la_SOURCES = modules/module-lirc.c
1604 module_lirc_la_LDFLAGS = $(MODULE_LDFLAGS)
1605 module_lirc_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(LIRC_LIBS)
1606 module_lirc_la_CFLAGS = $(AM_CFLAGS) $(LIRC_CFLAGS)
1608 # Linux evdev
1610 module_mmkbd_evdev_la_SOURCES = modules/module-mmkbd-evdev.c
1611 module_mmkbd_evdev_la_LDFLAGS = $(MODULE_LDFLAGS)
1612 module_mmkbd_evdev_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1613 module_mmkbd_evdev_la_CFLAGS = $(AM_CFLAGS)
1615 # Windows waveout
1617 #module_waveout_la_SOURCES = modules/module-waveout.c
1618 #module_waveout_la_LDFLAGS = $(MODULE_LDFLAGS)
1619 #module_waveout_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la -lwinmm libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1620 #module_waveout_la_CFLAGS = $(AM_CFLAGS)
1622 # Hardware autodetection module
1623 module_detect_la_SOURCES = modules/module-detect.c
1624 module_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1625 module_detect_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1626 module_detect_la_CFLAGS = $(AM_CFLAGS)
1628 # Volume restore module
1629 module_volume_restore_la_SOURCES = modules/module-volume-restore.c
1630 module_volume_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1631 module_volume_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1632 module_volume_restore_la_CFLAGS = $(AM_CFLAGS)
1634 # Position event sounds in space
1635 module_position_event_sounds_la_SOURCES = modules/module-position-event-sounds.c
1636 module_position_event_sounds_la_LDFLAGS = $(MODULE_LDFLAGS)
1637 module_position_event_sounds_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1638 module_position_event_sounds_la_CFLAGS = $(AM_CFLAGS)
1640 # Augment properties from XDG .desktop files
1641 module_augment_properties_la_SOURCES = modules/module-augment-properties.c
1642 module_augment_properties_la_LDFLAGS = $(MODULE_LDFLAGS)
1643 module_augment_properties_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1644 #module_augment_properties_la_CFLAGS = $(AM_CFLAGS) -DDESKTOPFILEDIR=\"$(datadir)/applications\"
1645 module_augment_properties_la_CFLAGS = $(AM_CFLAGS) -DDESKTOPFILEDIR=\"/usr/share/applications\"
1647 # Cork music streams while a phone stream is active
1648 module_cork_music_on_phone_la_SOURCES = modules/module-cork-music-on-phone.c
1649 module_cork_music_on_phone_la_LDFLAGS = $(MODULE_LDFLAGS)
1650 module_cork_music_on_phone_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1651 module_cork_music_on_phone_la_CFLAGS = $(AM_CFLAGS)
1653 # Device description restore module
1654 module_device_manager_la_SOURCES = modules/module-device-manager.c
1655 module_device_manager_la_LDFLAGS = $(MODULE_LDFLAGS)
1656 module_device_manager_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1657 module_device_manager_la_CFLAGS = $(AM_CFLAGS)
1659 # Device volume/muted restore module
1660 module_device_restore_la_SOURCES = modules/module-device-restore.c
1661 module_device_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1662 module_device_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1663 module_device_restore_la_CFLAGS = $(AM_CFLAGS)
1665 # Stream volume/muted/device restore module
1666 module_stream_restore_la_SOURCES = modules/module-stream-restore.c
1667 module_stream_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1668 module_stream_restore_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1669 module_stream_restore_la_CFLAGS = $(AM_CFLAGS)
1671 if HAVE_DBUS
1672 module_stream_restore_la_LIBADD += $(DBUS_LIBS)
1673 module_stream_restore_la_CFLAGS += $(DBUS_CFLAGS)
1674 endif
1676 # Card profile restore module
1677 module_card_restore_la_SOURCES = modules/module-card-restore.c
1678 module_card_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1679 module_card_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1680 module_card_restore_la_CFLAGS = $(AM_CFLAGS)
1682 # Default sink/source restore module
1683 module_default_device_restore_la_SOURCES = modules/module-default-device-restore.c
1684 module_default_device_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1685 module_default_device_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1686 module_default_device_restore_la_CFLAGS = $(AM_CFLAGS)
1688 # Always Sink module
1689 module_always_sink_la_SOURCES = modules/module-always-sink.c
1690 module_always_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1691 module_always_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1692 module_always_sink_la_CFLAGS = $(AM_CFLAGS)
1694 # Rescue streams module
1695 module_rescue_streams_la_SOURCES = modules/module-rescue-streams.c
1696 module_rescue_streams_la_LDFLAGS = $(MODULE_LDFLAGS)
1697 module_rescue_streams_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1698 module_rescue_streams_la_CFLAGS = $(AM_CFLAGS)
1700 # Automatically move streams to devices that are intended for their roles
1701 module_intended_roles_la_SOURCES = modules/module-intended-roles.c
1702 module_intended_roles_la_LDFLAGS = $(MODULE_LDFLAGS)
1703 module_intended_roles_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1704 module_intended_roles_la_CFLAGS = $(AM_CFLAGS)
1706 # Suspend-on-idle module
1707 module_suspend_on_idle_la_SOURCES = modules/module-suspend-on-idle.c
1708 module_suspend_on_idle_la_LDFLAGS = $(MODULE_LDFLAGS)
1709 module_suspend_on_idle_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1710 module_suspend_on_idle_la_CFLAGS = $(AM_CFLAGS)
1712 # echo-cancel module
1713 ORC_SOURCE=modules/echo-cancel/adrian-aec-orc
1714 include $(top_srcdir)/build/orc.mak
1715 module_echo_cancel_la_SOURCES = modules/echo-cancel/module-echo-cancel.c modules/echo-cancel/echo-cancel.h \
1716                                 modules/echo-cancel/speex.c \
1717                                 modules/echo-cancel/adrian-aec.c modules/echo-cancel/adrian-aec.h \
1718                                 modules/echo-cancel/adrian.c modules/echo-cancel/adrian.h \
1719                                 $(ORC_SOURCE).orc
1720 nodist_module_echo_cancel_la_SOURCES = $(ORC_NODIST_SOURCES)
1721 module_echo_cancel_la_LDFLAGS = $(MODULE_LDFLAGS)
1722 module_echo_cancel_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(LIBSPEEX_LIBS) $(ORC_LIBS)
1723 module_echo_cancel_la_CFLAGS = $(AM_CFLAGS) $(LIBSPEEX_CFLAGS) $(ORC_CFLAGS)
1725 # RTP modules
1726 module_rtp_send_la_SOURCES = modules/rtp/module-rtp-send.c
1727 module_rtp_send_la_LDFLAGS = $(MODULE_LDFLAGS)
1728 module_rtp_send_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la librtp.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1729 module_rtp_send_la_CFLAGS = $(AM_CFLAGS)
1731 module_rtp_recv_la_SOURCES = modules/rtp/module-rtp-recv.c
1732 module_rtp_recv_la_LDFLAGS = $(MODULE_LDFLAGS)
1733 module_rtp_recv_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la librtp.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1734 module_rtp_recv_la_CFLAGS = $(AM_CFLAGS)
1736 # JACK
1738 module_jack_sink_la_SOURCES = modules/jack/module-jack-sink.c
1739 module_jack_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1740 module_jack_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la $(JACK_LIBS) libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1741 module_jack_sink_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1743 module_jack_source_la_SOURCES = modules/jack/module-jack-source.c
1744 module_jack_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1745 module_jack_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la $(JACK_LIBS) libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1746 module_jack_source_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1748 if HAVE_HAL_COMPAT
1749 module_hal_detect_la_SOURCES = modules/module-hal-detect-compat.c
1750 module_hal_detect_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1751 module_hal_detect_la_CFLAGS = $(AM_CFLAGS)
1752 else
1753 module_hal_detect_la_SOURCES = modules/module-hal-detect.c
1754 module_hal_detect_la_LIBADD = $(AM_LIBADD) $(HAL_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1755 module_hal_detect_la_CFLAGS = $(AM_CFLAGS) $(HAL_CFLAGS)
1756 endif
1757 module_hal_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1759 module_udev_detect_la_SOURCES = modules/module-udev-detect.c
1760 module_udev_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1761 module_udev_detect_la_LIBADD = $(AM_LIBADD) $(UDEV_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1762 module_udev_detect_la_CFLAGS = $(AM_CFLAGS) $(UDEV_CFLAGS)
1764 module_console_kit_la_SOURCES = modules/module-console-kit.c
1765 module_console_kit_la_LDFLAGS = $(MODULE_LDFLAGS)
1766 module_console_kit_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1767 module_console_kit_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1769 # GConf support
1770 module_gconf_la_SOURCES = modules/gconf/module-gconf.c
1771 module_gconf_la_LDFLAGS = $(MODULE_LDFLAGS)
1772 module_gconf_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1773 module_gconf_la_CFLAGS = $(AM_CFLAGS) -DPA_GCONF_HELPER=\"$(pulselibexecdir)/gconf-helper\"
1775 gconf_helper_SOURCES = modules/gconf/gconf-helper.c
1776 gconf_helper_LDADD = $(AM_LDADD) $(GCONF_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1777 gconf_helper_CFLAGS = $(AM_CFLAGS) $(GCONF_CFLAGS)
1778 gconf_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
1780 # Bluetooth proximity
1781 module_bluetooth_proximity_la_SOURCES = modules/bluetooth/module-bluetooth-proximity.c
1782 module_bluetooth_proximity_la_LDFLAGS = $(MODULE_LDFLAGS)
1783 module_bluetooth_proximity_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1784 module_bluetooth_proximity_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) -DPA_BT_PROXIMITY_HELPER=\"$(pulselibexecdir)/proximity-helper\"
1786 proximity_helper_SOURCES = modules/bluetooth/proximity-helper.c
1787 proximity_helper_LDADD = $(AM_LDADD) $(BLUEZ_LIBS)
1788 proximity_helper_CFLAGS = $(AM_CFLAGS) $(BLUEZ_CFLAGS)
1789 proximity_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
1791 # Bluetooth sink / source
1792 module_bluetooth_discover_la_SOURCES = modules/bluetooth/module-bluetooth-discover.c
1793 module_bluetooth_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1794 module_bluetooth_discover_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINOR@.la libbluetooth-util.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1795 module_bluetooth_discover_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1797 libbluetooth_sbc_la_SOURCES = modules/bluetooth/sbc.c modules/bluetooth/sbc.h modules/bluetooth/sbc_tables.h modules/bluetooth/sbc_math.h modules/bluetooth/sbc_primitives.h modules/bluetooth/sbc_primitives.c modules/bluetooth/sbc_primitives_mmx.h modules/bluetooth/sbc_primitives_neon.h modules/bluetooth/sbc_primitives_mmx.c modules/bluetooth/sbc_primitives_neon.c
1798 libbluetooth_sbc_la_LDFLAGS = -avoid-version
1799 libbluetooth_sbc_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1800 libbluetooth_sbc_la_CFLAGS = $(AM_CFLAGS)
1801 BLUETOOTH_SBC_FILES = $(subst modules/bluetooth/,,$(libbluetooth_sbc_la_SOURCES))
1803 libbluetooth_ipc_la_SOURCES = modules/bluetooth/ipc.c modules/bluetooth/ipc.h
1804 libbluetooth_ipc_la_LDFLAGS = -avoid-version
1805 libbluetooth_ipc_la_LIBADD = $(AM_LIBADD)libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1806 libbluetooth_ipc_la_CFLAGS = $(AM_CFLAGS)
1807 BLUETOOTH_IPC_FILES = $(subst modules/bluetooth/,,$(libbluetooth_ipc_la_SOURCES)) rtp.h
1809 libbluetooth_util_la_SOURCES = modules/bluetooth/bluetooth-util.c modules/bluetooth/bluetooth-util.h
1810 libbluetooth_util_la_LDFLAGS = -avoid-version
1811 libbluetooth_util_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1812 libbluetooth_util_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1814 module_bluetooth_device_la_SOURCES = modules/bluetooth/module-bluetooth-device.c modules/bluetooth/rtp.h
1815 module_bluetooth_device_la_LDFLAGS = $(MODULE_LDFLAGS)
1816 module_bluetooth_device_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINOR@.la libbluetooth-util.la libbluetooth-ipc.la libbluetooth-sbc.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1817 module_bluetooth_device_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1819 # Apple Airtunes/RAOP
1820 module_raop_sink_la_SOURCES = modules/raop/module-raop-sink.c
1821 module_raop_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1822 module_raop_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la librtp.la libraop.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1824 module_raop_discover_la_SOURCES = modules/raop/module-raop-discover.c
1825 module_raop_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1826 module_raop_discover_la_LIBADD = $(AM_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
1827 module_raop_discover_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1829 # Rygel
1830 module_rygel_media_server_la_SOURCES = modules/module-rygel-media-server.c
1831 module_rygel_media_server_la_LDFLAGS = $(MODULE_LDFLAGS)
1832 module_rygel_media_server_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la libprotocol-http.la
1833 module_rygel_media_server_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1835 ###################################
1836 #        Some minor stuff         #
1837 ###################################
1839 CLEANFILES = esdcompat client.conf default.pa system.pa daemon.conf start-pulseaudio-x11 start-pulseaudio-kde daemon/pulseaudio.desktop daemon/pulseaudio-kde.desktop
1841 esdcompat: daemon/esdcompat.in Makefile
1842         sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1843                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1844                 -e 's,@PA_BINARY\@,$(PA_BINARY),g' < $< > $@
1845         chmod +x esdcompat
1847 start-pulseaudio-x11: daemon/start-pulseaudio-x11.in Makefile
1848         sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1849                 -e 's,@PACTL_BINARY\@,$(bindir)/pactl,g' < $< > $@
1850         chmod +x start-pulseaudio-x11
1852 start-pulseaudio-kde: daemon/start-pulseaudio-kde.in Makefile
1853         sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1854                 -e 's,@PACTL_BINARY\@,$(bindir)/pactl,g' < $< > $@
1855         chmod +x start-pulseaudio-kde
1857 client.conf: pulse/client.conf.in Makefile
1858         sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' < $< > $@
1860 if OS_IS_WIN32
1861 default.pa: daemon/default.pa.win32
1862         cp $< $@
1863 system.pa: daemon/default.pa.win32
1864         cp $< $@
1865 else
1866 default.pa: daemon/default.pa.in Makefile
1867         sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1868             -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1869             -e 's,@PA_SOEXT\@,.so,g' < $< > $@
1870 system.pa: daemon/system.pa.in Makefile
1871         sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1872             -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1873             -e 's,@PA_SOEXT\@,.so,g' < $< > $@
1874 endif
1876 daemon.conf: daemon/daemon.conf.in Makefile
1877         sed -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1878                 -e 's,@PA_DEFAULT_CONFIG_FILE\@,$(DEFAULT_CONFIG_DIR),g' < $< > $@
1880 install-exec-hook:
1881         -chown root $(DESTDIR)$(pulselibexecdir)/proximity-helper
1882         -chmod u+s $(DESTDIR)$(pulselibexecdir)/proximity-helper
1883         ln -sf pacat $(DESTDIR)$(bindir)/parec
1884         ln -sf pacat $(DESTDIR)$(bindir)/pamon
1885         ln -sf pacat $(DESTDIR)$(bindir)/paplay
1886         ln -sf pacat $(DESTDIR)$(bindir)/parecord
1887         rm -f $(DESTDIR)$(libdir)/libpulsedsp.la
1888         rm -f $(DESTDIR)$(modlibexecdir)/*.la
1890 uninstall-hook:
1891         rm -f $(DESTDIR)$(bindir)/parec
1892         rm -f $(DESTDIR)$(bindir)/pamon
1893         rm -f $(DESTDIR)$(bindir)/paplay
1894         rm -f $(DESTDIR)$(bindir)/parecord
1895         rm -f $(DESTDIR)$(libdir)/libpulsedsp.*
1896         rm -f $(DESTDIR)$(modlibexecdir)/*.so
1898 massif: pulseaudio
1899         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
1901 update-ffmpeg:
1902         wget -O pulsecore/ffmpeg/resample2.c http://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec/resample2.c?view=co
1904 # We get things twice here, because sometimes gitweb will us just give a "Generating..." otherwise.
1905 update-sbc:
1906         for i in $(BLUETOOTH_SBC_FILES) ; do \
1907                 wget -O /dev/null http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=sbc/$$i ; \
1908                 wget -O modules/bluetooth/$$i http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=sbc/$$i ; \
1909         done
1910         for i in $(BLUETOOTH_IPC_FILES); do \
1911                 wget -O /dev/null http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=audio/$$i ; \
1912                 wget -O modules/bluetooth/$$i http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=audio/$$i ; \
1913         done
1915 update-reserve:
1916         for i in reserve.c reserve.h reserve-monitor.c reserve-monitor.h ; do \
1917                 wget -O modules/$$i http://git.0pointer.de/\?p=reserve.git\;a=blob_plain\;f=$$i\;hb=master ; \
1918         done
1920 update-rtkit:
1921         for i in rtkit.c rtkit.h ; do \
1922                 wget -O pulsecore/$$i http://git.0pointer.de/\?p=rtkit.git\;a=blob_plain\;f=$$i\;hb=master ; \
1923         done
1925 # Automatically generate linker version script. We use the same one for all public .sos
1926 update-map-file:
1927         ( echo "PULSE_0 {" ; \
1928           echo "global:" ; \
1929           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 ; \
1930           echo "local:" ;  \
1931           echo "*;" ; \
1932           echo "};" ) > $(srcdir)/map-file
1934 update-all: update-ffmpeg update-sbc update-map-file
1936 .PHONY: utils/padsp massif update-all update-ffmpeg update-sbc update-map-file