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