]> code.delx.au - pulseaudio/blob - src/Makefile.am
pacat: Handle holes in recording streams.
[pulseaudio] / 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)
534 alsa_time_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
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/g711.c pulsecore/g711.h \
590 pulsecore/hashmap.c pulsecore/hashmap.h \
591 pulsecore/i18n.c pulsecore/i18n.h \
592 pulsecore/idxset.c pulsecore/idxset.h \
593 pulsecore/arpa-inet.c pulsecore/arpa-inet.h \
594 pulsecore/iochannel.c pulsecore/iochannel.h \
595 pulsecore/ioline.c pulsecore/ioline.h \
596 pulsecore/ipacl.c pulsecore/ipacl.h \
597 pulsecore/llist.h \
598 pulsecore/lock-autospawn.c pulsecore/lock-autospawn.h \
599 pulsecore/log.c pulsecore/log.h \
600 pulsecore/ratelimit.c pulsecore/ratelimit.h \
601 pulsecore/macro.h \
602 pulsecore/mcalign.c pulsecore/mcalign.h \
603 pulsecore/memblock.c pulsecore/memblock.h \
604 pulsecore/memblockq.c pulsecore/memblockq.h \
605 pulsecore/memchunk.c pulsecore/memchunk.h \
606 pulsecore/native-common.h \
607 pulsecore/once.c pulsecore/once.h \
608 pulsecore/packet.c pulsecore/packet.h \
609 pulsecore/parseaddr.c pulsecore/parseaddr.h \
610 pulsecore/pdispatch.c pulsecore/pdispatch.h \
611 pulsecore/pid.c pulsecore/pid.h \
612 pulsecore/pipe.c pulsecore/pipe.h \
613 pulsecore/memtrap.c pulsecore/memtrap.h \
614 pulsecore/aupdate.c pulsecore/aupdate.h \
615 pulsecore/proplist-util.c pulsecore/proplist-util.h \
616 pulsecore/pstream-util.c pulsecore/pstream-util.h \
617 pulsecore/pstream.c pulsecore/pstream.h \
618 pulsecore/queue.c pulsecore/queue.h \
619 pulsecore/random.c pulsecore/random.h \
620 pulsecore/refcnt.h \
621 pulsecore/sample-util.c pulsecore/sample-util.h \
622 pulsecore/shm.c pulsecore/shm.h \
623 pulsecore/bitset.c pulsecore/bitset.h \
624 pulsecore/socket-client.c pulsecore/socket-client.h \
625 pulsecore/socket-server.c pulsecore/socket-server.h \
626 pulsecore/socket-util.c pulsecore/socket-util.h \
627 pulsecore/strbuf.c pulsecore/strbuf.h \
628 pulsecore/strlist.c pulsecore/strlist.h \
629 pulsecore/svolume_c.c pulsecore/svolume_arm.c \
630 pulsecore/svolume_mmx.c pulsecore/svolume_sse.c \
631 pulsecore/tagstruct.c pulsecore/tagstruct.h \
632 pulsecore/time-smoother.c pulsecore/time-smoother.h \
633 pulsecore/tokenizer.c pulsecore/tokenizer.h \
634 pulsecore/usergroup.c pulsecore/usergroup.h \
635 pulsecore/sndfile-util.c pulsecore/sndfile-util.h \
636 pulsecore/socket.h
637
638 if OS_IS_WIN32
639 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += pulsecore/poll-win32.c pulsecore/poll.h
640 else
641 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += pulsecore/poll-posix.c pulsecore/poll.h
642 endif
643
644 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
645 libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
646 libpulsecommon_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) $(LIBWRAP_LIBS) $(WINSOCK_LIBS) $(LTLIBICONV) $(LIBSNDFILE_LIBS)
647
648 if HAVE_X11
649 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
650 pulse/client-conf-x11.c pulse/client-conf-x11.h \
651 pulsecore/x11prop.c pulsecore/x11prop.h
652 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(X11_CFLAGS)
653 libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS += $(X11_LIBS)
654 endif
655
656 # proplist-util.h uses these header files, but not the library itself!
657 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(GLIB20_CFLAGS) $(GTK20_CFLAGS)
658
659 ## Please note that libpulsecommon implicitly also depends on<
660 ## libpulse! i.e. we have a cyclic dependancy here. Which is intended
661 ## since libpulse only includes stable, official APIs, while
662 ## libpulsecommon only includes unofficial APIs.
663
664 if OS_IS_WIN32
665 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
666 pulsecore/mutex-win32.c pulsecore/mutex.h \
667 pulsecore/thread-win32.c pulsecore/thread.h \
668 pulsecore/semaphore-win32.c pulsecore/semaphore.h
669 else !OS_IS_WIN32
670 if OS_IS_DARWIN
671 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
672 pulsecore/mutex-posix.c pulsecore/mutex.h \
673 pulsecore/thread-posix.c pulsecore/thread.h \
674 pulsecore/semaphore-osx.c pulsecore/semaphore.h
675 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += "-I/Developer/Headers/FlatCarbon/"
676 #libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS += "-framework CoreServices"
677 else !OS_IS_DARWIN
678 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
679 pulsecore/mutex-posix.c pulsecore/mutex.h \
680 pulsecore/thread-posix.c pulsecore/thread.h \
681 pulsecore/semaphore-posix.c pulsecore/semaphore.h
682 endif !OS_IS_DARWIN
683 endif !OS_IS_WIN32
684
685 if HAVE_LIBASYNCNS
686 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
687 libpulsecommon_@PA_MAJORMINOR@_la_LIBADD += $(LIBASYNCNS_LIBS)
688 endif
689
690 if OS_IS_WIN32
691 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += pulsecore/dllmain.c
692 endif
693
694 if HAVE_DBUS
695 libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
696 pulsecore/dbus-util.c pulsecore/dbus-util.h \
697 pulsecore/rtkit.c pulsecore/rtkit.h
698 libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(DBUS_CFLAGS)
699 libpulsecommon_@PA_MAJORMINOR@_la_LIBADD += $(DBUS_LIBS)
700 endif
701
702 ###################################
703 # Client library #
704 ###################################
705
706 pulseinclude_HEADERS = \
707 pulse/cdecl.h \
708 pulse/channelmap.h \
709 pulse/context.h \
710 pulse/def.h \
711 pulse/error.h \
712 pulse/ext-device-manager.h \
713 pulse/ext-device-restore.h \
714 pulse/ext-stream-restore.h \
715 pulse/format.h \
716 pulse/gccmacro.h \
717 pulse/introspect.h \
718 pulse/mainloop-api.h \
719 pulse/mainloop-signal.h \
720 pulse/mainloop.h \
721 pulse/operation.h \
722 pulse/proplist.h \
723 pulse/pulseaudio.h \
724 pulse/rtclock.h \
725 pulse/sample.h \
726 pulse/scache.h \
727 pulse/simple.h \
728 pulse/stream.h \
729 pulse/subscribe.h \
730 pulse/thread-mainloop.h \
731 pulse/timeval.h \
732 pulse/utf8.h \
733 pulse/util.h \
734 pulse/version.h \
735 pulse/volume.h \
736 pulse/xmalloc.h
737
738 lib_LTLIBRARIES = \
739 libpulse.la \
740 libpulse-simple.la
741
742 if HAVE_GLIB20
743 pulseinclude_HEADERS += \
744 pulse/glib-mainloop.h
745
746 lib_LTLIBRARIES += \
747 libpulse-mainloop-glib.la
748 endif
749
750 # Public interface
751 libpulse_la_SOURCES = \
752 pulse/cdecl.h \
753 pulse/channelmap.c pulse/channelmap.h \
754 pulse/context.c pulse/context.h \
755 pulse/def.h \
756 pulse/error.c pulse/error.h \
757 pulse/ext-device-manager.c pulse/ext-device-manager.h \
758 pulse/ext-device-restore.c pulse/ext-device-restore.h \
759 pulse/ext-stream-restore.c pulse/ext-stream-restore.h \
760 pulse/format.c pulse/format.h \
761 pulse/gccmacro.h \
762 pulse/internal.h \
763 pulse/introspect.c pulse/introspect.h \
764 pulse/mainloop-api.c pulse/mainloop-api.h \
765 pulse/mainloop-signal.c pulse/mainloop-signal.h \
766 pulse/mainloop.c pulse/mainloop.h \
767 pulse/operation.c pulse/operation.h \
768 pulse/proplist.c pulse/proplist.h \
769 pulse/pulseaudio.h \
770 pulse/rtclock.c pulse/rtclock.h \
771 pulse/sample.c pulse/sample.h \
772 pulse/scache.c pulse/scache.h \
773 pulse/stream.c pulse/stream.h \
774 pulse/subscribe.c pulse/subscribe.h \
775 pulse/thread-mainloop.c pulse/thread-mainloop.h \
776 pulse/timeval.c pulse/timeval.h \
777 pulse/utf8.c pulse/utf8.h \
778 pulse/util.c pulse/util.h \
779 pulse/volume.c pulse/volume.h \
780 pulse/xmalloc.c pulse/xmalloc.h
781
782 libpulse_la_CFLAGS = $(AM_CFLAGS) $(LIBJSON_CFLAGS)
783 libpulse_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS) $(LTLIBICONV) $(LIBJSON_LIBS) libpulsecommon-@PA_MAJORMINOR@.la
784 libpulse_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_VERSION_INFO)
785
786 if HAVE_DBUS
787 libpulse_la_CFLAGS += $(DBUS_CFLAGS)
788 libpulse_la_LIBADD += $(DBUS_LIBS)
789 endif
790
791 libpulse_simple_la_SOURCES = pulse/simple.c pulse/simple.h
792 libpulse_simple_la_CFLAGS = $(AM_CFLAGS)
793 libpulse_simple_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
794 libpulse_simple_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_SIMPLE_VERSION_INFO)
795
796 libpulse_mainloop_glib_la_SOURCES = pulse/glib-mainloop.h pulse/glib-mainloop.c
797 libpulse_mainloop_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
798 libpulse_mainloop_glib_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(GLIB20_LIBS)
799 libpulse_mainloop_glib_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO)
800
801 ###################################
802 # OSS emulation #
803 ###################################
804
805 if HAVE_OSS_WRAPPER
806 padsplibdir = $(pkglibdir)
807 padsplib_LTLIBRARIES = libpulsedsp.la
808 bin_SCRIPTS += padsp
809
810 edit = @SED@ \
811 -e "s|@pkglibdir[@]|$(pkglibdir)|g"
812
813 padsp: utils/padsp.in
814 $(edit) $< > $@
815
816 CLEANFILES += padsp
817
818 endif
819
820 libpulsedsp_la_SOURCES = utils/padsp.c
821 libpulsedsp_la_CFLAGS = $(AM_CFLAGS)
822 libpulsedsp_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
823 libpulsedsp_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version -disable-static
824
825 ###################################
826 # Daemon core library #
827 ###################################
828
829 lib_LTLIBRARIES += libpulsecore-@PA_MAJORMINOR@.la
830 noinst_LTLIBRARIES =
831
832 # Pure core stuff
833 libpulsecore_@PA_MAJORMINOR@_la_SOURCES = \
834 pulsecore/asyncmsgq.c pulsecore/asyncmsgq.h \
835 pulsecore/asyncq.c pulsecore/asyncq.h \
836 pulsecore/auth-cookie.c pulsecore/auth-cookie.h \
837 pulsecore/cli-command.c pulsecore/cli-command.h \
838 pulsecore/cli-text.c pulsecore/cli-text.h \
839 pulsecore/client.c pulsecore/client.h \
840 pulsecore/card.c pulsecore/card.h \
841 pulsecore/core-scache.c pulsecore/core-scache.h \
842 pulsecore/core-subscribe.c pulsecore/core-subscribe.h \
843 pulsecore/core.c pulsecore/core.h \
844 pulsecore/fdsem.c pulsecore/fdsem.h \
845 pulsecore/hook-list.c pulsecore/hook-list.h \
846 pulsecore/ltdl-helper.c pulsecore/ltdl-helper.h \
847 pulsecore/modargs.c pulsecore/modargs.h \
848 pulsecore/modinfo.c pulsecore/modinfo.h \
849 pulsecore/module.c pulsecore/module.h \
850 pulsecore/msgobject.c pulsecore/msgobject.h \
851 pulsecore/namereg.c pulsecore/namereg.h \
852 pulsecore/object.c pulsecore/object.h \
853 pulsecore/play-memblockq.c pulsecore/play-memblockq.h \
854 pulsecore/play-memchunk.c pulsecore/play-memchunk.h \
855 pulsecore/remap.c pulsecore/remap.h \
856 pulsecore/remap_mmx.c pulsecore/remap_sse.c \
857 pulsecore/resampler.c pulsecore/resampler.h \
858 pulsecore/rtpoll.c pulsecore/rtpoll.h \
859 pulsecore/cpu.h \
860 pulsecore/cpu-arm.c pulsecore/cpu-arm.h \
861 pulsecore/cpu-x86.c pulsecore/cpu-x86.h \
862 pulsecore/cpu-orc.c pulsecore/cpu-orc.h \
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 module-role-ducking.la
1077
1078 if HAVE_ESOUND
1079 modlibexec_LTLIBRARIES += \
1080 module-esound-protocol-tcp.la \
1081 module-esound-sink.la
1082 endif
1083
1084 # See comment at librtp.la above
1085 if !OS_IS_WIN32
1086 modlibexec_LTLIBRARIES += \
1087 module-rtp-send.la \
1088 module-rtp-recv.la
1089 endif
1090
1091 if HAVE_AF_UNIX
1092 modlibexec_LTLIBRARIES += \
1093 module-cli-protocol-unix.la \
1094 module-simple-protocol-unix.la \
1095 module-http-protocol-unix.la \
1096 module-native-protocol-unix.la
1097 if HAVE_ESOUND
1098 modlibexec_LTLIBRARIES += \
1099 module-esound-protocol-unix.la
1100 endif
1101 endif
1102
1103 if HAVE_MKFIFO
1104 modlibexec_LTLIBRARIES += \
1105 module-pipe-sink.la \
1106 module-pipe-source.la
1107 endif
1108
1109 if !OS_IS_WIN32
1110 if HAVE_ESOUND
1111 modlibexec_LTLIBRARIES += \
1112 module-esound-compat-spawnfd.la \
1113 module-esound-compat-spawnpid.la
1114 endif
1115 endif
1116
1117 if HAVE_REGEX
1118 modlibexec_LTLIBRARIES += \
1119 module-match.la
1120 endif
1121
1122 if HAVE_X11
1123 modlibexec_LTLIBRARIES += \
1124 module-x11-bell.la \
1125 module-x11-publish.la \
1126 module-x11-xsmp.la \
1127 module-x11-cork-request.la
1128 endif
1129
1130 if HAVE_OSS_OUTPUT
1131 modlibexec_LTLIBRARIES += \
1132 liboss-util.la \
1133 module-oss.la
1134 endif
1135
1136 if HAVE_COREAUDIO
1137 modlibexec_LTLIBRARIES += \
1138 module-coreaudio-detect.la \
1139 module-coreaudio-device.la
1140 endif
1141
1142 pulselibexec_PROGRAMS =
1143
1144 if HAVE_ALSA
1145 modlibexec_LTLIBRARIES += \
1146 libalsa-util.la \
1147 module-alsa-sink.la \
1148 module-alsa-source.la \
1149 module-alsa-card.la
1150
1151 dist_alsaprofilesets_DATA = \
1152 modules/alsa/mixer/profile-sets/default.conf \
1153 modules/alsa/mixer/profile-sets/extra-hdmi.conf \
1154 modules/alsa/mixer/profile-sets/force-speaker.conf \
1155 modules/alsa/mixer/profile-sets/force-speaker-and-int-mic.conf \
1156 modules/alsa/mixer/profile-sets/maudio-fasttrack-pro.conf \
1157 modules/alsa/mixer/profile-sets/native-instruments-audio4dj.conf \
1158 modules/alsa/mixer/profile-sets/native-instruments-audio8dj.conf \
1159 modules/alsa/mixer/profile-sets/native-instruments-traktor-audio6.conf \
1160 modules/alsa/mixer/profile-sets/native-instruments-traktor-audio10.conf \
1161 modules/alsa/mixer/profile-sets/native-instruments-traktorkontrol-s4.conf \
1162 modules/alsa/mixer/profile-sets/native-instruments-korecontroller.conf \
1163 modules/alsa/mixer/profile-sets/kinect-audio.conf
1164
1165 if HAVE_UDEV
1166 dist_udevrules_DATA = \
1167 modules/alsa/mixer/profile-sets/90-pulseaudio.rules
1168 endif
1169
1170 dist_alsapaths_DATA = \
1171 modules/alsa/mixer/paths/analog-input-aux.conf \
1172 modules/alsa/mixer/paths/analog-input.conf \
1173 modules/alsa/mixer/paths/analog-input.conf.common \
1174 modules/alsa/mixer/paths/analog-input-fm.conf \
1175 modules/alsa/mixer/paths/analog-input-linein.conf \
1176 modules/alsa/mixer/paths/analog-input-mic.conf \
1177 modules/alsa/mixer/paths/analog-input-dock-mic.conf \
1178 modules/alsa/mixer/paths/analog-input-front-mic.conf \
1179 modules/alsa/mixer/paths/analog-input-headphone-mic.conf \
1180 modules/alsa/mixer/paths/analog-input-internal-mic.conf \
1181 modules/alsa/mixer/paths/analog-input-internal-mic-always.conf \
1182 modules/alsa/mixer/paths/analog-input-rear-mic.conf \
1183 modules/alsa/mixer/paths/analog-input-mic.conf.common \
1184 modules/alsa/mixer/paths/analog-input-mic-line.conf \
1185 modules/alsa/mixer/paths/analog-input-tvtuner.conf \
1186 modules/alsa/mixer/paths/analog-input-video.conf \
1187 modules/alsa/mixer/paths/analog-output.conf \
1188 modules/alsa/mixer/paths/analog-output-speaker.conf \
1189 modules/alsa/mixer/paths/analog-output-speaker-always.conf \
1190 modules/alsa/mixer/paths/analog-output.conf.common \
1191 modules/alsa/mixer/paths/analog-output-desktop-speaker.conf \
1192 modules/alsa/mixer/paths/analog-output-headphones.conf \
1193 modules/alsa/mixer/paths/analog-output-headphones-2.conf \
1194 modules/alsa/mixer/paths/analog-output-mono.conf \
1195 modules/alsa/mixer/paths/iec958-stereo-output.conf \
1196 modules/alsa/mixer/paths/hdmi-output-0.conf \
1197 modules/alsa/mixer/paths/hdmi-output-1.conf \
1198 modules/alsa/mixer/paths/hdmi-output-2.conf \
1199 modules/alsa/mixer/paths/hdmi-output-3.conf
1200
1201 endif
1202
1203 if HAVE_SOLARIS
1204 modlibexec_LTLIBRARIES += \
1205 module-solaris.la
1206 endif
1207
1208 if HAVE_AVAHI
1209 modlibexec_LTLIBRARIES += \
1210 module-zeroconf-publish.la \
1211 module-zeroconf-discover.la
1212 endif
1213
1214 if HAVE_BONJOUR
1215 modlibexec_LTLIBRARIES += \
1216 module-bonjour-publish.la
1217 endif
1218
1219 if HAVE_LIRC
1220 modlibexec_LTLIBRARIES += \
1221 module-lirc.la
1222 endif
1223
1224 if HAVE_XEN
1225 modlibexec_LTLIBRARIES += \
1226 module-xenpv-sink.la
1227 endif
1228
1229
1230 if HAVE_EVDEV
1231 modlibexec_LTLIBRARIES += \
1232 module-mmkbd-evdev.la
1233 endif
1234
1235 if HAVE_JACK
1236 modlibexec_LTLIBRARIES += \
1237 module-jack-sink.la \
1238 module-jack-source.la
1239
1240 if HAVE_DBUS
1241 modlibexec_LTLIBRARIES += \
1242 module-jackdbus-detect.la
1243 endif
1244
1245 endif
1246
1247 if HAVE_GCONF
1248 modlibexec_LTLIBRARIES += \
1249 module-gconf.la
1250
1251 pulselibexec_PROGRAMS += \
1252 gconf-helper
1253 endif
1254
1255 if HAVE_WAVEOUT
1256 modlibexec_LTLIBRARIES += \
1257 module-waveout.la
1258 endif
1259
1260 if HAVE_HAL_COMPAT
1261 modlibexec_LTLIBRARIES += \
1262 module-hal-detect.la
1263 endif
1264
1265 if HAVE_UDEV
1266 modlibexec_LTLIBRARIES += \
1267 module-udev-detect.la
1268 endif
1269
1270 if HAVE_SYSTEMD
1271 modlibexec_LTLIBRARIES += \
1272 module-systemd-login.la
1273 endif
1274
1275 if HAVE_DBUS
1276 modlibexec_LTLIBRARIES += \
1277 module-rygel-media-server.la \
1278 module-dbus-protocol.la
1279 endif
1280
1281 if HAVE_BLUEZ
1282 modlibexec_LTLIBRARIES += \
1283 libbluetooth-util.la \
1284 module-bluetooth-proximity.la \
1285 module-bluetooth-discover.la \
1286 module-bluetooth-policy.la \
1287 module-bluetooth-device.la
1288
1289 pulselibexec_PROGRAMS += \
1290 proximity-helper
1291 endif
1292
1293 if HAVE_OPENSSL
1294 modlibexec_LTLIBRARIES += \
1295 libraop.la \
1296 module-raop-sink.la
1297 if HAVE_AVAHI
1298 modlibexec_LTLIBRARIES += \
1299 module-raop-discover.la
1300 endif
1301 endif
1302
1303 if HAVE_DBUS
1304 if HAVE_FFTW
1305 modlibexec_LTLIBRARIES += \
1306 module-equalizer-sink.la
1307 bin_SCRIPTS += utils/qpaeq
1308 endif
1309 endif
1310
1311 # These are generated by an M4 script
1312 SYMDEF_FILES = \
1313 module-cli-symdef.h \
1314 module-cli-protocol-tcp-symdef.h \
1315 module-cli-protocol-unix-symdef.h \
1316 module-pipe-sink-symdef.h \
1317 module-pipe-source-symdef.h \
1318 module-simple-protocol-tcp-symdef.h \
1319 module-simple-protocol-unix-symdef.h \
1320 module-native-protocol-tcp-symdef.h \
1321 module-native-protocol-unix-symdef.h \
1322 module-native-protocol-fd-symdef.h \
1323 module-sine-symdef.h \
1324 module-combine-symdef.h \
1325 module-combine-sink-symdef.h \
1326 module-remap-sink-symdef.h \
1327 module-ladspa-sink-symdef.h \
1328 module-equalizer-sink-symdef.h \
1329 module-match-symdef.h \
1330 module-tunnel-sink-symdef.h \
1331 module-tunnel-source-symdef.h \
1332 module-null-sink-symdef.h \
1333 module-null-source-symdef.h \
1334 module-sine-source-symdef.h \
1335 module-zeroconf-publish-symdef.h \
1336 module-zeroconf-discover-symdef.h \
1337 module-bonjour-publish-symdef.h \
1338 module-lirc-symdef.h \
1339 module-xenpv-sink-symdef.h \
1340 module-mmkbd-evdev-symdef.h \
1341 module-http-protocol-tcp-symdef.h \
1342 module-http-protocol-unix-symdef.h \
1343 module-rygel-media-server-symdef.h \
1344 module-x11-bell-symdef.h \
1345 module-x11-publish-symdef.h \
1346 module-x11-xsmp-symdef.h \
1347 module-x11-cork-request-symdef.h \
1348 module-oss-symdef.h \
1349 module-alsa-sink-symdef.h \
1350 module-alsa-source-symdef.h \
1351 module-alsa-card-symdef.h \
1352 module-coreaudio-detect-symdef.h \
1353 module-coreaudio-device-symdef.h \
1354 module-solaris-symdef.h \
1355 module-waveout-symdef.h \
1356 module-detect-symdef.h \
1357 module-rtp-send-symdef.h \
1358 module-rtp-recv-symdef.h \
1359 module-jackdbus-detect-symdef.h \
1360 module-jack-sink-symdef.h \
1361 module-jack-source-symdef.h \
1362 module-volume-restore-symdef.h \
1363 module-device-manager-symdef.h \
1364 module-device-restore-symdef.h \
1365 module-stream-restore-symdef.h \
1366 module-card-restore-symdef.h \
1367 module-default-device-restore-symdef.h \
1368 module-always-sink-symdef.h \
1369 module-rescue-streams-symdef.h \
1370 module-intended-roles-symdef.h \
1371 module-suspend-on-idle-symdef.h \
1372 module-echo-cancel-symdef.h \
1373 module-hal-detect-symdef.h \
1374 module-udev-detect-symdef.h \
1375 module-systemd-login-symdef.h \
1376 module-bluetooth-proximity-symdef.h \
1377 module-bluetooth-discover-symdef.h \
1378 module-bluetooth-policy-symdef.h \
1379 module-bluetooth-device-symdef.h \
1380 module-raop-sink-symdef.h \
1381 module-raop-discover-symdef.h \
1382 module-gconf-symdef.h \
1383 module-position-event-sounds-symdef.h \
1384 module-role-ducking-symdef.h \
1385 module-augment-properties-symdef.h \
1386 module-role-cork-symdef.h \
1387 module-console-kit-symdef.h \
1388 module-dbus-protocol-symdef.h \
1389 module-loopback-symdef.h \
1390 module-virtual-sink-symdef.h \
1391 module-virtual-source-symdef.h \
1392 module-virtual-surround-sink-symdef.h \
1393 module-switch-on-connect-symdef.h \
1394 module-switch-on-port-available-symdef.h \
1395 module-filter-apply-symdef.h \
1396 module-filter-heuristics-symdef.h
1397
1398 if HAVE_ESOUND
1399 SYMDEF_FILES += \
1400 module-esound-protocol-tcp-symdef.h \
1401 module-esound-protocol-unix-symdef.h \
1402 module-esound-compat-spawnfd-symdef.h \
1403 module-esound-compat-spawnpid-symdef.h \
1404 module-esound-sink-symdef.h
1405 endif
1406
1407 EXTRA_DIST += $(SYMDEF_FILES)
1408 BUILT_SOURCES += $(SYMDEF_FILES) builddirs
1409
1410 $(SYMDEF_FILES): modules/module-defs.h.m4
1411 $(AM_V_at)$(MKDIR_P) modules
1412 $(AM_V_GEN)$(M4) -Dfname="$@" $< > $@
1413
1414 .PHONY: builddirs
1415 builddirs:
1416 $(AM_V_at)$(MKDIR_P) daemon modules
1417
1418 # Simple protocol
1419
1420 module_simple_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1421 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1422 module_simple_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1423 module_simple_protocol_tcp_la_LIBADD = $(MODULE_LIBADD) libprotocol-simple.la
1424
1425 module_simple_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1426 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1427 module_simple_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1428 module_simple_protocol_unix_la_LIBADD = $(MODULE_LIBADD) libprotocol-simple.la
1429
1430 # CLI protocol
1431
1432 module_cli_la_SOURCES = modules/module-cli.c
1433 module_cli_la_LDFLAGS = $(MODULE_LDFLAGS)
1434 module_cli_la_LIBADD = $(MODULE_LIBADD) libcli.la
1435
1436 module_cli_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1437 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1438 module_cli_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1439 module_cli_protocol_tcp_la_LIBADD = $(MODULE_LIBADD) libprotocol-cli.la
1440
1441 module_cli_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1442 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1443 module_cli_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1444 module_cli_protocol_unix_la_LIBADD = $(MODULE_LIBADD) libprotocol-cli.la
1445
1446 # HTTP protocol
1447
1448 module_http_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1449 module_http_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1450 module_http_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1451 module_http_protocol_tcp_la_LIBADD = $(MODULE_LIBADD) libprotocol-http.la
1452
1453 module_http_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1454 module_http_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1455 module_http_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1456 module_http_protocol_unix_la_LIBADD = $(MODULE_LIBADD) libprotocol-http.la
1457
1458 # D-Bus protocol
1459
1460 module_dbus_protocol_la_SOURCES = \
1461 modules/dbus/iface-card.c modules/dbus/iface-card.h \
1462 modules/dbus/iface-card-profile.c modules/dbus/iface-card-profile.h \
1463 modules/dbus/iface-client.c modules/dbus/iface-client.h \
1464 modules/dbus/iface-core.c modules/dbus/iface-core.h \
1465 modules/dbus/iface-device.c modules/dbus/iface-device.h \
1466 modules/dbus/iface-device-port.c modules/dbus/iface-device-port.h \
1467 modules/dbus/iface-memstats.c modules/dbus/iface-memstats.h \
1468 modules/dbus/iface-module.c modules/dbus/iface-module.h \
1469 modules/dbus/iface-sample.c modules/dbus/iface-sample.h \
1470 modules/dbus/iface-stream.c modules/dbus/iface-stream.h \
1471 modules/dbus/module-dbus-protocol.c
1472 module_dbus_protocol_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1473 module_dbus_protocol_la_LDFLAGS = $(MODULE_LDFLAGS)
1474 module_dbus_protocol_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS)
1475
1476 # Native protocol
1477
1478 module_native_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1479 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1480 module_native_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1481 module_native_protocol_tcp_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1482
1483 module_native_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1484 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1485 module_native_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1486 module_native_protocol_unix_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1487
1488 module_native_protocol_fd_la_SOURCES = modules/module-native-protocol-fd.c
1489 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
1490 module_native_protocol_fd_la_LDFLAGS = $(MODULE_LDFLAGS)
1491 module_native_protocol_fd_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1492
1493 # EsounD protocol
1494
1495 if HAVE_ESOUND
1496 module_esound_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1497 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1498 module_esound_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1499 module_esound_protocol_tcp_la_LIBADD = $(MODULE_LIBADD) libprotocol-esound.la
1500
1501 module_esound_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1502 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1503 module_esound_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1504 module_esound_protocol_unix_la_LIBADD = $(MODULE_LIBADD) libprotocol-esound.la
1505
1506 module_esound_compat_spawnfd_la_SOURCES = modules/module-esound-compat-spawnfd.c
1507 module_esound_compat_spawnfd_la_LDFLAGS = $(MODULE_LDFLAGS)
1508 module_esound_compat_spawnfd_la_LIBADD = $(MODULE_LIBADD)
1509
1510 module_esound_compat_spawnpid_la_SOURCES = modules/module-esound-compat-spawnpid.c
1511 module_esound_compat_spawnpid_la_LDFLAGS = $(MODULE_LDFLAGS)
1512 module_esound_compat_spawnpid_la_LIBADD = $(MODULE_LIBADD)
1513
1514 module_esound_sink_la_SOURCES = modules/module-esound-sink.c
1515 module_esound_sink_la_LDFLAGS = $(MODULE_LDFLAGS) $(WINSOCK_LIBS)
1516 module_esound_sink_la_LIBADD = $(MODULE_LIBADD)
1517 endif
1518
1519 # Pipes
1520
1521 module_pipe_sink_la_SOURCES = modules/module-pipe-sink.c
1522 module_pipe_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1523 module_pipe_sink_la_LIBADD = $(MODULE_LIBADD)
1524
1525 module_pipe_source_la_SOURCES = modules/module-pipe-source.c
1526 module_pipe_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1527 module_pipe_source_la_LIBADD = $(MODULE_LIBADD)
1528
1529 # Fake sources/sinks
1530
1531 module_sine_la_SOURCES = modules/module-sine.c
1532 module_sine_la_LDFLAGS = $(MODULE_LDFLAGS)
1533 module_sine_la_LIBADD = $(MODULE_LIBADD)
1534
1535 module_null_sink_la_SOURCES = modules/module-null-sink.c
1536 module_null_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1537 module_null_sink_la_LIBADD = $(MODULE_LIBADD)
1538
1539 module_null_source_la_SOURCES = modules/module-null-source.c
1540 module_null_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1541 module_null_source_la_LIBADD = $(MODULE_LIBADD)
1542
1543 module_sine_source_la_SOURCES = modules/module-sine-source.c
1544 module_sine_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1545 module_sine_source_la_LIBADD = $(MODULE_LIBADD)
1546
1547 # Couplings
1548
1549 module_combine_la_SOURCES = modules/module-combine.c
1550 module_combine_la_LDFLAGS = $(MODULE_LDFLAGS)
1551 module_combine_la_LIBADD = $(MODULE_LIBADD)
1552
1553 module_combine_sink_la_SOURCES = modules/module-combine-sink.c
1554 module_combine_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1555 module_combine_sink_la_LIBADD = $(MODULE_LIBADD)
1556
1557 module_switch_on_connect_la_SOURCES = modules/module-switch-on-connect.c
1558 module_switch_on_connect_la_LDFLAGS = $(MODULE_LDFLAGS)
1559 module_switch_on_connect_la_LIBADD = $(MODULE_LIBADD)
1560
1561 module_switch_on_port_available_la_SOURCES = modules/module-switch-on-port-available.c
1562 module_switch_on_port_available_la_LDFLAGS = $(MODULE_LDFLAGS)
1563 module_switch_on_port_available_la_LIBADD = $(MODULE_LIBADD)
1564
1565 module_filter_apply_la_SOURCES = modules/module-filter-apply.c
1566 module_filter_apply_la_LDFLAGS = $(MODULE_LDFLAGS)
1567 module_filter_apply_la_LIBADD = $(MODULE_LIBADD)
1568
1569 module_filter_heuristics_la_SOURCES = modules/module-filter-heuristics.c
1570 module_filter_heuristics_la_LDFLAGS = $(MODULE_LDFLAGS)
1571 module_filter_heuristics_la_LIBADD = $(MODULE_LIBADD)
1572
1573 module_remap_sink_la_SOURCES = modules/module-remap-sink.c
1574 module_remap_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1575 module_remap_sink_la_LIBADD = $(MODULE_LIBADD)
1576
1577 module_ladspa_sink_la_SOURCES = modules/module-ladspa-sink.c modules/ladspa.h
1578 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)
1579 module_ladspa_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1580 module_ladspa_sink_la_LIBADD = $(MODULE_LIBADD) $(LIBLTDL)
1581
1582 if HAVE_DBUS
1583 module_ladspa_sink_la_CFLAGS += $(DBUS_CFLAGS)
1584 module_ladspa_sink_la_LIBADD += $(DBUS_LIBS)
1585 endif
1586
1587 module_equalizer_sink_la_SOURCES = modules/module-equalizer-sink.c
1588 module_equalizer_sink_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS) $(DBUS_CFLAGS) $(FFTW_CFLAGS)
1589 module_equalizer_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1590 module_equalizer_sink_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) $(FFTW_LIBS)
1591
1592 module_match_la_SOURCES = modules/module-match.c
1593 module_match_la_LDFLAGS = $(MODULE_LDFLAGS)
1594 module_match_la_LIBADD = $(MODULE_LIBADD)
1595
1596 module_tunnel_sink_la_SOURCES = modules/module-tunnel.c
1597 module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS)
1598 module_tunnel_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1599 module_tunnel_sink_la_LIBADD = $(MODULE_LIBADD)
1600
1601 module_tunnel_source_la_SOURCES = modules/module-tunnel.c
1602 module_tunnel_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1603 module_tunnel_source_la_LIBADD = $(MODULE_LIBADD)
1604
1605 module_loopback_la_SOURCES = modules/module-loopback.c
1606 module_loopback_la_LDFLAGS = $(MODULE_LDFLAGS)
1607 module_loopback_la_LIBADD = $(MODULE_LIBADD)
1608
1609 module_virtual_sink_la_SOURCES = modules/module-virtual-sink.c
1610 module_virtual_sink_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS)
1611 module_virtual_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1612 module_virtual_sink_la_LIBADD = $(MODULE_LIBADD)
1613
1614 module_virtual_source_la_SOURCES = modules/module-virtual-source.c
1615 module_virtual_source_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS)
1616 module_virtual_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1617 module_virtual_source_la_LIBADD = $(MODULE_LIBADD)
1618
1619 module_virtual_surround_sink_la_SOURCES = modules/module-virtual-surround-sink.c
1620 module_virtual_surround_sink_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS)
1621 module_virtual_surround_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1622 module_virtual_surround_sink_la_LIBADD = $(MODULE_LIBADD)
1623
1624 # X11
1625
1626 module_x11_bell_la_SOURCES = modules/x11/module-x11-bell.c
1627 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1628 module_x11_bell_la_LDFLAGS = $(MODULE_LDFLAGS)
1629 module_x11_bell_la_LIBADD = $(MODULE_LIBADD) $(X11_LIBS)
1630
1631 module_x11_publish_la_SOURCES = modules/x11/module-x11-publish.c
1632 module_x11_publish_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1633 module_x11_publish_la_LDFLAGS = $(MODULE_LDFLAGS)
1634 module_x11_publish_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la $(X11_LIBS)
1635
1636 module_x11_xsmp_la_SOURCES = modules/x11/module-x11-xsmp.c
1637 module_x11_xsmp_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1638 module_x11_xsmp_la_LDFLAGS = $(MODULE_LDFLAGS)
1639 module_x11_xsmp_la_LIBADD = $(MODULE_LIBADD) $(X11_LIBS)
1640
1641 module_x11_cork_request_la_SOURCES = modules/x11/module-x11-cork-request.c
1642 module_x11_cork_request_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1643 module_x11_cork_request_la_LDFLAGS = $(MODULE_LDFLAGS)
1644 module_x11_cork_request_la_LIBADD = $(MODULE_LIBADD) $(X11_LIBS)
1645
1646 # OSS
1647
1648 liboss_util_la_SOURCES = modules/oss/oss-util.c modules/oss/oss-util.h
1649 liboss_util_la_LDFLAGS = -avoid-version
1650 liboss_util_la_LIBADD = $(MODULE_LIBADD)
1651
1652 module_oss_la_SOURCES = modules/oss/module-oss.c
1653 module_oss_la_LDFLAGS = $(MODULE_LDFLAGS)
1654 module_oss_la_LIBADD = $(MODULE_LIBADD) liboss-util.la
1655
1656 # COREAUDIO
1657
1658 module_coreaudio_detect_la_SOURCES = modules/macosx/module-coreaudio-detect.c
1659 module_coreaudio_detect_la_LDFLAGS = $(MODULE_LDFLAGS) \
1660 -Wl,-framework -Wl,Cocoa -framework CoreAudio \
1661 -Wl,-framework -Wl,AudioUnit -framework AudioUnit
1662 module_coreaudio_detect_la_LIBADD = $(MODULE_LIBADD)
1663
1664 module_coreaudio_device_la_SOURCES = modules/macosx/module-coreaudio-device.c
1665 module_coreaudio_device_la_LDFLAGS = $(MODULE_LDFLAGS) \
1666 -Wl,-framework -Wl,Cocoa -framework CoreAudio \
1667 -Wl,-framework -Wl,AudioUnit -framework AudioUnit
1668 module_coreaudio_device_la_LIBADD = $(MODULE_LIBADD)
1669
1670 # ALSA
1671
1672 libalsa_util_la_SOURCES = \
1673 modules/alsa/alsa-util.c modules/alsa/alsa-util.h \
1674 modules/alsa/alsa-ucm.c modules/alsa/alsa-ucm.h \
1675 modules/alsa/alsa-mixer.c modules/alsa/alsa-mixer.h \
1676 modules/alsa/alsa-sink.c modules/alsa/alsa-sink.h \
1677 modules/alsa/alsa-source.c modules/alsa/alsa-source.h \
1678 modules/reserve-wrap.c modules/reserve-wrap.h
1679 libalsa_util_la_LDFLAGS = -avoid-version
1680 libalsa_util_la_LIBADD = $(MODULE_LIBADD) $(ASOUNDLIB_LIBS)
1681 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS) $(ASOUNDLIB_CFLAGS)
1682
1683 if HAVE_UDEV
1684 libalsa_util_la_SOURCES += modules/udev-util.h modules/udev-util.c
1685 libalsa_util_la_LIBADD += $(UDEV_LIBS)
1686 libalsa_util_la_CFLAGS += $(UDEV_CFLAGS)
1687 endif
1688
1689 if HAVE_DBUS
1690 libalsa_util_la_SOURCES += modules/reserve.h modules/reserve.c modules/reserve-monitor.h modules/reserve-monitor.c
1691 libalsa_util_la_LIBADD += $(DBUS_LIBS)
1692 libalsa_util_la_CFLAGS += $(DBUS_CFLAGS)
1693 endif
1694
1695 module_alsa_sink_la_SOURCES = modules/alsa/module-alsa-sink.c
1696 module_alsa_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1697 module_alsa_sink_la_LIBADD = $(MODULE_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
1698 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1699
1700 module_alsa_source_la_SOURCES = modules/alsa/module-alsa-source.c
1701 module_alsa_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1702 module_alsa_source_la_LIBADD = $(MODULE_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
1703 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1704
1705 module_alsa_card_la_SOURCES = modules/alsa/module-alsa-card.c
1706 module_alsa_card_la_LDFLAGS = $(MODULE_LDFLAGS)
1707 module_alsa_card_la_LIBADD = $(MODULE_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la
1708 module_alsa_card_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1709
1710 # Solaris
1711
1712 module_solaris_la_SOURCES = modules/module-solaris.c
1713 module_solaris_la_LDFLAGS = $(MODULE_LDFLAGS)
1714 module_solaris_la_LIBADD = $(MODULE_LIBADD)
1715
1716 # Avahi
1717
1718 module_zeroconf_publish_la_SOURCES = modules/module-zeroconf-publish.c
1719 module_zeroconf_publish_la_LDFLAGS = $(MODULE_LDFLAGS)
1720 module_zeroconf_publish_la_LIBADD = $(MODULE_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libprotocol-native.la
1721 module_zeroconf_publish_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1722
1723 module_zeroconf_discover_la_SOURCES = modules/module-zeroconf-discover.c
1724 module_zeroconf_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1725 module_zeroconf_discover_la_LIBADD = $(MODULE_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la
1726 module_zeroconf_discover_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1727
1728 # Bonjour
1729
1730 module_bonjour_publish_la_SOURCES = modules/macosx/module-bonjour-publish.c
1731 module_bonjour_publish_la_LDFLAGS = $(MODULE_LDFLAGS) \
1732 -Wl,-framework -Wl,CoreFoundation -framework CoreFoundation
1733 module_bonjour_publish_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1734
1735 # LIRC
1736
1737 module_lirc_la_SOURCES = modules/module-lirc.c
1738 module_lirc_la_LDFLAGS = $(MODULE_LDFLAGS)
1739 module_lirc_la_LIBADD = $(MODULE_LIBADD) $(LIRC_LIBS)
1740 module_lirc_la_CFLAGS = $(AM_CFLAGS) $(LIRC_CFLAGS)
1741
1742
1743 # Xen PV driver
1744
1745 module_xenpv_sink_la_SOURCES = modules/xen/module-xenpv-sink.c modules/xen/gntalloc.h modules/xen/gntdev.h
1746 module_xenpv_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1747 module_xenpv_sink_la_LIBADD = $(MODULE_LIBADD) $(XEN_LIBS)
1748 module_xenpv_sink_la_CFLAGS = $(AM_CFLAGS) $(XEN_CFLAGS) -I$(top_srcdir)/src/modules/xen
1749
1750
1751 # Linux evdev
1752
1753 module_mmkbd_evdev_la_SOURCES = modules/module-mmkbd-evdev.c
1754 module_mmkbd_evdev_la_LDFLAGS = $(MODULE_LDFLAGS)
1755 module_mmkbd_evdev_la_LIBADD = $(MODULE_LIBADD)
1756 module_mmkbd_evdev_la_CFLAGS = $(AM_CFLAGS)
1757
1758 # Windows waveout
1759 module_waveout_la_SOURCES = modules/module-waveout.c
1760 module_waveout_la_LDFLAGS = $(MODULE_LDFLAGS)
1761 module_waveout_la_LIBADD = $(MODULE_LIBADD) -lwinmm
1762 module_waveout_la_CFLAGS = $(AM_CFLAGS)
1763
1764 # Hardware autodetection module
1765 module_detect_la_SOURCES = modules/module-detect.c
1766 module_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1767 module_detect_la_LIBADD = $(MODULE_LIBADD)
1768 module_detect_la_CFLAGS = $(AM_CFLAGS)
1769
1770 # Volume restore module
1771 module_volume_restore_la_SOURCES = modules/module-volume-restore.c
1772 module_volume_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1773 module_volume_restore_la_LIBADD = $(MODULE_LIBADD)
1774 module_volume_restore_la_CFLAGS = $(AM_CFLAGS)
1775
1776 # Position event sounds in space
1777 module_position_event_sounds_la_SOURCES = modules/module-position-event-sounds.c
1778 module_position_event_sounds_la_LDFLAGS = $(MODULE_LDFLAGS)
1779 module_position_event_sounds_la_LIBADD = $(MODULE_LIBADD)
1780 module_position_event_sounds_la_CFLAGS = $(AM_CFLAGS)
1781
1782 # Ducking effect based on stream roles
1783 module_role_ducking_la_SOURCES = modules/module-role-ducking.c
1784 module_role_ducking_la_LDFLAGS = $(MODULE_LDFLAGS)
1785 module_role_ducking_la_LIBADD = $(MODULE_LIBADD)
1786 module_role_ducking_la_CFLAGS = $(AM_CFLAGS)
1787
1788 # Augment properties from XDG .desktop files
1789 module_augment_properties_la_SOURCES = modules/module-augment-properties.c
1790 module_augment_properties_la_LDFLAGS = $(MODULE_LDFLAGS)
1791 module_augment_properties_la_LIBADD = $(MODULE_LIBADD)
1792 #module_augment_properties_la_CFLAGS = $(AM_CFLAGS) -DDESKTOPFILEDIR=\"$(datadir)/applications\"
1793 module_augment_properties_la_CFLAGS = $(AM_CFLAGS) -DDESKTOPFILEDIR=\"/usr/share/applications\"
1794
1795 # Cork certain streams while others are active (e.g. cork music when phone streams appear)
1796 module_role_cork_la_SOURCES = modules/module-role-cork.c
1797 module_role_cork_la_LDFLAGS = $(MODULE_LDFLAGS)
1798 module_role_cork_la_LIBADD = $(MODULE_LIBADD)
1799 module_role_cork_la_CFLAGS = $(AM_CFLAGS)
1800
1801 # Device description restore module
1802 module_device_manager_la_SOURCES = modules/module-device-manager.c
1803 module_device_manager_la_LDFLAGS = $(MODULE_LDFLAGS)
1804 module_device_manager_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1805 module_device_manager_la_CFLAGS = $(AM_CFLAGS)
1806
1807 # Device volume/muted restore module
1808 module_device_restore_la_SOURCES = modules/module-device-restore.c
1809 module_device_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1810 module_device_restore_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1811 module_device_restore_la_CFLAGS = $(AM_CFLAGS)
1812
1813 if HAVE_DBUS
1814 module_device_restore_la_LIBADD += $(DBUS_LIBS)
1815 module_device_restore_la_CFLAGS += $(DBUS_CFLAGS)
1816 endif
1817
1818 # Stream volume/muted/device restore module
1819 module_stream_restore_la_SOURCES = modules/module-stream-restore.c
1820 module_stream_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1821 module_stream_restore_la_LIBADD = $(MODULE_LIBADD) libprotocol-native.la
1822 module_stream_restore_la_CFLAGS = $(AM_CFLAGS)
1823
1824 if HAVE_DBUS
1825 module_stream_restore_la_LIBADD += $(DBUS_LIBS)
1826 module_stream_restore_la_CFLAGS += $(DBUS_CFLAGS)
1827 endif
1828
1829 # Card profile restore module
1830 module_card_restore_la_SOURCES = modules/module-card-restore.c
1831 module_card_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1832 module_card_restore_la_LIBADD = $(MODULE_LIBADD)
1833 module_card_restore_la_CFLAGS = $(AM_CFLAGS)
1834
1835 # Default sink/source restore module
1836 module_default_device_restore_la_SOURCES = modules/module-default-device-restore.c
1837 module_default_device_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1838 module_default_device_restore_la_LIBADD = $(MODULE_LIBADD)
1839 module_default_device_restore_la_CFLAGS = $(AM_CFLAGS)
1840
1841 # Always Sink module
1842 module_always_sink_la_SOURCES = modules/module-always-sink.c
1843 module_always_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1844 module_always_sink_la_LIBADD = $(MODULE_LIBADD)
1845 module_always_sink_la_CFLAGS = $(AM_CFLAGS)
1846
1847 # Rescue streams module
1848 module_rescue_streams_la_SOURCES = modules/module-rescue-streams.c
1849 module_rescue_streams_la_LDFLAGS = $(MODULE_LDFLAGS)
1850 module_rescue_streams_la_LIBADD = $(MODULE_LIBADD)
1851 module_rescue_streams_la_CFLAGS = $(AM_CFLAGS)
1852
1853 # Automatically move streams to devices that are intended for their roles
1854 module_intended_roles_la_SOURCES = modules/module-intended-roles.c
1855 module_intended_roles_la_LDFLAGS = $(MODULE_LDFLAGS)
1856 module_intended_roles_la_LIBADD = $(MODULE_LIBADD)
1857 module_intended_roles_la_CFLAGS = $(AM_CFLAGS)
1858
1859 # Suspend-on-idle module
1860 module_suspend_on_idle_la_SOURCES = modules/module-suspend-on-idle.c
1861 module_suspend_on_idle_la_LDFLAGS = $(MODULE_LDFLAGS)
1862 module_suspend_on_idle_la_LIBADD = $(MODULE_LIBADD)
1863 module_suspend_on_idle_la_CFLAGS = $(AM_CFLAGS)
1864
1865 # echo-cancel module
1866 module_echo_cancel_la_SOURCES = \
1867 modules/echo-cancel/module-echo-cancel.c \
1868 modules/echo-cancel/null.c \
1869 modules/echo-cancel/echo-cancel.h
1870 module_echo_cancel_la_LDFLAGS = $(MODULE_LDFLAGS)
1871 module_echo_cancel_la_LIBADD = $(MODULE_LIBADD) $(LIBSPEEX_LIBS)
1872 module_echo_cancel_la_CFLAGS = $(AM_CFLAGS) $(SERVER_CFLAGS) $(LIBSPEEX_CFLAGS)
1873 if HAVE_ADRIAN_EC
1874 module_echo_cancel_la_SOURCES += \
1875 modules/echo-cancel/adrian-aec.c modules/echo-cancel/adrian-aec.h \
1876 modules/echo-cancel/adrian.c modules/echo-cancel/adrian.h
1877 module_echo_cancel_la_CFLAGS += -DHAVE_ADRIAN_EC=1
1878 if HAVE_ORC
1879 ORC_SOURCE += modules/echo-cancel/adrian-aec
1880 nodist_module_echo_cancel_la_SOURCES = \
1881 modules/echo-cancel/adrian-aec-orc-gen.c \
1882 modules/echo-cancel/adrian-aec-orc-gen.h
1883 module_echo_cancel_la_LIBADD += $(ORC_LIBS)
1884 module_echo_cancel_la_CFLAGS += $(ORC_CFLAGS) -I$(top_builddir)/src/modules/echo-cancel
1885 endif
1886 endif
1887 if HAVE_SPEEX
1888 module_echo_cancel_la_SOURCES += modules/echo-cancel/speex.c
1889 endif
1890 if HAVE_WEBRTC
1891 # The webrtc code is split off into a helper library to avoid having automake
1892 # link module-echo-cancel with C++ (which it does if there are any C++ deps,
1893 # even conditional ones).
1894
1895 libwebrtc_util_la_SOURCES = modules/echo-cancel/webrtc.cc
1896 libwebrtc_util_la_CXXFLAGS = $(AM_CXXFLAGS) $(SERVER_CFLAGS) $(WEBRTC_CFLAGS) -DHAVE_WEBRTC=1
1897 libwebrtc_util_la_LIBADD = $(WEBRTC_LIBS)
1898 libwebrtc_util_la_LDFLAGS = -avoid-version
1899
1900 module_echo_cancel_la_CFLAGS += -DHAVE_WEBRTC=1
1901 module_echo_cancel_la_LIBADD += libwebrtc-util.la
1902 endif
1903
1904 # RTP modules
1905 module_rtp_send_la_SOURCES = modules/rtp/module-rtp-send.c
1906 module_rtp_send_la_LDFLAGS = $(MODULE_LDFLAGS)
1907 module_rtp_send_la_LIBADD = $(MODULE_LIBADD) librtp.la
1908 module_rtp_send_la_CFLAGS = $(AM_CFLAGS)
1909
1910 module_rtp_recv_la_SOURCES = modules/rtp/module-rtp-recv.c
1911 module_rtp_recv_la_LDFLAGS = $(MODULE_LDFLAGS)
1912 module_rtp_recv_la_LIBADD = $(MODULE_LIBADD) librtp.la
1913 module_rtp_recv_la_CFLAGS = $(AM_CFLAGS)
1914
1915 # JACK
1916
1917 module_jackdbus_detect_la_SOURCES = modules/jack/module-jackdbus-detect.c
1918 module_jackdbus_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1919 module_jackdbus_detect_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) $(JACK_LIBS)
1920 module_jackdbus_detect_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) $(JACK_CFLAGS)
1921
1922 module_jack_sink_la_SOURCES = modules/jack/module-jack-sink.c
1923 module_jack_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1924 module_jack_sink_la_LIBADD = $(MODULE_LIBADD) $(JACK_LIBS)
1925 module_jack_sink_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1926
1927 module_jack_source_la_SOURCES = modules/jack/module-jack-source.c
1928 module_jack_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1929 module_jack_source_la_LIBADD = $(MODULE_LIBADD) $(JACK_LIBS)
1930 module_jack_source_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1931
1932 module_hal_detect_la_SOURCES = modules/module-hal-detect-compat.c
1933 module_hal_detect_la_LIBADD = $(MODULE_LIBADD)
1934 module_hal_detect_la_CFLAGS = $(AM_CFLAGS)
1935 module_hal_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1936
1937 module_udev_detect_la_SOURCES = modules/module-udev-detect.c
1938 module_udev_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1939 module_udev_detect_la_LIBADD = $(MODULE_LIBADD) $(UDEV_LIBS)
1940 module_udev_detect_la_CFLAGS = $(AM_CFLAGS) $(UDEV_CFLAGS)
1941
1942 module_console_kit_la_SOURCES = modules/module-console-kit.c
1943 module_console_kit_la_LDFLAGS = $(MODULE_LDFLAGS)
1944 module_console_kit_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) $(SYSTEMD_LIBS)
1945 module_console_kit_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) $(SYSTEMD_CFLAGS)
1946
1947 module_systemd_login_la_SOURCES = modules/module-systemd-login.c
1948 module_systemd_login_la_LDFLAGS = $(MODULE_LDFLAGS)
1949 module_systemd_login_la_LIBADD = $(MODULE_LIBADD) $(SYSTEMD_LIBS)
1950 module_systemd_login_la_CFLAGS = $(AM_CFLAGS) $(SYSTEMD_CFLAGS)
1951
1952 # GConf support
1953 module_gconf_la_SOURCES = modules/gconf/module-gconf.c
1954 module_gconf_la_LDFLAGS = $(MODULE_LDFLAGS)
1955 module_gconf_la_LIBADD = $(MODULE_LIBADD)
1956 module_gconf_la_CFLAGS = $(AM_CFLAGS) -DPA_GCONF_HELPER=\"$(pulselibexecdir)/gconf-helper\"
1957
1958 gconf_helper_SOURCES = modules/gconf/gconf-helper.c
1959 gconf_helper_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(GCONF_LIBS)
1960 gconf_helper_CFLAGS = $(AM_CFLAGS) $(GCONF_CFLAGS)
1961 gconf_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
1962
1963 # Bluetooth proximity
1964 module_bluetooth_proximity_la_SOURCES = modules/bluetooth/module-bluetooth-proximity.c
1965 module_bluetooth_proximity_la_LDFLAGS = $(MODULE_LDFLAGS)
1966 module_bluetooth_proximity_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS)
1967 module_bluetooth_proximity_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) -DPA_BT_PROXIMITY_HELPER=\"$(pulselibexecdir)/proximity-helper\"
1968
1969 proximity_helper_SOURCES = modules/bluetooth/proximity-helper.c
1970 proximity_helper_LDADD = $(AM_LDADD) $(BLUEZ_LIBS)
1971 proximity_helper_CFLAGS = $(AM_CFLAGS) $(BLUEZ_CFLAGS)
1972 proximity_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
1973
1974 # Bluetooth sink / source
1975 module_bluetooth_discover_la_SOURCES = modules/bluetooth/module-bluetooth-discover.c
1976 module_bluetooth_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1977 module_bluetooth_discover_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) libbluetooth-util.la
1978 module_bluetooth_discover_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1979
1980
1981 libbluetooth_util_la_SOURCES = \
1982 modules/bluetooth/a2dp-codecs.h \
1983 modules/bluetooth/bluetooth-util.c \
1984 modules/bluetooth/bluetooth-util.h
1985 libbluetooth_util_la_LDFLAGS = -avoid-version
1986 libbluetooth_util_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS)
1987 libbluetooth_util_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1988
1989 module_bluetooth_device_la_SOURCES = modules/bluetooth/module-bluetooth-device.c modules/bluetooth/rtp.h
1990 module_bluetooth_device_la_LDFLAGS = $(MODULE_LDFLAGS)
1991 module_bluetooth_device_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) $(SBC_LIBS) libbluetooth-util.la
1992 module_bluetooth_device_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) $(SBC_CFLAGS)
1993
1994 module_bluetooth_policy_la_SOURCES = modules/bluetooth/module-bluetooth-policy.c
1995 module_bluetooth_policy_la_LDFLAGS = $(MODULE_LDFLAGS)
1996 module_bluetooth_policy_la_LIBADD = $(MODULE_LIBADD)
1997 module_bluetooth_policy_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1998
1999 # Apple Airtunes/RAOP
2000 module_raop_sink_la_SOURCES = modules/raop/module-raop-sink.c
2001 module_raop_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
2002 module_raop_sink_la_LIBADD = $(MODULE_LIBADD) librtp.la libraop.la
2003 module_raop_sink_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/src/modules/rtp
2004
2005 module_raop_discover_la_SOURCES = modules/raop/module-raop-discover.c
2006 module_raop_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
2007 module_raop_discover_la_LIBADD = $(MODULE_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la
2008 module_raop_discover_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
2009
2010 # Rygel
2011 module_rygel_media_server_la_SOURCES = modules/module-rygel-media-server.c
2012 module_rygel_media_server_la_LDFLAGS = $(MODULE_LDFLAGS)
2013 module_rygel_media_server_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) libprotocol-http.la
2014 module_rygel_media_server_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
2015
2016 ###################################
2017 # Some minor stuff #
2018 ###################################
2019
2020 CLEANFILES += daemon/pulseaudio.desktop daemon/pulseaudio-kde.desktop
2021 DISTCLEANFILES = esdcompat client.conf default.pa system.pa daemon.conf start-pulseaudio-x11 start-pulseaudio-kde
2022
2023 if OS_IS_WIN32
2024 SYMLINK_PROGRAM=cd $(DESTDIR)$(bindir) && cp
2025 else
2026 SYMLINK_PROGRAM=ln -sf
2027 endif
2028 install-exec-hook:
2029 if HAVE_BLUEZ
2030 -chown root $(DESTDIR)$(pulselibexecdir)/proximity-helper
2031 -chmod u+s $(DESTDIR)$(pulselibexecdir)/proximity-helper
2032 endif
2033 $(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/parec$(EXEEXT)
2034 $(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/pamon$(EXEEXT)
2035 $(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/paplay$(EXEEXT)
2036 $(SYMLINK_PROGRAM) pacat$(EXEEXT) $(DESTDIR)$(bindir)/parecord$(EXEEXT)
2037 rm -f $(DESTDIR)$(libdir)/libpulsedsp.la
2038 rm -f $(DESTDIR)$(modlibexecdir)/*.la
2039
2040 uninstall-hook:
2041 rm -f $(DESTDIR)$(bindir)/parec$(EXEEXT)
2042 rm -f $(DESTDIR)$(bindir)/pamon$(EXEEXT)
2043 rm -f $(DESTDIR)$(bindir)/paplay$(EXEEXT)
2044 rm -f $(DESTDIR)$(bindir)/parecord$(EXEEXT)
2045 rm -f $(DESTDIR)$(libdir)/libpulsedsp.*
2046 rm -f $(DESTDIR)$(modlibexecdir)/*.so
2047
2048 massif: pulseaudio
2049 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
2050
2051 update-ffmpeg:
2052 wget -O pulsecore/ffmpeg/resample2.c http://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec/resample2.c?view=co
2053
2054 update-reserve:
2055 for i in reserve.c reserve.h reserve-monitor.c reserve-monitor.h ; do \
2056 wget -O $(top_srcdir)/src/modules/$$i http://git.0pointer.de/\?p=reserve.git\;a=blob_plain\;f=$$i\;hb=master ; \
2057 done
2058
2059 update-rtkit:
2060 for i in rtkit.c rtkit.h ; do \
2061 wget -O $(top_srcdir)/src/pulsecore/$$i http://git.0pointer.de/\?p=rtkit.git\;a=blob_plain\;f=$$i\;hb=master ; \
2062 done
2063
2064 # Automatically generate linker version script. We use the same one for all public .sos
2065 update-map-file:
2066 ( echo "PULSE_0 {" ; \
2067 echo "global:" ; \
2068 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 ; \
2069 echo "local:" ; \
2070 echo "*;" ; \
2071 echo "};" ) > $(srcdir)/map-file
2072
2073 update-all: update-ffmpeg update-map-file
2074
2075 # Force installation order of libraries. libtool relinks on install time, in
2076 # which case libpulsecommon has to be installed before others, but the padsp
2077 # preload library has to be done after the normal libraries (e.g. libpulse)
2078 # ...
2079 # Unfortunately automake behaviour means that rules without commands also
2080 # override build-in rules, so it's not trivial to add dependencies.
2081 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328 for the workaround
2082 # ...
2083 # Isn't libtool/autotools fun!
2084
2085 installlibLTLIBRARIES = install-libLTLIBRARIES
2086 $(installlibLTLIBRARIES): install-pkglibLTLIBRARIES
2087
2088 installmodlibexecLTLIBRARIES = install-modlibexecLTLIBRARIES
2089 $(installmodlibexecLTLIBRARIES): install-pkglibLTLIBRARIES
2090
2091 installpadsplibLTLIBRARIES = install-padsplibLTLIBRARIES
2092 $(installpadsplibLTLIBRARIES): install-libLTLIBRARIES
2093
2094 if HAVE_GCOV
2095 coverage:
2096 @echo ""
2097 @echo "Don't forget to run 'make check' before generating coverage stats."
2098 @echo ""
2099 lcov --capture --directory . --output-file $(builddir)/gcov-all.info
2100 -rm -r $(builddir)/coverage
2101 genhtml --output-directory $(builddir)/coverage gcov-all.info
2102 @echo ""
2103 @echo "Coverage data now available at: $(abs_builddir)/coverage/index.html"
2104 else
2105 coverage:
2106 @echo ""
2107 @echo "To generate coverage stats, rerun configure with '--enable-gcov',"
2108 @echo "and don't forget to disable it again for regular builds."
2109 @echo ""
2110 endif
2111
2112 .PHONY: massif update-all update-ffmpeg update-map-file coverage