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