]> code.delx.au - pulseaudio/blob - src/Makefile.am
rtclock: fix issues found by Lennart
[pulseaudio] / src / Makefile.am
1 # This file is part of PulseAudio.
2 #
3 # Copyright 2004-2006 Lennart Poettering
4 # Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
5 # Copyright 2006 Diego Pettenò
6 #
7 # PulseAudio is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # PulseAudio is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with PulseAudio; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 # USA.
21
22
23 ###################################
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
36 ###################################
37 # Defines #
38 ###################################
39
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
46
47 ###################################
48 # Compiler/linker flags #
49 ###################################
50
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)\"
87
88 AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
89 AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
90 AM_LDFLAGS = -Wl,-z,nodelete
91
92 if STATIC_BINS
93 BINLDFLAGS = -static
94 endif
95
96 if OS_IS_WIN32
97 AM_LDFLAGS+=-Wl,--export-all-symbols
98 WINSOCK_LIBS=-lwsock32 -lws2_32 -lwininet
99 endif
100
101 FOREIGN_CFLAGS = -w
102 MODULE_LDFLAGS = -module -disable-static -avoid-version
103
104 ###################################
105 # Extra files #
106 ###################################
107
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 daemon/org.pulseaudio.policy.in \
123 modules/alsa/mixer/profile-sets/default.conf \
124 modules/alsa/mixer/profile-sets/native-instruments-audio4dj.conf \
125 modules/alsa/mixer/profile-sets/native-instruments-audio8dj.conf \
126 modules/alsa/mixer/profile-sets/90-pulseaudio.rules \
127 modules/alsa/mixer/paths/analog-input-aux.conf \
128 modules/alsa/mixer/paths/analog-input.conf \
129 modules/alsa/mixer/paths/analog-input.conf.common \
130 modules/alsa/mixer/paths/analog-input-fm.conf \
131 modules/alsa/mixer/paths/analog-input-linein.conf \
132 modules/alsa/mixer/paths/analog-input-mic.conf \
133 modules/alsa/mixer/paths/analog-input-mic.conf.common \
134 modules/alsa/mixer/paths/analog-input-mic-line.conf \
135 modules/alsa/mixer/paths/analog-input-tvtuner.conf \
136 modules/alsa/mixer/paths/analog-input-video.conf \
137 modules/alsa/mixer/paths/analog-output.conf \
138 modules/alsa/mixer/paths/analog-output.conf.common \
139 modules/alsa/mixer/paths/analog-output-headphones.conf \
140 modules/alsa/mixer/paths/analog-output-lfe-on-mono.conf \
141 modules/alsa/mixer/paths/analog-output-mono.conf
142
143 pulseconf_DATA = \
144 default.pa \
145 system.pa \
146 daemon.conf \
147 client.conf
148
149 if HAVE_X11
150 xdgautostart_in_files = \
151 daemon/pulseaudio.desktop.in
152 endif
153 xdgautostart_DATA = $(xdgautostart_in_files:.desktop.in=.desktop)
154 @INTLTOOL_DESKTOP_RULE@
155
156
157 BUILT_SOURCES = \
158 pulse/version.h
159
160 ###################################
161 # Main daemon #
162 ###################################
163
164 bin_PROGRAMS = pulseaudio
165
166 pulseaudio_SOURCES = \
167 daemon/caps.h daemon/caps.c \
168 daemon/cmdline.c daemon/cmdline.h \
169 daemon/cpulimit.c daemon/cpulimit.h \
170 daemon/daemon-conf.c daemon/daemon-conf.h \
171 daemon/dumpmodules.c daemon/dumpmodules.h \
172 daemon/ltdl-bind-now.c daemon/ltdl-bind-now.h \
173 daemon/main.c
174
175 pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSPEEX_CFLAGS) $(LIBSNDFILE_CFLAGS) $(CAP_CFLAGS) $(LIBOIL_CFLAGS) $(DBUS_CFLAGS)
176 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)
177 # This is needed because automake doesn't properly expand the foreach below
178 pulseaudio_DEPENDENCIES = libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la $(PREOPEN_LIBS)
179
180 if PREOPEN_MODS
181 PREOPEN_LIBS = $(PREOPEN_MODS)
182 else
183 PREOPEN_LIBS = $(modlibexec_LTLIBRARIES)
184 endif
185
186 if FORCE_PREOPEN
187 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlpreopen force $(foreach f,$(PREOPEN_LIBS),-dlpreopen $(f))
188 else
189 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
190 endif
191
192 if HAVE_POLKIT
193 policy_in_files = daemon/org.pulseaudio.policy.in
194 policy_DATA = $(policy_in_files:.policy.in=.policy)
195 @INTLTOOL_POLICY_RULE@
196
197 pulseaudio_SOURCES += daemon/polkit.c daemon/polkit.h
198 pulseaudio_CFLAGS += $(POLKIT_CFLAGS)
199 pulseaudio_LDADD += $(POLKIT_LIBS)
200 endif
201
202 ###################################
203 # Utility programs #
204 ###################################
205
206 bin_PROGRAMS += \
207 pacat \
208 pactl \
209 pasuspender
210
211 if HAVE_AF_UNIX
212 bin_PROGRAMS += pacmd
213 endif
214
215 if HAVE_X11
216 bin_PROGRAMS += pax11publish
217 endif
218
219 if HAVE_AVAHI
220 bin_PROGRAMS += pabrowse
221 endif
222
223 bin_SCRIPTS = esdcompat start-pulseaudio-x11
224
225 pacat_SOURCES = utils/pacat.c
226 pacat_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la $(LIBSNDFILE_LIBS)
227 pacat_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
228 pacat_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
229
230 pactl_SOURCES = utils/pactl.c
231 pactl_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la $(LIBSNDFILE_LIBS)
232 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
233 pactl_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
234
235 pasuspender_SOURCES = utils/pasuspender.c
236 pasuspender_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la
237 pasuspender_CFLAGS = $(AM_CFLAGS)
238 pasuspender_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
239
240 pacmd_SOURCES = utils/pacmd.c
241 pacmd_CFLAGS = $(AM_CFLAGS)
242 pacmd_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la
243 pacmd_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
244
245 pax11publish_SOURCES = utils/pax11publish.c
246 pax11publish_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
247 pax11publish_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la $(X11_LIBS)
248 pax11publish_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
249
250 pabrowse_SOURCES = utils/pabrowse.c
251 pabrowse_LDADD = $(AM_LDADD) libpulse.la libpulse-browse.la libpulsecommon-@PA_MAJORMINORMICRO@.la
252 pabrowse_CFLAGS = $(AM_CFLAGS)
253 pabrowse_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
254
255 ###################################
256 # Test programs #
257 ###################################
258
259 # missing: mcalign-test flist-test pacat-simple parec-simple sync-playback rtstutter stripnul interpol-test thread-test
260
261 TESTS = \
262 mainloop-test \
263 strlist-test \
264 close-test \
265 voltest \
266 vector-test \
267 memblockq-test \
268 channelmap-test \
269 thread-mainloop-test \
270 utf8-test \
271 get-binary-name-test \
272 ipacl-test \
273 hook-list-test \
274 memblock-test \
275 asyncq-test \
276 asyncmsgq-test \
277 queue-test \
278 rtpoll-test \
279 sig2str-test \
280 resampler-test \
281 smoother-test \
282 mix-test \
283 remix-test \
284 envelope-test \
285 proplist-test \
286 lock-autospawn-test \
287 prioq-test \
288 sigbus-test
289
290 TESTS_BINARIES = \
291 mainloop-test \
292 mcalign-test \
293 pacat-simple \
294 parec-simple \
295 strlist-test \
296 close-test \
297 voltest \
298 vector-test \
299 memblockq-test \
300 sync-playback \
301 interpol-test \
302 channelmap-test \
303 thread-mainloop-test \
304 utf8-test \
305 get-binary-name-test \
306 ipacl-test \
307 hook-list-test \
308 memblock-test \
309 thread-test \
310 flist-test \
311 asyncq-test \
312 asyncmsgq-test \
313 queue-test \
314 rtpoll-test \
315 sig2str-test \
316 resampler-test \
317 smoother-test \
318 mix-test \
319 remix-test \
320 envelope-test \
321 proplist-test \
322 rtstutter \
323 stripnul \
324 lock-autospawn-test \
325 prioq-test \
326 sigbus-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) $(LIBOIL_CFLAGS)
503 resampler_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
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) $(LIBOIL_CFLAGS)
508 mix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
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) $(LIBOIL_CFLAGS)
513 remix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
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) $(LIBOIL_CFLAGS)
523 envelope_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
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) $(LIBOIL_CFLAGS)
528 proplist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
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) $(LIBOIL_CFLAGS)
533 rtstutter_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
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) $(LIBOIL_CFLAGS)
538 stripnul_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
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) $(LIBOIL_CFLAGS)
543 lock_autospawn_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
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) $(LIBOIL_CFLAGS)
548 prioq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
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) $(LIBOIL_CFLAGS)
553 sigbus_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
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 ###################################
566 # Common library #
567 ###################################
568
569 lib_LTLIBRARIES = \
570 libpulsecommon-@PA_MAJORMINORMICRO@.la
571
572 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES = \
573 pulse/client-conf.c pulse/client-conf.h \
574 pulse/i18n.c pulse/i18n.h \
575 pulse/fork-detect.c pulse/fork-detect.h \
576 pulsecore/atomic.h \
577 pulsecore/authkey.c pulsecore/authkey.h \
578 pulsecore/conf-parser.c pulsecore/conf-parser.h \
579 pulsecore/core-error.c pulsecore/core-error.h \
580 pulsecore/core-rtclock.c pulsecore/core-rtclock.h \
581 pulsecore/core-util.c pulsecore/core-util.h \
582 pulsecore/creds.h \
583 pulsecore/dynarray.c pulsecore/dynarray.h \
584 pulsecore/endianmacros.h \
585 pulsecore/flist.c pulsecore/flist.h \
586 pulsecore/hashmap.c pulsecore/hashmap.h \
587 pulsecore/idxset.c pulsecore/idxset.h \
588 pulsecore/inet_ntop.c pulsecore/inet_ntop.h \
589 pulsecore/inet_pton.c pulsecore/inet_pton.h \
590 pulsecore/iochannel.c pulsecore/iochannel.h \
591 pulsecore/ioline.c pulsecore/ioline.h \
592 pulsecore/ipacl.h pulsecore/ipacl.c \
593 pulsecore/llist.h \
594 pulsecore/lock-autospawn.c pulsecore/lock-autospawn.h \
595 pulsecore/log.c pulsecore/log.h \
596 pulsecore/ratelimit.c pulsecore/ratelimit.h \
597 pulsecore/macro.h pulsecore/vector.h \
598 pulsecore/mcalign.c pulsecore/mcalign.h \
599 pulsecore/memblock.c pulsecore/memblock.h \
600 pulsecore/memblockq.c pulsecore/memblockq.h \
601 pulsecore/memchunk.c pulsecore/memchunk.h \
602 pulsecore/native-common.h \
603 pulsecore/once.c pulsecore/once.h \
604 pulsecore/packet.c pulsecore/packet.h \
605 pulsecore/parseaddr.c pulsecore/parseaddr.h \
606 pulsecore/pdispatch.c pulsecore/pdispatch.h \
607 pulsecore/pid.c pulsecore/pid.h \
608 pulsecore/pipe.c pulsecore/pipe.h \
609 pulsecore/poll.c pulsecore/poll.h \
610 pulsecore/prioq.c pulsecore/prioq.h \
611 pulsecore/memtrap.c pulsecore/memtrap.h \
612 pulsecore/aupdate.c pulsecore/aupdate.h \
613 pulsecore/proplist-util.c pulsecore/proplist-util.h \
614 pulsecore/pstream-util.c pulsecore/pstream-util.h \
615 pulsecore/pstream.c pulsecore/pstream.h \
616 pulsecore/queue.c pulsecore/queue.h \
617 pulsecore/random.c pulsecore/random.h \
618 pulsecore/refcnt.h \
619 pulsecore/shm.c pulsecore/shm.h \
620 pulsecore/bitset.c pulsecore/bitset.h \
621 pulsecore/socket-client.c pulsecore/socket-client.h \
622 pulsecore/socket-server.c pulsecore/socket-server.h \
623 pulsecore/socket-util.c pulsecore/socket-util.h \
624 pulsecore/strbuf.c pulsecore/strbuf.h \
625 pulsecore/strlist.c pulsecore/strlist.h \
626 pulsecore/tagstruct.c pulsecore/tagstruct.h \
627 pulsecore/time-smoother.c pulsecore/time-smoother.h \
628 pulsecore/tokenizer.c pulsecore/tokenizer.h \
629 pulsecore/sndfile-util.c pulsecore/sndfile-util.h \
630 pulsecore/winsock.h
631
632 libpulsecommon_@PA_MAJORMINORMICRO@_la_CFLAGS = $(AM_CFLAGS)
633 libpulsecommon_@PA_MAJORMINORMICRO@_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
634 libpulsecommon_@PA_MAJORMINORMICRO@_la_LIBADD = $(AM_LIBADD) $(LIBWRAP_LIBS) $(WINSOCK_LIBS) $(LTLIBICONV) $(LIBSNDFILE_LIBS)
635
636 # proplist-util.h uses these header files, but not the library itself!
637 libpulsecommon_@PA_MAJORMINORMICRO@_la_CFLAGS += $(GLIB20_CFLAGS) $(GTK20_CFLAGS)
638
639 ## Please note that libpulsecommon implicitly also depends on<
640 ## libpulse! i.e. we have a cyclic dependancy here. Which is intended
641 ## since libpulse only includes stable, official APIs, while
642 ## libpulsecommon only includes unofficial APIs.
643
644 if OS_IS_WIN32
645 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES += \
646 pulsecore/mutex-win32.c pulsecore/mutex.h \
647 pulsecore/thread-win32.c pulsecore/thread.h \
648 pulsecore/semaphore-win32.c pulsecore/semaphore.h
649 else
650 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES += \
651 pulsecore/mutex-posix.c pulsecore/mutex.h \
652 pulsecore/thread-posix.c pulsecore/thread.h \
653 pulsecore/semaphore-posix.c pulsecore/semaphore.h
654 endif
655
656 if HAVE_X11
657 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES += pulsecore/x11prop.c pulsecore/x11prop.h
658 libpulsecommon_@PA_MAJORMINORMICRO@_la_CFLAGS += $(X11_CFLAGS)
659 libpulsecommon_@PA_MAJORMINORMICRO@_la_LDFLAGS += $(X11_LIBS)
660 endif
661
662 if HAVE_LIBASYNCNS
663 libpulsecommon_@PA_MAJORMINORMICRO@_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
664 libpulsecommon_@PA_MAJORMINORMICRO@_la_LIBADD += $(LIBASYNCNS_LIBS)
665 endif
666
667 if OS_IS_WIN32
668 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES += pulsecore/dllmain.c
669 endif
670
671 if HAVE_DBUS
672 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES += pulsecore/dbus-util.c pulsecore/dbus-util.h
673 libpulsecommon_@PA_MAJORMINORMICRO@_la_CFLAGS += $(DBUS_CFLAGS)
674 libpulsecommon_@PA_MAJORMINORMICRO@_la_LIBADD += $(DBUS_LIBS)
675 endif
676
677 ###################################
678 # Client library #
679 ###################################
680
681 pulseinclude_HEADERS = \
682 pulse/cdecl.h \
683 pulse/channelmap.h \
684 pulse/context.h \
685 pulse/def.h \
686 pulse/error.h \
687 pulse/ext-stream-restore.h \
688 pulse/gccmacro.h \
689 pulse/introspect.h \
690 pulse/mainloop-api.h \
691 pulse/mainloop-signal.h \
692 pulse/mainloop.h \
693 pulse/operation.h \
694 pulse/proplist.h \
695 pulse/pulseaudio.h \
696 pulse/rtclock.h \
697 pulse/sample.h \
698 pulse/scache.h \
699 pulse/simple.h \
700 pulse/stream.h \
701 pulse/subscribe.h \
702 pulse/thread-mainloop.h \
703 pulse/timeval.h \
704 pulse/utf8.h \
705 pulse/util.h \
706 pulse/version.h \
707 pulse/volume.h \
708 pulse/xmalloc.h
709
710 lib_LTLIBRARIES += \
711 libpulse.la \
712 libpulse-simple.la
713
714 if HAVE_AVAHI
715 pulseinclude_HEADERS += \
716 pulse/browser.h
717
718 lib_LTLIBRARIES += \
719 libpulse-browse.la
720 endif
721
722 if HAVE_GLIB20
723 pulseinclude_HEADERS += \
724 pulse/glib-mainloop.h
725
726 lib_LTLIBRARIES += \
727 libpulse-mainloop-glib.la
728 endif
729
730 # Public interface
731 libpulse_la_SOURCES = \
732 pulse/cdecl.h \
733 pulse/channelmap.c pulse/channelmap.h \
734 pulse/context.c pulse/context.h \
735 pulse/def.h \
736 pulse/error.c pulse/error.h \
737 pulse/ext-stream-restore.c pulse/ext-stream-restore.h \
738 pulse/gccmacro.h \
739 pulse/internal.h \
740 pulse/introspect.c pulse/introspect.h \
741 pulse/mainloop-api.c pulse/mainloop-api.h \
742 pulse/mainloop-signal.c pulse/mainloop-signal.h \
743 pulse/mainloop.c pulse/mainloop.h \
744 pulse/operation.c pulse/operation.h \
745 pulse/proplist.c pulse/proplist.h \
746 pulse/pulseaudio.h \
747 pulse/rtclock.c pulse/rtclock.h \
748 pulse/sample.c pulse/sample.h \
749 pulse/scache.c pulse/scache.h \
750 pulse/stream.c pulse/stream.h \
751 pulse/subscribe.c pulse/subscribe.h \
752 pulse/thread-mainloop.c pulse/thread-mainloop.h \
753 pulse/timeval.c pulse/timeval.h \
754 pulse/utf8.c pulse/utf8.h \
755 pulse/util.c pulse/util.h \
756 pulse/volume.c pulse/volume.h \
757 pulse/xmalloc.c pulse/xmalloc.h
758
759 libpulse_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
760 libpulse_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS) $(LTLIBICONV) libpulsecommon-@PA_MAJORMINORMICRO@.la
761 libpulse_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_VERSION_INFO)
762
763 if HAVE_X11
764 libpulse_la_SOURCES += pulse/client-conf-x11.c pulse/client-conf-x11.h
765 libpulse_la_CFLAGS += $(X11_CFLAGS)
766 libpulse_la_LDFLAGS += $(X11_LIBS)
767 endif
768
769 libpulse_simple_la_SOURCES = pulse/simple.c pulse/simple.h
770 libpulse_simple_la_CFLAGS = $(AM_CFLAGS)
771 libpulse_simple_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la
772 libpulse_simple_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_SIMPLE_VERSION_INFO)
773
774 libpulse_browse_la_SOURCES = pulse/browser.c pulse/browser.h pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
775 libpulse_browse_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
776 libpulse_browse_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la $(AVAHI_LIBS)
777 libpulse_browse_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_BROWSE_VERSION_INFO)
778
779 libpulse_mainloop_glib_la_SOURCES = pulse/glib-mainloop.h pulse/glib-mainloop.c
780 libpulse_mainloop_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
781 libpulse_mainloop_glib_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la $(GLIB20_LIBS)
782 libpulse_mainloop_glib_la_LDFLAGS = $(AM_LDFLAGS) $(VERSIONING_LDFLAGS) -version-info $(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO)
783
784 ###################################
785 # OSS emulation #
786 ###################################
787
788 if HAVE_OSS
789 lib_LTLIBRARIES += libpulsedsp.la
790 bin_SCRIPTS += utils/padsp
791 endif
792
793 libpulsedsp_la_SOURCES = utils/padsp.c
794 libpulsedsp_la_CFLAGS = $(AM_CFLAGS)
795 libpulsedsp_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la
796 libpulsedsp_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version -disable-static
797
798 ###################################
799 # Daemon core library #
800 ###################################
801
802 lib_LTLIBRARIES += libpulsecore-@PA_MAJORMINORMICRO@.la
803
804 # Pure core stuff
805 libpulsecore_@PA_MAJORMINORMICRO@_la_SOURCES = \
806 pulsecore/asyncmsgq.c pulsecore/asyncmsgq.h \
807 pulsecore/asyncq.c pulsecore/asyncq.h \
808 pulsecore/auth-cookie.c pulsecore/auth-cookie.h \
809 pulsecore/cli-command.c pulsecore/cli-command.h \
810 pulsecore/cli-text.c pulsecore/cli-text.h \
811 pulsecore/client.c pulsecore/client.h \
812 pulsecore/card.c pulsecore/card.h \
813 pulsecore/core-scache.c pulsecore/core-scache.h \
814 pulsecore/core-subscribe.c pulsecore/core-subscribe.h \
815 pulsecore/core.c pulsecore/core.h \
816 pulsecore/envelope.c pulsecore/envelope.h \
817 pulsecore/fdsem.c pulsecore/fdsem.h \
818 pulsecore/g711.c pulsecore/g711.h \
819 pulsecore/hook-list.c pulsecore/hook-list.h \
820 pulsecore/ltdl-helper.c pulsecore/ltdl-helper.h \
821 pulsecore/modargs.c pulsecore/modargs.h \
822 pulsecore/modinfo.c pulsecore/modinfo.h \
823 pulsecore/module.c pulsecore/module.h \
824 pulsecore/msgobject.c pulsecore/msgobject.h \
825 pulsecore/namereg.c pulsecore/namereg.h \
826 pulsecore/object.c pulsecore/object.h \
827 pulsecore/play-memblockq.c pulsecore/play-memblockq.h \
828 pulsecore/play-memchunk.c pulsecore/play-memchunk.h \
829 pulsecore/resampler.c pulsecore/resampler.h \
830 pulsecore/rtpoll.c pulsecore/rtpoll.h \
831 pulsecore/rtsig.c pulsecore/rtsig.h \
832 pulsecore/sample-util.c pulsecore/sample-util.h \
833 pulsecore/sconv-s16be.c pulsecore/sconv-s16be.h \
834 pulsecore/sconv-s16le.c pulsecore/sconv-s16le.h \
835 pulsecore/sconv.c pulsecore/sconv.h \
836 pulsecore/shared.c pulsecore/shared.h \
837 pulsecore/shm.c pulsecore/shm.h \
838 pulsecore/sink-input.c pulsecore/sink-input.h \
839 pulsecore/sink.c pulsecore/sink.h \
840 pulsecore/sioman.c pulsecore/sioman.h \
841 pulsecore/sound-file-stream.c pulsecore/sound-file-stream.h \
842 pulsecore/sound-file.c pulsecore/sound-file.h \
843 pulsecore/source-output.c pulsecore/source-output.h \
844 pulsecore/source.c pulsecore/source.h \
845 pulsecore/start-child.c pulsecore/start-child.h \
846 pulsecore/thread-mq.c pulsecore/thread-mq.h \
847 pulsecore/time-smoother.c pulsecore/time-smoother.h \
848 pulsecore/database.h
849
850 libpulsecore_@PA_MAJORMINORMICRO@_la_CFLAGS = $(AM_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSPEEX_CFLAGS) $(WINSOCK_CFLAGS) $(LIBOIL_CFLAGS)
851 libpulsecore_@PA_MAJORMINORMICRO@_la_LDFLAGS = -avoid-version
852 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
853
854 if HAVE_X11
855 libpulsecore_@PA_MAJORMINORMICRO@_la_SOURCES += pulsecore/x11wrap.c pulsecore/x11wrap.h
856 libpulsecore_@PA_MAJORMINORMICRO@_la_CFLAGS += $(X11_CFLAGS)
857 libpulsecore_@PA_MAJORMINORMICRO@_la_LDFLAGS += $(X11_LIBS)
858 endif
859
860 if HAVE_DBUS
861 libpulsecore_@PA_MAJORMINORMICRO@_la_SOURCES += pulsecore/dbus-shared.c pulsecore/dbus-shared.h
862 libpulsecore_@PA_MAJORMINORMICRO@_la_CFLAGS += $(DBUS_CFLAGS)
863 libpulsecore_@PA_MAJORMINORMICRO@_la_LIBADD += $(DBUS_LIBS)
864 endif
865
866 if HAVE_GDBM
867 libpulsecore_@PA_MAJORMINORMICRO@_la_SOURCES += pulsecore/database-gdbm.c
868 libpulsecore_@PA_MAJORMINORMICRO@_la_CFLAGS += $(GDBM_CFLAGS)
869 libpulsecore_@PA_MAJORMINORMICRO@_la_LIBADD += $(GDBM_LIBS)
870 endif
871
872 if HAVE_TDB
873 libpulsecore_@PA_MAJORMINORMICRO@_la_SOURCES += pulsecore/database-tdb.c
874 libpulsecore_@PA_MAJORMINORMICRO@_la_CFLAGS += $(TDB_CFLAGS)
875 libpulsecore_@PA_MAJORMINORMICRO@_la_LIBADD += $(TDB_LIBS)
876 endif
877
878
879 # We split the foreign code off to not be annoyed by warnings we don't care about
880 noinst_LTLIBRARIES = libpulsecore-foreign.la
881
882 libpulsecore_foreign_la_SOURCES = \
883 pulsecore/ffmpeg/resample2.c pulsecore/ffmpeg/avcodec.h pulsecore/ffmpeg/dsputil.h
884
885 libpulsecore_foreign_la_CFLAGS = $(AM_CFLAGS) $(FOREIGN_CFLAGS)
886
887 ###################################
888 # Plug-in support libraries #
889 ###################################
890
891 ### Warning! Due to an obscure bug in libtool/automake it is required
892 ### that the libraries in modlibexec_LTLIBRARIES are specified in-order,
893 ### i.e. libraries near the end of the list depend on libraries near
894 ### the head, and not the other way!
895
896 modlibexec_LTLIBRARIES = \
897 libcli.la \
898 libprotocol-cli.la \
899 libprotocol-simple.la \
900 libprotocol-http.la \
901 libprotocol-native.la \
902 libprotocol-esound.la
903
904 # We need to emulate sendmsg/recvmsg to support this on Win32
905 if !OS_IS_WIN32
906 modlibexec_LTLIBRARIES += \
907 librtp.la
908 endif
909
910 if HAVE_AVAHI
911 modlibexec_LTLIBRARIES += \
912 libavahi-wrap.la
913 endif
914
915 libprotocol_simple_la_SOURCES = pulsecore/protocol-simple.c pulsecore/protocol-simple.h
916 libprotocol_simple_la_LDFLAGS = -avoid-version
917 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
918
919 libcli_la_SOURCES = pulsecore/cli.c pulsecore/cli.h
920 libcli_la_LDFLAGS = -avoid-version
921 libcli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
922
923 libprotocol_cli_la_SOURCES = pulsecore/protocol-cli.c pulsecore/protocol-cli.h
924 libprotocol_cli_la_LDFLAGS = -avoid-version
925 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la libcli.la
926
927 libprotocol_http_la_SOURCES = pulsecore/protocol-http.c pulsecore/protocol-http.h pulsecore/mime-type.c pulsecore/mime-type.h
928 libprotocol_http_la_LDFLAGS = -avoid-version
929 libprotocol_http_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
930
931 libprotocol_native_la_SOURCES = pulsecore/protocol-native.c pulsecore/protocol-native.h pulsecore/native-common.h
932 libprotocol_native_la_LDFLAGS = -avoid-version
933 libprotocol_native_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
934
935 libprotocol_esound_la_SOURCES = pulsecore/protocol-esound.c pulsecore/protocol-esound.h pulsecore/esound.h
936 libprotocol_esound_la_LDFLAGS = -avoid-version
937 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
938
939 librtp_la_SOURCES = \
940 modules/rtp/rtp.c modules/rtp/rtp.h \
941 modules/rtp/sdp.c modules/rtp/sdp.h \
942 modules/rtp/sap.c modules/rtp/sap.h \
943 modules/rtp/rtsp_client.c modules/rtp/rtsp_client.h \
944 modules/rtp/headerlist.c modules/rtp/headerlist.h
945 librtp_la_LDFLAGS = -avoid-version
946 librtp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
947
948 libraop_la_SOURCES = \
949 modules/raop/raop_client.c modules/raop/raop_client.h \
950 modules/raop/base64.c modules/raop/base64.h
951 libraop_la_CFLAGS = $(AM_CFLAGS) $(OPENSSL_CFLAGS)
952 libraop_la_LDFLAGS = -avoid-version
953 libraop_la_LIBADD = $(AM_LIBADD) $(OPENSSL_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la librtp.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
954
955 # Avahi
956 libavahi_wrap_la_SOURCES = pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
957 libavahi_wrap_la_LDFLAGS = -avoid-version
958 libavahi_wrap_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
959 libavahi_wrap_la_LIBADD = $(AM_LIBADD) $(AVAHI_CFLAGS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
960
961 ###################################
962 # Plug-in libraries #
963 ###################################
964
965 if HAVE_DBUS
966 # Serveral module (e.g. libalsa-util.la)
967 modlibexec_LTLIBRARIES += \
968 module-console-kit.la
969 endif
970
971 modlibexec_LTLIBRARIES += \
972 module-cli.la \
973 module-cli-protocol-tcp.la \
974 module-simple-protocol-tcp.la \
975 module-null-sink.la \
976 module-sine-source.la \
977 module-detect.la \
978 module-volume-restore.la \
979 module-device-restore.la \
980 module-stream-restore.la \
981 module-card-restore.la \
982 module-default-device-restore.la \
983 module-always-sink.la \
984 module-rescue-streams.la \
985 module-suspend-on-idle.la \
986 module-http-protocol-tcp.la \
987 module-sine.la \
988 module-native-protocol-tcp.la \
989 module-native-protocol-fd.la \
990 module-esound-protocol-tcp.la \
991 module-combine.la \
992 module-remap-sink.la \
993 module-ladspa-sink.la \
994 module-esound-sink.la \
995 module-tunnel-sink.la \
996 module-tunnel-source.la \
997 module-position-event-sounds.la \
998 module-augment-properties.la \
999 module-cork-music-on-phone.la
1000
1001
1002 # See comment at librtp.la above
1003 if !OS_IS_WIN32
1004 modlibexec_LTLIBRARIES += \
1005 module-rtp-send.la \
1006 module-rtp-recv.la
1007 endif
1008
1009 if HAVE_AF_UNIX
1010 modlibexec_LTLIBRARIES += \
1011 module-cli-protocol-unix.la \
1012 module-simple-protocol-unix.la \
1013 module-http-protocol-unix.la \
1014 module-native-protocol-unix.la \
1015 module-esound-protocol-unix.la
1016 endif
1017
1018 if HAVE_MKFIFO
1019 modlibexec_LTLIBRARIES += \
1020 module-pipe-sink.la \
1021 module-pipe-source.la
1022 endif
1023
1024 if !OS_IS_WIN32
1025 modlibexec_LTLIBRARIES += \
1026 module-esound-compat-spawnfd.la \
1027 module-esound-compat-spawnpid.la
1028 endif
1029
1030 if HAVE_REGEX
1031 modlibexec_LTLIBRARIES += \
1032 module-match.la
1033 endif
1034
1035 if HAVE_X11
1036 modlibexec_LTLIBRARIES += \
1037 module-x11-bell.la \
1038 module-x11-publish.la \
1039 module-x11-xsmp.la \
1040 module-x11-cork-request.la
1041 endif
1042
1043 if HAVE_OSS
1044 modlibexec_LTLIBRARIES += \
1045 liboss-util.la \
1046 module-oss.la
1047 endif
1048
1049 pulselibexec_PROGRAMS =
1050
1051 if HAVE_ALSA
1052 modlibexec_LTLIBRARIES += \
1053 libalsa-util.la \
1054 module-alsa-sink.la \
1055 module-alsa-source.la \
1056 module-alsa-card.la
1057
1058 alsaprofilesets_DATA = \
1059 modules/alsa/mixer/profile-sets/default.conf \
1060 modules/alsa/mixer/profile-sets/native-instruments-audio4dj.conf \
1061 modules/alsa/mixer/profile-sets/native-instruments-audio8dj.conf
1062
1063 udevrules_DATA = \
1064 modules/alsa/mixer/profile-sets/90-pulseaudio.rules
1065
1066 alsapaths_DATA = \
1067 modules/alsa/mixer/paths/analog-input-aux.conf \
1068 modules/alsa/mixer/paths/analog-input.conf \
1069 modules/alsa/mixer/paths/analog-input.conf.common \
1070 modules/alsa/mixer/paths/analog-input-fm.conf \
1071 modules/alsa/mixer/paths/analog-input-linein.conf \
1072 modules/alsa/mixer/paths/analog-input-mic.conf \
1073 modules/alsa/mixer/paths/analog-input-mic.conf.common \
1074 modules/alsa/mixer/paths/analog-input-mic-line.conf \
1075 modules/alsa/mixer/paths/analog-input-tvtuner.conf \
1076 modules/alsa/mixer/paths/analog-input-video.conf \
1077 modules/alsa/mixer/paths/analog-output.conf \
1078 modules/alsa/mixer/paths/analog-output.conf.common \
1079 modules/alsa/mixer/paths/analog-output-headphones.conf \
1080 modules/alsa/mixer/paths/analog-output-lfe-on-mono.conf \
1081 modules/alsa/mixer/paths/analog-output-mono.conf
1082
1083 endif
1084
1085 if HAVE_SOLARIS
1086 modlibexec_LTLIBRARIES += \
1087 module-solaris.la
1088 endif
1089
1090 if HAVE_AVAHI
1091 modlibexec_LTLIBRARIES += \
1092 module-zeroconf-publish.la \
1093 module-zeroconf-discover.la
1094 endif
1095
1096 if HAVE_LIRC
1097 modlibexec_LTLIBRARIES += \
1098 module-lirc.la
1099 endif
1100
1101 if HAVE_EVDEV
1102 modlibexec_LTLIBRARIES += \
1103 module-mmkbd-evdev.la
1104 endif
1105
1106 if HAVE_JACK
1107 modlibexec_LTLIBRARIES += \
1108 module-jack-sink.la \
1109 module-jack-source.la
1110 endif
1111
1112 if HAVE_GCONF
1113 modlibexec_LTLIBRARIES += \
1114 module-gconf.la
1115
1116 pulselibexec_PROGRAMS += \
1117 gconf-helper
1118 endif
1119
1120 #if OS_IS_WIN32
1121 #modlibexec_LTLIBRARIES += \
1122 # module-waveout.la
1123 #endif
1124
1125 if HAVE_HAL
1126 modlibexec_LTLIBRARIES += \
1127 module-hal-detect.la
1128 endif
1129
1130 if HAVE_UDEV
1131 modlibexec_LTLIBRARIES += \
1132 module-udev-detect.la
1133 endif
1134
1135 if HAVE_DBUS
1136 modlibexec_LTLIBRARIES += \
1137 module-rygel-media-server.la
1138 endif
1139
1140 if HAVE_BLUEZ
1141 modlibexec_LTLIBRARIES += \
1142 libbluetooth-util.la \
1143 module-bluetooth-proximity.la \
1144 module-bluetooth-discover.la \
1145 libbluetooth-ipc.la \
1146 libbluetooth-sbc.la \
1147 module-bluetooth-device.la
1148
1149 pulselibexec_PROGRAMS += \
1150 proximity-helper
1151 endif
1152
1153 if HAVE_OPENSSL
1154 modlibexec_LTLIBRARIES += \
1155 libraop.la \
1156 module-raop-sink.la
1157 if HAVE_AVAHI
1158 modlibexec_LTLIBRARIES += \
1159 module-raop-discover.la
1160 endif
1161 endif
1162
1163 # These are generated by an M4 script
1164 SYMDEF_FILES = \
1165 modules/module-cli-symdef.h \
1166 modules/module-cli-protocol-tcp-symdef.h \
1167 modules/module-cli-protocol-unix-symdef.h \
1168 modules/module-pipe-sink-symdef.h \
1169 modules/module-pipe-source-symdef.h \
1170 modules/module-simple-protocol-tcp-symdef.h \
1171 modules/module-simple-protocol-unix-symdef.h \
1172 modules/module-esound-protocol-tcp-symdef.h \
1173 modules/module-esound-protocol-unix-symdef.h \
1174 modules/module-native-protocol-tcp-symdef.h \
1175 modules/module-native-protocol-unix-symdef.h \
1176 modules/module-native-protocol-fd-symdef.h \
1177 modules/module-sine-symdef.h \
1178 modules/module-combine-symdef.h \
1179 modules/module-remap-sink-symdef.h \
1180 modules/module-ladspa-sink-symdef.h \
1181 modules/module-esound-compat-spawnfd-symdef.h \
1182 modules/module-esound-compat-spawnpid-symdef.h \
1183 modules/module-match-symdef.h \
1184 modules/module-tunnel-sink-symdef.h \
1185 modules/module-tunnel-source-symdef.h \
1186 modules/module-null-sink-symdef.h \
1187 modules/module-sine-source-symdef.h \
1188 modules/module-esound-sink-symdef.h \
1189 modules/module-zeroconf-publish-symdef.h \
1190 modules/module-zeroconf-discover-symdef.h \
1191 modules/module-lirc-symdef.h \
1192 modules/module-mmkbd-evdev-symdef.h \
1193 modules/module-http-protocol-tcp-symdef.h \
1194 modules/module-http-protocol-unix-symdef.h \
1195 modules/module-rygel-media-server-symdef.h \
1196 modules/x11/module-x11-bell-symdef.h \
1197 modules/x11/module-x11-publish-symdef.h \
1198 modules/x11/module-x11-xsmp-symdef.h \
1199 modules/x11/module-x11-cork-request-symdef.h \
1200 modules/oss/module-oss-symdef.h \
1201 modules/alsa/module-alsa-sink-symdef.h \
1202 modules/alsa/module-alsa-source-symdef.h \
1203 modules/alsa/module-alsa-card-symdef.h \
1204 modules/module-solaris-symdef.h \
1205 modules/module-waveout-symdef.h \
1206 modules/module-detect-symdef.h \
1207 modules/rtp/module-rtp-send-symdef.h \
1208 modules/rtp/module-rtp-recv-symdef.h \
1209 modules/jack/module-jack-sink-symdef.h \
1210 modules/jack/module-jack-source-symdef.h \
1211 modules/module-volume-restore-symdef.h \
1212 modules/module-device-restore-symdef.h \
1213 modules/module-stream-restore-symdef.h \
1214 modules/module-card-restore-symdef.h \
1215 modules/module-default-device-restore-symdef.h \
1216 modules/module-always-sink-symdef.h \
1217 modules/module-rescue-streams-symdef.h \
1218 modules/module-suspend-on-idle-symdef.h \
1219 modules/module-hal-detect-symdef.h \
1220 modules/module-udev-detect-symdef.h \
1221 modules/bluetooth/module-bluetooth-proximity-symdef.h \
1222 modules/bluetooth/module-bluetooth-discover-symdef.h \
1223 modules/bluetooth/module-bluetooth-device-symdef.h \
1224 modules/raop/module-raop-sink-symdef.h \
1225 modules/raop/module-raop-discover-symdef.h \
1226 modules/gconf/module-gconf-symdef.h \
1227 modules/module-position-event-sounds-symdef.h \
1228 modules/module-augment-properties-symdef.h \
1229 modules/module-cork-music-on-phone-symdef.h \
1230 modules/module-console-kit-symdef.h
1231
1232 EXTRA_DIST += $(SYMDEF_FILES)
1233 BUILT_SOURCES += $(SYMDEF_FILES)
1234
1235 $(SYMDEF_FILES): modules/module-defs.h.m4
1236 $(MKDIR_P) $(dir $@)
1237 $(M4) -Dfname="$@" $< > $@
1238
1239 # Simple protocol
1240
1241 module_simple_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1242 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1243 module_simple_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1244 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-simple.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1245
1246 module_simple_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1247 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1248 module_simple_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1249 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-simple.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1250
1251 # CLI protocol
1252
1253 module_cli_la_SOURCES = modules/module-cli.c
1254 module_cli_la_LDFLAGS = $(MODULE_LDFLAGS)
1255 module_cli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libcli.la
1256
1257 module_cli_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1258 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1259 module_cli_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1260 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-cli.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1261
1262 module_cli_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1263 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1264 module_cli_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1265 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-cli.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1266
1267 # HTTP protocol
1268
1269 module_http_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1270 module_http_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1271 module_http_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1272 module_http_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-http.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1273
1274 module_http_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1275 module_http_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1276 module_http_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1277 module_http_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-http.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1278
1279 # Native protocol
1280
1281 module_native_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1282 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1283 module_native_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1284 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-native.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1285
1286 module_native_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1287 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1288 module_native_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1289 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-native.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1290
1291 module_native_protocol_fd_la_SOURCES = modules/module-native-protocol-fd.c
1292 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
1293 module_native_protocol_fd_la_LDFLAGS = $(MODULE_LDFLAGS)
1294 module_native_protocol_fd_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-native.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1295
1296 # EsounD protocol
1297
1298 module_esound_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1299 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1300 module_esound_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1301 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-esound.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1302
1303 module_esound_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1304 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1305 module_esound_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1306 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-esound.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1307
1308 module_esound_compat_spawnfd_la_SOURCES = modules/module-esound-compat-spawnfd.c
1309 module_esound_compat_spawnfd_la_LDFLAGS = $(MODULE_LDFLAGS)
1310 module_esound_compat_spawnfd_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1311
1312 module_esound_compat_spawnpid_la_SOURCES = modules/module-esound-compat-spawnpid.c
1313 module_esound_compat_spawnpid_la_LDFLAGS = $(MODULE_LDFLAGS)
1314 module_esound_compat_spawnpid_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1315
1316 module_esound_sink_la_SOURCES = modules/module-esound-sink.c
1317 module_esound_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1318 module_esound_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1319
1320 # Pipes
1321
1322 module_pipe_sink_la_SOURCES = modules/module-pipe-sink.c
1323 module_pipe_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1324 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1325
1326 module_pipe_source_la_SOURCES = modules/module-pipe-source.c
1327 module_pipe_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1328 module_pipe_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1329
1330 # Fake sources/sinks
1331
1332 module_sine_la_SOURCES = modules/module-sine.c
1333 module_sine_la_LDFLAGS = $(MODULE_LDFLAGS)
1334 module_sine_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1335
1336 module_null_sink_la_SOURCES = modules/module-null-sink.c
1337 module_null_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1338 module_null_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1339
1340 module_sine_source_la_SOURCES = modules/module-sine-source.c
1341 module_sine_source_la_LDFLAGS = -module -avoid-version
1342 module_sine_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1343
1344 # Couplings
1345
1346 module_combine_la_SOURCES = modules/module-combine.c
1347 module_combine_la_LDFLAGS = $(MODULE_LDFLAGS)
1348 module_combine_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1349
1350 module_remap_sink_la_SOURCES = modules/module-remap-sink.c
1351 module_remap_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1352 module_remap_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1353
1354 module_ladspa_sink_la_SOURCES = modules/module-ladspa-sink.c modules/ladspa.h
1355 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)
1356 module_ladspa_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1357 module_ladspa_sink_la_LIBADD = $(AM_LIBADD) $(LIBLTDL) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1358
1359 module_match_la_SOURCES = modules/module-match.c
1360 module_match_la_LDFLAGS = $(MODULE_LDFLAGS)
1361 module_match_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1362
1363 module_tunnel_sink_la_SOURCES = modules/module-tunnel.c
1364 module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS)
1365 module_tunnel_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1366 module_tunnel_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1367
1368 module_tunnel_source_la_SOURCES = modules/module-tunnel.c
1369 module_tunnel_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1370 module_tunnel_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1371
1372 # X11
1373
1374 module_x11_bell_la_SOURCES = modules/x11/module-x11-bell.c
1375 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1376 module_x11_bell_la_LDFLAGS = $(MODULE_LDFLAGS)
1377 module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1378
1379 module_x11_publish_la_SOURCES = modules/x11/module-x11-publish.c
1380 module_x11_publish_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1381 module_x11_publish_la_LDFLAGS = $(MODULE_LDFLAGS)
1382 module_x11_publish_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libprotocol-native.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1383
1384 module_x11_xsmp_la_SOURCES = modules/x11/module-x11-xsmp.c
1385 module_x11_xsmp_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1386 module_x11_xsmp_la_LDFLAGS = $(MODULE_LDFLAGS)
1387 module_x11_xsmp_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1388
1389 module_x11_cork_request_la_SOURCES = modules/x11/module-x11-cork-request.c
1390 module_x11_cork_request_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1391 module_x11_cork_request_la_LDFLAGS = $(MODULE_LDFLAGS)
1392 module_x11_cork_request_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1393
1394 # OSS
1395
1396 liboss_util_la_SOURCES = modules/oss/oss-util.c modules/oss/oss-util.h
1397 liboss_util_la_LDFLAGS = -avoid-version
1398 liboss_util_la_LIBADD = libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1399
1400 module_oss_la_SOURCES = modules/oss/module-oss.c
1401 module_oss_la_LDFLAGS = $(MODULE_LDFLAGS)
1402 module_oss_la_LIBADD = $(AM_LIBADD) liboss-util.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1403
1404 # ALSA
1405
1406 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
1407 libalsa_util_la_LDFLAGS = -avoid-version
1408 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1409 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1410
1411 if HAVE_HAL
1412 libalsa_util_la_SOURCES += modules/hal-util.h modules/hal-util.c
1413 libalsa_util_la_LIBADD += $(HAL_LIBS)
1414 libalsa_util_la_CFLAGS += $(HAL_CFLAGS)
1415 endif
1416
1417 if HAVE_UDEV
1418 libalsa_util_la_SOURCES += modules/udev-util.h modules/udev-util.c
1419 libalsa_util_la_LIBADD += $(UDEV_LIBS)
1420 libalsa_util_la_CFLAGS += $(UDEV_CFLAGS)
1421 endif
1422
1423 if HAVE_DBUS
1424 libalsa_util_la_SOURCES += modules/reserve.h modules/reserve.c modules/reserve-monitor.h modules/reserve-monitor.c
1425 libalsa_util_la_LIBADD += $(DBUS_LIBS)
1426 libalsa_util_la_CFLAGS += $(DBUS_CFLAGS)
1427 endif
1428
1429 module_alsa_sink_la_SOURCES = modules/alsa/module-alsa-sink.c
1430 module_alsa_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1431 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1432 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1433
1434 module_alsa_source_la_SOURCES = modules/alsa/module-alsa-source.c
1435 module_alsa_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1436 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1437 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1438
1439 module_alsa_card_la_SOURCES = modules/alsa/module-alsa-card.c
1440 module_alsa_card_la_LDFLAGS = $(MODULE_LDFLAGS)
1441 module_alsa_card_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1442 module_alsa_card_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1443
1444 # Solaris
1445
1446 module_solaris_la_SOURCES = modules/module-solaris.c
1447 module_solaris_la_LDFLAGS = $(MODULE_LDFLAGS)
1448 module_solaris_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1449
1450 # Avahi
1451
1452 module_zeroconf_publish_la_SOURCES = modules/module-zeroconf-publish.c
1453 module_zeroconf_publish_la_LDFLAGS = $(MODULE_LDFLAGS)
1454 module_zeroconf_publish_la_LIBADD = $(AM_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1455 module_zeroconf_publish_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1456
1457 module_zeroconf_discover_la_SOURCES = modules/module-zeroconf-discover.c
1458 module_zeroconf_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1459 module_zeroconf_discover_la_LIBADD = $(AM_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1460 module_zeroconf_discover_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1461
1462 # LIRC
1463
1464 module_lirc_la_SOURCES = modules/module-lirc.c
1465 module_lirc_la_LDFLAGS = $(MODULE_LDFLAGS)
1466 module_lirc_la_LIBADD = $(AM_LIBADD) $(LIRC_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1467 module_lirc_la_CFLAGS = $(AM_CFLAGS) $(LIRC_CFLAGS)
1468
1469 # Linux evdev
1470
1471 module_mmkbd_evdev_la_SOURCES = modules/module-mmkbd-evdev.c
1472 module_mmkbd_evdev_la_LDFLAGS = $(MODULE_LDFLAGS)
1473 module_mmkbd_evdev_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1474 module_mmkbd_evdev_la_CFLAGS = $(AM_CFLAGS)
1475
1476 # Windows waveout
1477
1478 #module_waveout_la_SOURCES = modules/module-waveout.c
1479 #module_waveout_la_LDFLAGS = $(MODULE_LDFLAGS)
1480 #module_waveout_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la -lwinmm libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1481 #module_waveout_la_CFLAGS = $(AM_CFLAGS)
1482
1483 # Hardware autodetection module
1484 module_detect_la_SOURCES = modules/module-detect.c
1485 module_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1486 module_detect_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1487 module_detect_la_CFLAGS = $(AM_CFLAGS)
1488
1489 # Volume restore module
1490 module_volume_restore_la_SOURCES = modules/module-volume-restore.c
1491 module_volume_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1492 module_volume_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1493 module_volume_restore_la_CFLAGS = $(AM_CFLAGS)
1494
1495 # Position event sounds in space
1496 module_position_event_sounds_la_SOURCES = modules/module-position-event-sounds.c
1497 module_position_event_sounds_la_LDFLAGS = $(MODULE_LDFLAGS)
1498 module_position_event_sounds_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1499 module_position_event_sounds_la_CFLAGS = $(AM_CFLAGS)
1500
1501 # Augment properties from XDG .desktop files
1502 module_augment_properties_la_SOURCES = modules/module-augment-properties.c
1503 module_augment_properties_la_LDFLAGS = $(MODULE_LDFLAGS)
1504 module_augment_properties_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1505 #module_augment_properties_la_CFLAGS = $(AM_CFLAGS) -DDESKTOPFILEDIR=\"$(datadir)/applications\"
1506 module_augment_properties_la_CFLAGS = $(AM_CFLAGS) -DDESKTOPFILEDIR=\"/usr/share/applications\"
1507
1508 # Cork music streams while a phone stream is active
1509 module_cork_music_on_phone_la_SOURCES = modules/module-cork-music-on-phone.c
1510 module_cork_music_on_phone_la_LDFLAGS = $(MODULE_LDFLAGS)
1511 module_cork_music_on_phone_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1512 module_cork_music_on_phone_la_CFLAGS = $(AM_CFLAGS)
1513
1514 # Device volume/muted restore module
1515 module_device_restore_la_SOURCES = modules/module-device-restore.c
1516 module_device_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1517 module_device_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1518 module_device_restore_la_CFLAGS = $(AM_CFLAGS)
1519
1520 # Stream volume/muted/device restore module
1521 module_stream_restore_la_SOURCES = modules/module-stream-restore.c
1522 module_stream_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1523 module_stream_restore_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1524 module_stream_restore_la_CFLAGS = $(AM_CFLAGS)
1525
1526 # Card profile restore module
1527 module_card_restore_la_SOURCES = modules/module-card-restore.c
1528 module_card_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1529 module_card_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1530 module_card_restore_la_CFLAGS = $(AM_CFLAGS)
1531
1532 # Default sink/source restore module
1533 module_default_device_restore_la_SOURCES = modules/module-default-device-restore.c
1534 module_default_device_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1535 module_default_device_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1536 module_default_device_restore_la_CFLAGS = $(AM_CFLAGS)
1537
1538 # Always Sink module
1539 module_always_sink_la_SOURCES = modules/module-always-sink.c
1540 module_always_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1541 module_always_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1542 module_always_sink_la_CFLAGS = $(AM_CFLAGS)
1543
1544 # Rescue streams module
1545 module_rescue_streams_la_SOURCES = modules/module-rescue-streams.c
1546 module_rescue_streams_la_LDFLAGS = $(MODULE_LDFLAGS)
1547 module_rescue_streams_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1548 module_rescue_streams_la_CFLAGS = $(AM_CFLAGS)
1549
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)
1555
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)
1561
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)
1566
1567 # JACK
1568
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)
1573
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)
1578
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)
1583
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)
1588
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)
1593
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\"
1599
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)
1604
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\"
1610
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)
1615
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)
1621
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))
1627
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
1633
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)
1638
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)
1643
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
1648
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)
1653
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)
1659
1660 ###################################
1661 # Some minor stuff #
1662 ###################################
1663
1664 suid: pulseaudio .libs/lt-pulseaudio
1665 chown root $^
1666 chmod u+s $^
1667
1668 CLEANFILES = esdcompat client.conf default.pa system.pa daemon.conf start-pulseaudio-x11 daemon/pulseaudio.desktop daemon/org.pulseaudio.policy
1669
1670 esdcompat: daemon/esdcompat.in Makefile
1671 sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1672 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1673 -e 's,@PA_BINARY\@,$(PA_BINARY),g' < $< > $@
1674 chmod +x esdcompat
1675
1676 start-pulseaudio-x11: daemon/start-pulseaudio-x11.in Makefile
1677 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1678 -e 's,@PACTL_BINARY\@,$(bindir)/pactl,g' < $< > $@
1679 chmod +x start-pulseaudio-x11
1680
1681 client.conf: pulse/client.conf.in Makefile
1682 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' < $< > $@
1683
1684 if OS_IS_WIN32
1685 default.pa: daemon/default.pa.win32
1686 cp $< $@
1687 system.pa: daemon/default.pa.win32
1688 cp $< $@
1689 else
1690 default.pa: daemon/default.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 system.pa: daemon/system.pa.in Makefile
1695 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1696 -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1697 -e 's,@PA_SOEXT\@,.so,g' < $< > $@
1698 endif
1699
1700 daemon.conf: daemon/daemon.conf.in Makefile
1701 sed -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1702 -e 's,@PA_DEFAULT_CONFIG_FILE\@,$(DEFAULT_CONFIG_DIR),g' < $< > $@
1703
1704 install-exec-hook:
1705 chown root $(DESTDIR)$(bindir)/pulseaudio ; true
1706 chmod u+s $(DESTDIR)$(bindir)/pulseaudio
1707 -chmod u+s $(DESTDIR)$(pulselibexecdir)/proximity-helper
1708 ln -sf pacat $(DESTDIR)$(bindir)/parec
1709 ln -sf pacat $(DESTDIR)$(bindir)/pamon
1710 ln -sf pacat $(DESTDIR)$(bindir)/paplay
1711 ln -sf pacat $(DESTDIR)$(bindir)/parecord
1712 rm -f $(DESTDIR)$(libdir)/libpulsedsp.la
1713 rm -f $(DESTDIR)$(modlibexecdir)/*.la
1714
1715 uninstall-hook:
1716 rm -f $(DESTDIR)$(bindir)/parec
1717 rm -f $(DESTDIR)$(bindir)/pamon
1718 rm -f $(DESTDIR)$(bindir)/paplay
1719 rm -f $(DESTDIR)$(bindir)/parecord
1720 rm -f $(DESTDIR)$(libdir)/libpulsedsp.*
1721 rm -f $(DESTDIR)$(modlibexecdir)/*.so
1722
1723 massif: pulseaudio
1724 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
1725
1726 update-ffmpeg:
1727 wget -O pulsecore/ffmpeg/resample2.c http://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec/resample2.c?view=co
1728
1729 # We get things twice here, because sometimes gitweb will us just give a "Generating..." otherwise.
1730 update-sbc:
1731 for i in $(BLUETOOTH_SBC_FILES) ; do \
1732 wget -O /dev/null http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=sbc/$$i ; \
1733 wget -O modules/bluetooth/$$i http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=sbc/$$i ; \
1734 done
1735 for i in $(BLUETOOTH_IPC_FILES); do \
1736 wget -O /dev/null http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=audio/$$i ; \
1737 wget -O modules/bluetooth/$$i http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=audio/$$i ; \
1738 done
1739
1740 update-reserve:
1741 for i in reserve.c reserve.h reserve-monitor.c reserve-monitor.h ; do \
1742 wget -O modules/$$i http://git.0pointer.de/\?p=reserve.git\;a=blob_plain\;f=$$i\;hb=master ; \
1743 done
1744
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
1753
1754 update-all: update-ffmpeg update-sbc update-map-file
1755
1756 .PHONY: utils/padsp massif update-all update-ffmpeg update-sbc update-map-file