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