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