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