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