]> code.delx.au - pulseaudio/blob - src/Makefile.am
Merge commit '7104d54bbce8f9bd2553e16f45f3a0f69ac75b8b'
[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
33 ###################################
34 # Defines #
35 ###################################
36
37 PA_BINARY=$(bindir)/pulseaudio$(EXEEXT)
38 if OS_IS_WIN32
39 PA_DEFAULT_CONFIG_DIR=%PULSE_ROOT%
40 else
41 PA_DEFAULT_CONFIG_DIR=$(pulseconfdir)
42 endif
43
44 ###################################
45 # Compiler/linker flags #
46 ###################################
47
48 AM_CFLAGS = \
49 -I$(top_srcdir)/src \
50 -I$(top_builddir)/src \
51 -I$(top_srcdir)/src/modules \
52 -I$(top_builddir)/src/modules \
53 -I$(top_srcdir)/src/modules/rtp \
54 -I$(top_builddir)/src/modules/rtp \
55 -I$(top_srcdir)/src/modules/gconf \
56 -I$(top_builddir)/src/modules/gconf \
57 -I$(top_srcdir)/src/modules/bluetooth \
58 -I$(top_builddir)/src/modules/bluetooth \
59 -I$(top_srcdir)/src/modules/raop \
60 $(PTHREAD_CFLAGS) -D_POSIX_PTHREAD_SEMANTICS \
61 $(LTDLINCL) \
62 $(LIBSAMPLERATE_CFLAGS) \
63 $(LIBSNDFILE_CFLAGS) \
64 $(LIBSPEEX_CFLAGS) \
65 -DPA_DLSEARCHPATH=\"$(modlibexecdir)\" \
66 -DPA_DEFAULT_CONFIG_DIR=\"$(PA_DEFAULT_CONFIG_DIR)\" \
67 -DPA_BINARY=\"$(PA_BINARY)\" \
68 -DPA_SYSTEM_RUNTIME_PATH=\"$(PA_SYSTEM_RUNTIME_PATH)\" \
69 -DPA_SYSTEM_CONFIG_PATH=\"$(PA_SYSTEM_CONFIG_PATH)\" \
70 -DPA_SYSTEM_STATE_PATH=\"$(PA_SYSTEM_STATE_PATH)\" \
71 -DAO_REQUIRE_CAS \
72 -DPULSE_LOCALEDIR=\"$(pulselocaledir)\" \
73 -DPA_MACHINE_ID=\"$(localstatedir)/lib/dbus/machine-id\"
74
75 AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
76 AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
77 AM_LDFLAGS = -Wl,-z,nodelete
78
79 if STATIC_BINS
80 BINLDFLAGS = -static
81 endif
82
83 if OS_IS_WIN32
84 AM_LDFLAGS+=-Wl,--export-all-symbols
85 WINSOCK_LIBS=-lwsock32 -lws2_32 -lwininet
86 endif
87
88 MODULE_LDFLAGS = -module -disable-static -avoid-version
89
90 ###################################
91 # Extra files #
92 ###################################
93
94 EXTRA_DIST = \
95 pulse/client.conf.in \
96 pulse/version.h.in \
97 daemon/daemon.conf.in \
98 daemon/default.pa.in \
99 daemon/system.pa.in \
100 daemon/default.pa.win32 \
101 depmod.py \
102 daemon/esdcompat.in \
103 daemon/start-pulseaudio-x11.in \
104 utils/padsp \
105 modules/module-defs.h.m4 \
106 daemon/pulseaudio.desktop \
107 map-file \
108 daemon/org.pulseaudio.policy
109
110 pulseconf_DATA = \
111 default.pa \
112 system.pa \
113 daemon.conf \
114 client.conf
115
116 if HAVE_X11
117 xdgautostart_DATA = \
118 daemon/pulseaudio.desktop
119 endif
120
121 BUILT_SOURCES = \
122 pulse/version.h
123
124 ###################################
125 # Main daemon #
126 ###################################
127
128 bin_PROGRAMS = pulseaudio
129
130 pulseaudio_SOURCES = \
131 daemon/caps.h daemon/caps.c \
132 daemon/cmdline.c daemon/cmdline.h \
133 daemon/cpulimit.c daemon/cpulimit.h \
134 daemon/daemon-conf.c daemon/daemon-conf.h \
135 daemon/dumpmodules.c daemon/dumpmodules.h \
136 daemon/ltdl-bind-now.c daemon/ltdl-bind-now.h \
137 daemon/main.c
138
139 pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSPEEX_CFLAGS) $(LIBSNDFILE_CFLAGS) $(CAP_CFLAGS) $(LIBOIL_CFLAGS) $(DBUS_CFLAGS)
140 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)
141 # This is needed because automake doesn't properly expand the foreach below
142 pulseaudio_DEPENDENCIES = libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la $(PREOPEN_LIBS)
143
144 if PREOPEN_MODS
145 PREOPEN_LIBS = $(PREOPEN_MODS)
146 else
147 PREOPEN_LIBS = $(modlibexec_LTLIBRARIES)
148 endif
149
150 if FORCE_PREOPEN
151 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlpreopen force $(foreach f,$(PREOPEN_LIBS),-dlpreopen $(f))
152 else
153 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
154 endif
155
156 if HAVE_POLKIT
157 policy_DATA = daemon/org.pulseaudio.policy
158
159 pulseaudio_SOURCES += daemon/polkit.c daemon/polkit.h
160 pulseaudio_CFLAGS += $(POLKIT_CFLAGS)
161 pulseaudio_LDADD += $(POLKIT_LIBS)
162 endif
163
164 ###################################
165 # Utility programs #
166 ###################################
167
168 bin_PROGRAMS += \
169 pacat \
170 pactl \
171 paplay \
172 pasuspender
173
174 if HAVE_AF_UNIX
175 bin_PROGRAMS += pacmd
176 endif
177
178 if HAVE_X11
179 bin_PROGRAMS += pax11publish
180 endif
181
182 if HAVE_AVAHI
183 bin_PROGRAMS += pabrowse
184 endif
185
186 bin_SCRIPTS = esdcompat start-pulseaudio-x11
187
188 pacat_SOURCES = utils/pacat.c
189 pacat_LDADD = $(AM_LDADD) libpulse.la
190 pacat_CFLAGS = $(AM_CFLAGS)
191 pacat_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
192
193 paplay_SOURCES = utils/paplay.c
194 paplay_LDADD = $(AM_LDADD) libpulse.la $(LIBSNDFILE_LIBS)
195 paplay_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
196 paplay_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
197
198 pactl_SOURCES = utils/pactl.c
199 pactl_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la $(LIBSNDFILE_LIBS)
200 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
201 pactl_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
202
203 pasuspender_SOURCES = utils/pasuspender.c
204 pasuspender_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la $(LIBSNDFILE_LIBS)
205 pasuspender_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
206 pasuspender_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
207
208 pacmd_SOURCES = utils/pacmd.c
209 pacmd_CFLAGS = $(AM_CFLAGS)
210 pacmd_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la
211 pacmd_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
212
213 pax11publish_SOURCES = utils/pax11publish.c
214 pax11publish_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
215 pax11publish_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la $(X11_LIBS)
216 pax11publish_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
217
218 pabrowse_SOURCES = utils/pabrowse.c
219 pabrowse_LDADD = $(AM_LDADD) libpulse.la libpulse-browse.la
220 pabrowse_CFLAGS = $(AM_CFLAGS)
221 pabrowse_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
222
223 ###################################
224 # Test programs #
225 ###################################
226
227 # missing: mcalign-test flist-test pacat-simple parec-simple sync-playback rtstutter stripnul interpol-test thread-test
228
229 TESTS = \
230 mainloop-test \
231 strlist-test \
232 close-test \
233 voltest \
234 memblockq-test \
235 channelmap-test \
236 thread-mainloop-test \
237 utf8-test \
238 get-binary-name-test \
239 ipacl-test \
240 hook-list-test \
241 memblock-test \
242 asyncq-test \
243 asyncmsgq-test \
244 queue-test \
245 rtpoll-test \
246 sig2str-test \
247 resampler-test \
248 smoother-test \
249 mix-test \
250 remix-test \
251 envelope-test \
252 proplist-test \
253 lock-autospawn-test \
254 prioq-test
255
256 noinst_PROGRAMS = \
257 mainloop-test \
258 mcalign-test \
259 pacat-simple \
260 parec-simple \
261 strlist-test \
262 close-test \
263 voltest \
264 memblockq-test \
265 sync-playback \
266 interpol-test \
267 channelmap-test \
268 thread-mainloop-test \
269 utf8-test \
270 get-binary-name-test \
271 ipacl-test \
272 hook-list-test \
273 memblock-test \
274 thread-test \
275 flist-test \
276 asyncq-test \
277 asyncmsgq-test \
278 queue-test \
279 rtpoll-test \
280 sig2str-test \
281 resampler-test \
282 smoother-test \
283 mix-test \
284 remix-test \
285 envelope-test \
286 proplist-test \
287 rtstutter \
288 stripnul \
289 lock-autospawn-test \
290 prioq-test
291
292 if HAVE_SIGXCPU
293 #TESTS += \
294 # cpulimit-test \
295 # cpulimit-test2
296 noinst_PROGRAMS += \
297 cpulimit-test \
298 cpulimit-test2
299 endif
300
301 if HAVE_GLIB20
302 TESTS += \
303 mainloop-test-glib
304 noinst_PROGRAMS += \
305 mainloop-test-glib
306 endif
307
308 mainloop_test_SOURCES = tests/mainloop-test.c
309 mainloop_test_CFLAGS = $(AM_CFLAGS)
310 mainloop_test_LDADD = $(AM_LDADD) libpulse.la
311 mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
312
313 thread_mainloop_test_SOURCES = tests/thread-mainloop-test.c
314 thread_mainloop_test_CFLAGS = $(AM_CFLAGS)
315 thread_mainloop_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la
316 thread_mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
317
318 utf8_test_SOURCES = tests/utf8-test.c
319 utf8_test_CFLAGS = $(AM_CFLAGS)
320 utf8_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
321 utf8_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
322
323 get_binary_name_test_SOURCES = tests/get-binary-name-test.c
324 get_binary_name_test_CFLAGS = $(AM_CFLAGS)
325 get_binary_name_test_LDADD = $(AM_LDADD) libpulse.la
326 get_binary_name_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
327
328 ipacl_test_SOURCES = tests/ipacl-test.c
329 ipacl_test_CFLAGS = $(AM_CFLAGS)
330 ipacl_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
331 ipacl_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
332
333 hook_list_test_SOURCES = tests/hook-list-test.c
334 hook_list_test_CFLAGS = $(AM_CFLAGS)
335 hook_list_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
336 hook_list_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
337
338 memblock_test_SOURCES = tests/memblock-test.c
339 memblock_test_CFLAGS = $(AM_CFLAGS)
340 memblock_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
341 memblock_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
342
343 thread_test_SOURCES = tests/thread-test.c
344 thread_test_CFLAGS = $(AM_CFLAGS)
345 thread_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
346 thread_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
347
348 flist_test_SOURCES = tests/flist-test.c
349 flist_test_CFLAGS = $(AM_CFLAGS)
350 flist_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
351 flist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
352
353 asyncq_test_SOURCES = tests/asyncq-test.c
354 asyncq_test_CFLAGS = $(AM_CFLAGS)
355 asyncq_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
356 asyncq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
357
358 asyncmsgq_test_SOURCES = tests/asyncmsgq-test.c
359 asyncmsgq_test_CFLAGS = $(AM_CFLAGS)
360 asyncmsgq_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
361 asyncmsgq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
362
363 queue_test_SOURCES = tests/queue-test.c
364 queue_test_CFLAGS = $(AM_CFLAGS)
365 queue_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
366 queue_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
367
368 rtpoll_test_SOURCES = tests/rtpoll-test.c
369 rtpoll_test_CFLAGS = $(AM_CFLAGS)
370 rtpoll_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
371 rtpoll_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
372
373 mcalign_test_SOURCES = tests/mcalign-test.c
374 mcalign_test_CFLAGS = $(AM_CFLAGS)
375 mcalign_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
376 mcalign_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
377
378 pacat_simple_SOURCES = tests/pacat-simple.c
379 pacat_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la
380 pacat_simple_CFLAGS = $(AM_CFLAGS)
381 pacat_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
382
383 parec_simple_SOURCES = tests/parec-simple.c
384 parec_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la
385 parec_simple_CFLAGS = $(AM_CFLAGS)
386 parec_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
387
388 strlist_test_SOURCES = tests/strlist-test.c
389 strlist_test_CFLAGS = $(AM_CFLAGS)
390 strlist_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
391 strlist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
392
393 close_test_SOURCES = tests/close-test.c
394 close_test_CFLAGS = $(AM_CFLAGS)
395 close_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
396 close_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
397
398 voltest_SOURCES = tests/voltest.c
399 voltest_CFLAGS = $(AM_CFLAGS)
400 voltest_LDADD = $(AM_LDADD) libpulse.la
401 voltest_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
402
403 channelmap_test_SOURCES = tests/channelmap-test.c
404 channelmap_test_CFLAGS = $(AM_CFLAGS)
405 channelmap_test_LDADD = $(AM_LDADD) libpulse.la
406 channelmap_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
407
408 cpulimit_test_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
409 cpulimit_test_CFLAGS = $(AM_CFLAGS)
410 cpulimit_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
411 cpulimit_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
412
413 cpulimit_test2_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
414 cpulimit_test2_CFLAGS = $(AM_CFLAGS) -DTEST2
415 cpulimit_test2_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
416 cpulimit_test2_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
417
418 mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
419 mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
420 mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpulse-mainloop-glib.la
421 mainloop_test_glib_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
422
423 memblockq_test_SOURCES = tests/memblockq-test.c
424 memblockq_test_CFLAGS = $(AM_CFLAGS)
425 memblockq_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
426 memblockq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
427
428 sync_playback_SOURCES = tests/sync-playback.c
429 sync_playback_LDADD = $(AM_LDADD) libpulse.la
430 sync_playback_CFLAGS = $(AM_CFLAGS)
431 sync_playback_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
432
433 interpol_test_SOURCES = tests/interpol-test.c
434 interpol_test_LDADD = $(AM_LDADD) libpulse.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
435 interpol_test_CFLAGS = $(AM_CFLAGS)
436 interpol_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
437
438 sig2str_test_SOURCES = tests/sig2str-test.c
439 sig2str_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
440 sig2str_test_CFLAGS = $(AM_CFLAGS)
441 sig2str_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
442
443 resampler_test_SOURCES = tests/resampler-test.c
444 resampler_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
445 resampler_test_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
446 resampler_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
447
448 mix_test_SOURCES = tests/mix-test.c
449 mix_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
450 mix_test_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
451 mix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
452
453 remix_test_SOURCES = tests/remix-test.c
454 remix_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
455 remix_test_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
456 remix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
457
458 smoother_test_SOURCES = tests/smoother-test.c
459 smoother_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
460 smoother_test_CFLAGS = $(AM_CFLAGS)
461 smoother_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
462
463 envelope_test_SOURCES = tests/envelope-test.c
464 envelope_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
465 envelope_test_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
466 envelope_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
467
468 proplist_test_SOURCES = tests/proplist-test.c
469 proplist_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
470 proplist_test_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
471 proplist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
472
473 rtstutter_SOURCES = tests/rtstutter.c
474 rtstutter_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
475 rtstutter_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
476 rtstutter_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
477
478 stripnul_SOURCES = tests/stripnul.c
479 stripnul_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
480 stripnul_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
481 stripnul_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
482
483 lock_autospawn_test_SOURCES = tests/lock-autospawn-test.c
484 lock_autospawn_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
485 lock_autospawn_test_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
486 lock_autospawn_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
487
488 prioq_test_SOURCES = tests/prioq-test.c
489 prioq_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la
490 prioq_test_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
491 prioq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBOIL_LIBS)
492
493 ###################################
494 # Common library #
495 ###################################
496
497 lib_LTLIBRARIES = \
498 libpulsecommon-@PA_MAJORMINORMICRO@.la
499
500 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES = \
501 pulse/client-conf.c pulse/client-conf.h \
502 pulse/i18n.c pulse/i18n.h \
503 pulsecore/atomic.h \
504 pulsecore/authkey.c pulsecore/authkey.h \
505 pulsecore/conf-parser.c pulsecore/conf-parser.h \
506 pulsecore/core-error.c pulsecore/core-error.h \
507 pulsecore/core-util.c pulsecore/core-util.h \
508 pulsecore/creds.h \
509 pulsecore/dynarray.c pulsecore/dynarray.h \
510 pulsecore/endianmacros.h \
511 pulsecore/flist.c pulsecore/flist.h \
512 pulsecore/hashmap.c pulsecore/hashmap.h \
513 pulsecore/idxset.c pulsecore/idxset.h \
514 pulsecore/inet_ntop.c pulsecore/inet_ntop.h \
515 pulsecore/inet_pton.c pulsecore/inet_pton.h \
516 pulsecore/iochannel.c pulsecore/iochannel.h \
517 pulsecore/ioline.c pulsecore/ioline.h \
518 pulsecore/ipacl.h pulsecore/ipacl.c \
519 pulsecore/llist.h \
520 pulsecore/lock-autospawn.c pulsecore/lock-autospawn.h \
521 pulsecore/log.c pulsecore/log.h \
522 pulsecore/macro.h \
523 pulsecore/mcalign.c pulsecore/mcalign.h \
524 pulsecore/memblock.c pulsecore/memblock.h \
525 pulsecore/memblockq.c pulsecore/memblockq.h \
526 pulsecore/memchunk.c pulsecore/memchunk.h \
527 pulsecore/native-common.h \
528 pulsecore/once.c pulsecore/once.h \
529 pulsecore/packet.c pulsecore/packet.h \
530 pulsecore/parseaddr.c pulsecore/parseaddr.h \
531 pulsecore/pdispatch.c pulsecore/pdispatch.h \
532 pulsecore/pid.c pulsecore/pid.h \
533 pulsecore/pipe.c pulsecore/pipe.h \
534 pulsecore/poll.c pulsecore/poll.h \
535 pulsecore/prioq.c pulsecore/prioq.h \
536 pulsecore/proplist-util.c pulsecore/proplist-util.h \
537 pulsecore/pstream-util.c pulsecore/pstream-util.h \
538 pulsecore/pstream.c pulsecore/pstream.h \
539 pulsecore/queue.c pulsecore/queue.h \
540 pulsecore/random.c pulsecore/random.h \
541 pulsecore/refcnt.h \
542 pulsecore/rtclock.c pulsecore/rtclock.h \
543 pulsecore/shm.c pulsecore/shm.h \
544 pulsecore/socket-client.c pulsecore/socket-client.h \
545 pulsecore/socket-server.c pulsecore/socket-server.h \
546 pulsecore/socket-util.c pulsecore/socket-util.h \
547 pulsecore/strbuf.c pulsecore/strbuf.h \
548 pulsecore/strlist.c pulsecore/strlist.h \
549 pulsecore/tagstruct.c pulsecore/tagstruct.h \
550 pulsecore/time-smoother.c pulsecore/time-smoother.h \
551 pulsecore/tokenizer.c pulsecore/tokenizer.h \
552 pulsecore/winsock.h
553
554 libpulsecommon_@PA_MAJORMINORMICRO@_la_CFLAGS = $(AM_CFLAGS)
555 libpulsecommon_@PA_MAJORMINORMICRO@_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
556 libpulsecommon_@PA_MAJORMINORMICRO@_la_LIBADD = $(AM_LIBADD) $(LIBWRAP_LIBS) $(WINSOCK_LIBS) $(LTLIBICONV)
557
558 ## Please note that libpulsecommon implicitly also depends on<
559 ## libpulse! i.e. we have a cyclic dependancy here. Which is intended
560 ## since libpulse only includes stable, official APIs, while
561 ## libpulsecommon only includes unofficial APIs.
562
563 if OS_IS_WIN32
564 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES += \
565 pulsecore/mutex-win32.c pulsecore/mutex.h \
566 pulsecore/thread-win32.c pulsecore/thread.h \
567 pulsecore/semaphore-win32.c pulsecore/semaphore.h
568 else
569 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES += \
570 pulsecore/mutex-posix.c pulsecore/mutex.h \
571 pulsecore/thread-posix.c pulsecore/thread.h \
572 pulsecore/semaphore-posix.c pulsecore/semaphore.h
573 endif
574
575 if HAVE_X11
576 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES += pulsecore/x11prop.c pulsecore/x11prop.h
577 libpulsecommon_@PA_MAJORMINORMICRO@_la_CFLAGS += $(X11_CFLAGS)
578 libpulsecommon_@PA_MAJORMINORMICRO@_la_LDFLAGS += $(X11_LIBS)
579 endif
580
581 if HAVE_LIBASYNCNS
582 libpulsecommon_@PA_MAJORMINORMICRO@_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
583 libpulsecommon_@PA_MAJORMINORMICRO@_la_LIBADD += $(LIBASYNCNS_LIBS)
584 endif
585
586 if OS_IS_WIN32
587 libpulsecommon_@PA_MAJORMINORMICRO@_la_SOURCES += pulsecore/dllmain.c
588 endif
589
590 ###################################
591 # Client library #
592 ###################################
593
594 pulseinclude_HEADERS = \
595 pulse/cdecl.h \
596 pulse/channelmap.h \
597 pulse/context.h \
598 pulse/def.h \
599 pulse/error.h \
600 pulse/ext-stream-restore.h \
601 pulse/gccmacro.h \
602 pulse/introspect.h \
603 pulse/mainloop-api.h \
604 pulse/mainloop-signal.h \
605 pulse/mainloop.h \
606 pulse/operation.h \
607 pulse/proplist.h \
608 pulse/pulseaudio.h \
609 pulse/sample.h \
610 pulse/scache.h \
611 pulse/simple.h \
612 pulse/stream.h \
613 pulse/subscribe.h \
614 pulse/thread-mainloop.h \
615 pulse/timeval.h \
616 pulse/utf8.h \
617 pulse/util.h \
618 pulse/version.h \
619 pulse/volume.h \
620 pulse/xmalloc.h
621
622 lib_LTLIBRARIES += \
623 libpulse.la \
624 libpulse-simple.la
625
626 if HAVE_AVAHI
627 pulseinclude_HEADERS += \
628 pulse/browser.h
629
630 lib_LTLIBRARIES += \
631 libpulse-browse.la
632 endif
633
634 if HAVE_GLIB20
635 pulseinclude_HEADERS += \
636 pulse/glib-mainloop.h
637
638 lib_LTLIBRARIES += \
639 libpulse-mainloop-glib.la
640 endif
641
642 # Public interface
643 libpulse_la_SOURCES = \
644 pulse/cdecl.h \
645 pulse/channelmap.c pulse/channelmap.h \
646 pulse/context.c pulse/context.h \
647 pulse/def.h \
648 pulse/error.c pulse/error.h \
649 pulse/ext-stream-restore.c pulse/ext-stream-restore.h \
650 pulse/gccmacro.h \
651 pulse/internal.h \
652 pulse/introspect.c pulse/introspect.h \
653 pulse/mainloop-api.c pulse/mainloop-api.h \
654 pulse/mainloop-signal.c pulse/mainloop-signal.h \
655 pulse/mainloop.c pulse/mainloop.h \
656 pulse/operation.c pulse/operation.h \
657 pulse/proplist.c pulse/proplist.h \
658 pulse/pulseaudio.h \
659 pulse/sample.c pulse/sample.h \
660 pulse/scache.c pulse/scache.h \
661 pulse/stream.c pulse/stream.h \
662 pulse/subscribe.c pulse/subscribe.h \
663 pulse/thread-mainloop.c pulse/thread-mainloop.h \
664 pulse/timeval.c pulse/timeval.h \
665 pulse/utf8.c pulse/utf8.h \
666 pulse/util.c pulse/util.h \
667 pulse/volume.c pulse/volume.h \
668 pulse/xmalloc.c pulse/xmalloc.h
669
670 libpulse_la_CFLAGS = $(AM_CFLAGS)
671 libpulse_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPULSE_VERSION_INFO) -Wl,-version-script=$(srcdir)/map-file
672 libpulse_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS) $(LTLIBICONV) libpulsecommon-@PA_MAJORMINORMICRO@.la
673
674 if HAVE_X11
675 libpulse_la_SOURCES += pulse/client-conf-x11.c pulse/client-conf-x11.h
676 libpulse_la_CFLAGS += $(X11_CFLAGS)
677 libpulse_la_LDFLAGS += $(X11_LIBS)
678 endif
679
680 libpulse_simple_la_SOURCES = pulse/simple.c pulse/simple.h
681 libpulse_simple_la_CFLAGS = $(AM_CFLAGS)
682 libpulse_simple_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la
683 libpulse_simple_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPULSE_SIMPLE_VERSION_INFO) -Wl,-version-script=$(srcdir)/map-file
684
685 libpulse_browse_la_SOURCES = pulse/browser.c pulse/browser.h pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
686 libpulse_browse_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
687 libpulse_browse_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la $(AVAHI_LIBS)
688 libpulse_browse_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPULSE_BROWSE_VERSION_INFO) -Wl,-version-script=$(srcdir)/map-file
689
690 libpulse_mainloop_glib_la_SOURCES = pulse/glib-mainloop.h pulse/glib-mainloop.c
691 libpulse_mainloop_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
692 libpulse_mainloop_glib_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la $(GLIB20_LIBS)
693 libpulse_mainloop_glib_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO) -Wl,-version-script=$(srcdir)/map-file
694
695 ###################################
696 # OSS emulation #
697 ###################################
698
699 if HAVE_OSS
700 lib_LTLIBRARIES += libpulsedsp.la
701 bin_SCRIPTS += utils/padsp
702 endif
703
704 libpulsedsp_la_SOURCES = utils/padsp.c
705 libpulsedsp_la_CFLAGS = $(AM_CFLAGS)
706 libpulsedsp_la_LIBADD = $(AM_LIBADD) libpulse.la libpulsecommon-@PA_MAJORMINORMICRO@.la
707 libpulsedsp_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version -disable-static
708
709 ###################################
710 # Daemon core library #
711 ###################################
712
713 lib_LTLIBRARIES += libpulsecore-@PA_MAJORMINORMICRO@.la
714
715 # Pure core stuff
716 libpulsecore_@PA_MAJORMINORMICRO@_la_SOURCES = \
717 pulsecore/asyncmsgq.c pulsecore/asyncmsgq.h \
718 pulsecore/asyncq.c pulsecore/asyncq.h \
719 pulsecore/auth-cookie.c pulsecore/auth-cookie.h \
720 pulsecore/cli-command.c pulsecore/cli-command.h \
721 pulsecore/cli-text.c pulsecore/cli-text.h \
722 pulsecore/client.c pulsecore/client.h \
723 pulsecore/card.c pulsecore/card.h \
724 pulsecore/core-scache.c pulsecore/core-scache.h \
725 pulsecore/core-subscribe.c pulsecore/core-subscribe.h \
726 pulsecore/core.c pulsecore/core.h \
727 pulsecore/envelope.c pulsecore/envelope.h \
728 pulsecore/fdsem.c pulsecore/fdsem.h \
729 pulsecore/ffmpeg/resample2.c pulsecore/ffmpeg/avcodec.h pulsecore/ffmpeg/dsputil.h \
730 pulsecore/g711.c pulsecore/g711.h \
731 pulsecore/hook-list.c pulsecore/hook-list.h \
732 pulsecore/ltdl-helper.c pulsecore/ltdl-helper.h \
733 pulsecore/modargs.c pulsecore/modargs.h \
734 pulsecore/modinfo.c pulsecore/modinfo.h \
735 pulsecore/module.c pulsecore/module.h \
736 pulsecore/msgobject.c pulsecore/msgobject.h \
737 pulsecore/namereg.c pulsecore/namereg.h \
738 pulsecore/object.c pulsecore/object.h \
739 pulsecore/play-memblockq.c pulsecore/play-memblockq.h \
740 pulsecore/play-memchunk.c pulsecore/play-memchunk.h \
741 pulsecore/resampler.c pulsecore/resampler.h \
742 pulsecore/rtpoll.c pulsecore/rtpoll.h \
743 pulsecore/rtsig.c pulsecore/rtsig.h \
744 pulsecore/sample-util.c pulsecore/sample-util.h \
745 pulsecore/sconv-s16be.c pulsecore/sconv-s16be.h \
746 pulsecore/sconv-s16le.c pulsecore/sconv-s16le.h \
747 pulsecore/sconv.c pulsecore/sconv.h \
748 pulsecore/shared.c pulsecore/shared.h \
749 pulsecore/shm.c pulsecore/shm.h \
750 pulsecore/sink-input.c pulsecore/sink-input.h \
751 pulsecore/sink.c pulsecore/sink.h \
752 pulsecore/sioman.c pulsecore/sioman.h \
753 pulsecore/sound-file-stream.c pulsecore/sound-file-stream.h \
754 pulsecore/sound-file.c pulsecore/sound-file.h \
755 pulsecore/source-output.c pulsecore/source-output.h \
756 pulsecore/source.c pulsecore/source.h \
757 pulsecore/start-child.c pulsecore/start-child.h \
758 pulsecore/thread-mq.c pulsecore/thread-mq.h \
759 pulsecore/time-smoother.c pulsecore/time-smoother.h
760
761 libpulsecore_@PA_MAJORMINORMICRO@_la_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
762 libpulsecore_@PA_MAJORMINORMICRO@_la_LDFLAGS = -avoid-version
763 libpulsecore_@PA_MAJORMINORMICRO@_la_LIBADD = $(AM_LIBADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(LIBSPEEX_LIBS) $(WINSOCK_LIBS) $(LIBOIL_LIBS) $(LTLIBICONV) libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
764
765 if HAVE_X11
766 libpulsecore_@PA_MAJORMINORMICRO@_la_SOURCES += pulsecore/x11wrap.c pulsecore/x11wrap.h
767 libpulsecore_@PA_MAJORMINORMICRO@_la_CFLAGS += $(X11_CFLAGS)
768 libpulsecore_@PA_MAJORMINORMICRO@_la_LDFLAGS += $(X11_LIBS)
769 endif
770
771 ###################################
772 # Plug-in support libraries #
773 ###################################
774
775 ### Warning! Due to an obscure bug in libtool/automake it is required
776 ### that the libraries in modlibexec_LTLIBRARIES are specified in-order,
777 ### i.e. libraries near the end of the list depend on libraries near
778 ### the head, and not the other way!
779
780 modlibexec_LTLIBRARIES = \
781 libcli.la \
782 libprotocol-cli.la \
783 libprotocol-simple.la \
784 libprotocol-http.la \
785 libprotocol-native.la \
786 libprotocol-esound.la
787
788 # We need to emulate sendmsg/recvmsg to support this on Win32
789 if !OS_IS_WIN32
790 modlibexec_LTLIBRARIES += \
791 librtp.la
792 endif
793
794 if HAVE_AVAHI
795 modlibexec_LTLIBRARIES += \
796 libavahi-wrap.la
797 endif
798
799 libprotocol_simple_la_SOURCES = pulsecore/protocol-simple.c pulsecore/protocol-simple.h
800 libprotocol_simple_la_LDFLAGS = -avoid-version
801 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
802
803 libcli_la_SOURCES = pulsecore/cli.c pulsecore/cli.h
804 libcli_la_LDFLAGS = -avoid-version
805 libcli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
806
807 libprotocol_cli_la_SOURCES = pulsecore/protocol-cli.c pulsecore/protocol-cli.h
808 libprotocol_cli_la_LDFLAGS = -avoid-version
809 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la libcli.la
810
811 libprotocol_http_la_SOURCES = pulsecore/protocol-http.c pulsecore/protocol-http.h
812 libprotocol_http_la_LDFLAGS = -avoid-version
813 libprotocol_http_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
814
815 libprotocol_native_la_SOURCES = pulsecore/protocol-native.c pulsecore/protocol-native.h pulsecore/native-common.h
816 libprotocol_native_la_LDFLAGS = -avoid-version
817 libprotocol_native_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
818
819 libprotocol_esound_la_SOURCES = pulsecore/protocol-esound.c pulsecore/protocol-esound.h pulsecore/esound.h
820 libprotocol_esound_la_LDFLAGS = -avoid-version
821 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
822
823 librtp_la_SOURCES = \
824 modules/rtp/rtp.c modules/rtp/rtp.h \
825 modules/rtp/sdp.c modules/rtp/sdp.h \
826 modules/rtp/sap.c modules/rtp/sap.h \
827 modules/rtp/rtsp_client.c modules/rtp/rtsp_client.h \
828 modules/rtp/headerlist.c modules/rtp/headerlist.h
829 librtp_la_LDFLAGS = -avoid-version
830 librtp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
831
832 libraop_la_SOURCES = \
833 modules/raop/raop_client.c modules/raop/raop_client.h \
834 modules/raop/base64.c modules/raop/base64.h
835 libraop_la_CFLAGS = $(AM_CFLAGS) $(OPENSSL_CFLAGS)
836 libraop_la_LDFLAGS = -avoid-version
837 libraop_la_LIBADD = $(AM_LIBADD) $(OPENSSL_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la librtp.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
838
839 # Avahi
840 libavahi_wrap_la_SOURCES = pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
841 libavahi_wrap_la_LDFLAGS = -avoid-version
842 libavahi_wrap_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
843 libavahi_wrap_la_LIBADD = $(AM_LIBADD) $(AVAHI_CFLAGS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
844
845 ###################################
846 # Plug-in libraries #
847 ###################################
848
849 modlibexec_LTLIBRARIES += \
850 module-flat-volume.la \
851 module-cli.la \
852 module-cli-protocol-tcp.la \
853 module-simple-protocol-tcp.la \
854 module-null-sink.la \
855 module-sine-source.la \
856 module-detect.la \
857 module-volume-restore.la \
858 module-device-restore.la \
859 module-stream-restore.la \
860 module-default-device-restore.la \
861 module-always-sink.la \
862 module-rescue-streams.la \
863 module-suspend-on-idle.la \
864 module-http-protocol-tcp.la \
865 module-sine.la \
866 module-native-protocol-tcp.la \
867 module-native-protocol-fd.la \
868 module-esound-protocol-tcp.la \
869 module-combine.la \
870 module-remap-sink.la \
871 module-ladspa-sink.la \
872 module-esound-sink.la \
873 module-tunnel-sink.la \
874 module-tunnel-source.la \
875 module-position-event-sounds.la
876
877
878 # See comment at librtp.la above
879 if !OS_IS_WIN32
880 modlibexec_LTLIBRARIES += \
881 module-rtp-send.la \
882 module-rtp-recv.la
883 endif
884
885 if HAVE_AF_UNIX
886 modlibexec_LTLIBRARIES += \
887 module-cli-protocol-unix.la \
888 module-simple-protocol-unix.la \
889 module-http-protocol-unix.la \
890 module-native-protocol-unix.la \
891 module-esound-protocol-unix.la
892 endif
893
894 if HAVE_MKFIFO
895 modlibexec_LTLIBRARIES += \
896 module-pipe-sink.la \
897 module-pipe-source.la
898 endif
899
900 if !OS_IS_WIN32
901 modlibexec_LTLIBRARIES += \
902 module-esound-compat-spawnfd.la \
903 module-esound-compat-spawnpid.la
904 endif
905
906 if HAVE_REGEX
907 modlibexec_LTLIBRARIES += \
908 module-match.la
909 endif
910
911 if HAVE_X11
912 modlibexec_LTLIBRARIES += \
913 module-x11-bell.la \
914 module-x11-publish.la \
915 module-x11-xsmp.la
916 endif
917
918 if HAVE_OSS
919 modlibexec_LTLIBRARIES += \
920 liboss-util.la \
921 module-oss.la
922 endif
923
924 if HAVE_ALSA
925 modlibexec_LTLIBRARIES += \
926 libalsa-util.la \
927 module-alsa-sink.la \
928 module-alsa-source.la \
929 module-alsa-card.la
930 endif
931
932 if HAVE_SOLARIS
933 modlibexec_LTLIBRARIES += \
934 module-solaris.la
935 endif
936
937 if HAVE_AVAHI
938 modlibexec_LTLIBRARIES += \
939 module-zeroconf-publish.la \
940 module-zeroconf-discover.la
941 endif
942
943 if HAVE_LIRC
944 modlibexec_LTLIBRARIES += \
945 module-lirc.la
946 endif
947
948 if HAVE_EVDEV
949 modlibexec_LTLIBRARIES += \
950 module-mmkbd-evdev.la
951 endif
952
953 if HAVE_JACK
954 modlibexec_LTLIBRARIES += \
955 module-jack-sink.la \
956 module-jack-source.la
957 endif
958
959 pulselibexec_PROGRAMS =
960
961 if HAVE_GCONF
962 modlibexec_LTLIBRARIES += \
963 module-gconf.la
964
965 pulselibexec_PROGRAMS += \
966 gconf-helper
967 endif
968
969 #if OS_IS_WIN32
970 #modlibexec_LTLIBRARIES += \
971 # module-waveout.la
972 #endif
973
974 if HAVE_HAL
975 modlibexec_LTLIBRARIES += \
976 libdbus-util.la \
977 module-hal-detect.la
978 endif
979
980 if HAVE_DBUS
981 modlibexec_LTLIBRARIES += \
982 libdbus-util.la \
983 module-console-kit.la
984 endif
985
986 if HAVE_BLUEZ
987 modlibexec_LTLIBRARIES += \
988 module-bluetooth-proximity.la \
989 module-bluetooth-discover.la \
990 libbluetooth-ipc.la \
991 libbluetooth-sbc.la \
992 module-bluetooth-device.la
993
994 pulselibexec_PROGRAMS += \
995 proximity-helper
996 endif
997
998 if HAVE_OPENSSL
999 modlibexec_LTLIBRARIES += \
1000 libraop.la \
1001 module-raop-sink.la
1002 if HAVE_AVAHI
1003 modlibexec_LTLIBRARIES += \
1004 module-raop-discover.la
1005 endif
1006 endif
1007
1008
1009 # These are generated by a M4 script
1010
1011 SYMDEF_FILES = \
1012 modules/module-cli-symdef.h \
1013 modules/module-cli-protocol-tcp-symdef.h \
1014 modules/module-cli-protocol-unix-symdef.h \
1015 modules/module-pipe-sink-symdef.h \
1016 modules/module-pipe-source-symdef.h \
1017 modules/module-simple-protocol-tcp-symdef.h \
1018 modules/module-simple-protocol-unix-symdef.h \
1019 modules/module-esound-protocol-tcp-symdef.h \
1020 modules/module-esound-protocol-unix-symdef.h \
1021 modules/module-native-protocol-tcp-symdef.h \
1022 modules/module-native-protocol-unix-symdef.h \
1023 modules/module-native-protocol-fd-symdef.h \
1024 modules/module-sine-symdef.h \
1025 modules/module-combine-symdef.h \
1026 modules/module-remap-sink-symdef.h \
1027 modules/module-ladspa-sink-symdef.h \
1028 modules/module-esound-compat-spawnfd-symdef.h \
1029 modules/module-esound-compat-spawnpid-symdef.h \
1030 modules/module-match-symdef.h \
1031 modules/module-tunnel-sink-symdef.h \
1032 modules/module-tunnel-source-symdef.h \
1033 modules/module-null-sink-symdef.h \
1034 modules/module-sine-source-symdef.h \
1035 modules/module-esound-sink-symdef.h \
1036 modules/module-zeroconf-publish-symdef.h \
1037 modules/module-zeroconf-discover-symdef.h \
1038 modules/module-lirc-symdef.h \
1039 modules/module-mmkbd-evdev-symdef.h \
1040 modules/module-http-protocol-tcp-symdef.h \
1041 modules/module-http-protocol-unix-symdef.h \
1042 modules/module-x11-bell-symdef.h \
1043 modules/module-x11-publish-symdef.h \
1044 modules/module-x11-xsmp-symdef.h \
1045 modules/oss/module-oss-symdef.h \
1046 modules/alsa/module-alsa-sink-symdef.h \
1047 modules/alsa/module-alsa-source-symdef.h \
1048 modules/alsa/module-alsa-card-symdef.h \
1049 modules/module-solaris-symdef.h \
1050 modules/module-waveout-symdef.h \
1051 modules/module-detect-symdef.h \
1052 modules/rtp/module-rtp-send-symdef.h \
1053 modules/rtp/module-rtp-recv-symdef.h \
1054 modules/module-jack-sink-symdef.h \
1055 modules/module-jack-source-symdef.h \
1056 modules/module-volume-restore-symdef.h \
1057 modules/module-device-restore-symdef.h \
1058 modules/module-stream-restore-symdef.h \
1059 modules/module-default-device-restore-symdef.h \
1060 modules/module-always-sink-symdef.h \
1061 modules/module-rescue-streams-symdef.h \
1062 modules/module-suspend-on-idle-symdef.h \
1063 modules/module-hal-detect-symdef.h \
1064 modules/bluetooth/module-bluetooth-proximity-symdef.h \
1065 modules/bluetooth/module-bluetooth-discover-symdef.h \
1066 modules/bluetooth/module-bluetooth-device-symdef.h \
1067 modules/module-raop-sink-symdef.h \
1068 modules/module-raop-discover-symdef.h \
1069 modules/gconf/module-gconf-symdef.h \
1070 modules/module-position-event-sounds-symdef.h \
1071 modules/module-console-kit-symdef.h \
1072 modules/module-flat-volume-symdef.h
1073
1074 EXTRA_DIST += $(SYMDEF_FILES)
1075 BUILT_SOURCES += $(SYMDEF_FILES)
1076
1077 $(SYMDEF_FILES): modules/module-defs.h.m4
1078 $(MKDIR_P) $(dir $@)
1079 $(M4) -Dfname="$@" $< > $@
1080
1081 # Flat volume
1082
1083 module_flat_volume_la_SOURCES = modules/module-flat-volume.c
1084 module_flat_volume_la_LDFLAGS = $(MODULE_LDFLAGS)
1085 module_flat_volume_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1086
1087 # Simple protocol
1088
1089 module_simple_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1090 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1091 module_simple_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1092 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-simple.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1093
1094 module_simple_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1095 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1096 module_simple_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1097 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-simple.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1098
1099 # CLI protocol
1100
1101 module_cli_la_SOURCES = modules/module-cli.c
1102 module_cli_la_LDFLAGS = $(MODULE_LDFLAGS)
1103 module_cli_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libcli.la
1104
1105 module_cli_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1106 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1107 module_cli_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1108 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-cli.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1109
1110 module_cli_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1111 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1112 module_cli_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1113 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-cli.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1114
1115 # HTTP protocol
1116
1117 module_http_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1118 module_http_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1119 module_http_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1120 module_http_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-http.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1121
1122 module_http_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1123 module_http_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1124 module_http_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1125 module_http_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-http.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1126
1127 # Native protocol
1128
1129 module_native_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1130 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1131 module_native_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1132 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-native.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1133
1134 module_native_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1135 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1136 module_native_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1137 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-native.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1138
1139 module_native_protocol_fd_la_SOURCES = modules/module-native-protocol-fd.c
1140 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
1141 module_native_protocol_fd_la_LDFLAGS = $(MODULE_LDFLAGS)
1142 module_native_protocol_fd_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-native.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1143
1144 # EsounD protocol
1145
1146 module_esound_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1147 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1148 module_esound_protocol_tcp_la_LDFLAGS = $(MODULE_LDFLAGS)
1149 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-esound.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1150
1151 module_esound_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1152 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1153 module_esound_protocol_unix_la_LDFLAGS = $(MODULE_LDFLAGS)
1154 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libprotocol-esound.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1155
1156 module_esound_compat_spawnfd_la_SOURCES = modules/module-esound-compat-spawnfd.c
1157 module_esound_compat_spawnfd_la_LDFLAGS = $(MODULE_LDFLAGS)
1158 module_esound_compat_spawnfd_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1159
1160 module_esound_compat_spawnpid_la_SOURCES = modules/module-esound-compat-spawnpid.c
1161 module_esound_compat_spawnpid_la_LDFLAGS = $(MODULE_LDFLAGS)
1162 module_esound_compat_spawnpid_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1163
1164 module_esound_sink_la_SOURCES = modules/module-esound-sink.c
1165 module_esound_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1166 module_esound_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1167
1168 # Pipes
1169
1170 module_pipe_sink_la_SOURCES = modules/module-pipe-sink.c
1171 module_pipe_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1172 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1173
1174 module_pipe_source_la_SOURCES = modules/module-pipe-source.c
1175 module_pipe_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1176 module_pipe_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1177
1178 # Fake sources/sinks
1179
1180 module_sine_la_SOURCES = modules/module-sine.c
1181 module_sine_la_LDFLAGS = $(MODULE_LDFLAGS)
1182 module_sine_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1183
1184 module_null_sink_la_SOURCES = modules/module-null-sink.c
1185 module_null_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1186 module_null_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1187
1188 module_sine_source_la_SOURCES = modules/module-sine-source.c
1189 module_sine_source_la_LDFLAGS = -module -avoid-version
1190 module_sine_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1191
1192 # Couplings
1193
1194 module_combine_la_SOURCES = modules/module-combine.c
1195 module_combine_la_LDFLAGS = $(MODULE_LDFLAGS)
1196 module_combine_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1197
1198 module_remap_sink_la_SOURCES = modules/module-remap-sink.c
1199 module_remap_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1200 module_remap_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1201
1202 module_ladspa_sink_la_SOURCES = modules/module-ladspa-sink.c modules/ladspa.h
1203 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)
1204 module_ladspa_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1205 module_ladspa_sink_la_LIBADD = $(AM_LIBADD) $(LIBLTDL) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1206
1207 module_match_la_SOURCES = modules/module-match.c
1208 module_match_la_LDFLAGS = $(MODULE_LDFLAGS)
1209 module_match_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1210
1211 module_tunnel_sink_la_SOURCES = modules/module-tunnel.c
1212 module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS)
1213 module_tunnel_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1214 module_tunnel_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1215
1216 module_tunnel_source_la_SOURCES = modules/module-tunnel.c
1217 module_tunnel_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1218 module_tunnel_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1219
1220 # X11
1221
1222 module_x11_bell_la_SOURCES = modules/module-x11-bell.c
1223 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1224 module_x11_bell_la_LDFLAGS = $(MODULE_LDFLAGS)
1225 module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1226
1227 module_x11_publish_la_SOURCES = modules/module-x11-publish.c
1228 module_x11_publish_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1229 module_x11_publish_la_LDFLAGS = $(MODULE_LDFLAGS)
1230 module_x11_publish_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libprotocol-native.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1231
1232 module_x11_xsmp_la_SOURCES = modules/module-x11-xsmp.c
1233 module_x11_xsmp_la_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
1234 module_x11_xsmp_la_LDFLAGS = $(MODULE_LDFLAGS)
1235 module_x11_xsmp_la_LIBADD = $(AM_LIBADD) $(X11_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1236
1237 # OSS
1238
1239 liboss_util_la_SOURCES = modules/oss/oss-util.c modules/oss/oss-util.h
1240 liboss_util_la_LDFLAGS = -avoid-version
1241 liboss_util_la_LIBADD = libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1242
1243 module_oss_la_SOURCES = modules/oss/module-oss.c
1244 module_oss_la_LDFLAGS = $(MODULE_LDFLAGS)
1245 module_oss_la_LIBADD = $(AM_LIBADD) liboss-util.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1246
1247 # ALSA
1248
1249 libalsa_util_la_SOURCES = modules/alsa/alsa-util.c modules/alsa/alsa-util.h
1250 libalsa_util_la_LDFLAGS = -avoid-version
1251 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1252 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1253
1254 module_alsa_sink_la_SOURCES = modules/alsa/module-alsa-sink.c
1255 module_alsa_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1256 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1257 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1258
1259 module_alsa_source_la_SOURCES = modules/alsa/module-alsa-source.c
1260 module_alsa_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1261 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1262 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1263
1264 module_alsa_card_la_SOURCES = modules/alsa/module-alsa-card.c
1265 module_alsa_card_la_LDFLAGS = $(MODULE_LDFLAGS)
1266 module_alsa_card_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1267 module_alsa_card_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1268
1269 # Solaris
1270
1271 module_solaris_la_SOURCES = modules/module-solaris.c
1272 module_solaris_la_LDFLAGS = $(MODULE_LDFLAGS)
1273 module_solaris_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1274
1275 # Avahi
1276
1277 module_zeroconf_publish_la_SOURCES = modules/module-zeroconf-publish.c
1278 module_zeroconf_publish_la_LDFLAGS = $(MODULE_LDFLAGS)
1279 module_zeroconf_publish_la_LIBADD = $(AM_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1280 module_zeroconf_publish_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1281
1282 module_zeroconf_discover_la_SOURCES = modules/module-zeroconf-discover.c
1283 module_zeroconf_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1284 module_zeroconf_discover_la_LIBADD = $(AM_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1285 module_zeroconf_discover_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1286
1287 # LIRC
1288
1289 module_lirc_la_SOURCES = modules/module-lirc.c
1290 module_lirc_la_LDFLAGS = $(MODULE_LDFLAGS)
1291 module_lirc_la_LIBADD = $(AM_LIBADD) $(LIRC_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1292 module_lirc_la_CFLAGS = $(AM_CFLAGS) $(LIRC_CFLAGS)
1293
1294 # Linux evdev
1295
1296 module_mmkbd_evdev_la_SOURCES = modules/module-mmkbd-evdev.c
1297 module_mmkbd_evdev_la_LDFLAGS = $(MODULE_LDFLAGS)
1298 module_mmkbd_evdev_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1299 module_mmkbd_evdev_la_CFLAGS = $(AM_CFLAGS)
1300
1301 # Windows waveout
1302
1303 #module_waveout_la_SOURCES = modules/module-waveout.c
1304 #module_waveout_la_LDFLAGS = $(MODULE_LDFLAGS)
1305 #module_waveout_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la -lwinmm libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1306 #module_waveout_la_CFLAGS = $(AM_CFLAGS)
1307
1308 # Hardware autodetection module
1309 module_detect_la_SOURCES = modules/module-detect.c
1310 module_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1311 module_detect_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1312 module_detect_la_CFLAGS = $(AM_CFLAGS)
1313
1314 # Volume restore module
1315 module_volume_restore_la_SOURCES = modules/module-volume-restore.c
1316 module_volume_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1317 module_volume_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1318 module_volume_restore_la_CFLAGS = $(AM_CFLAGS)
1319
1320 # Position event sounds in space
1321 module_position_event_sounds_la_SOURCES = modules/module-position-event-sounds.c
1322 module_position_event_sounds_la_LDFLAGS = $(MODULE_LDFLAGS)
1323 module_position_event_sounds_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1324 module_position_event_sounds_CFLAGS = $(AM_CFLAGS)
1325
1326 # Device volume/muted restore module
1327 module_device_restore_la_SOURCES = modules/module-device-restore.c
1328 module_device_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1329 module_device_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la -lgdbm libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1330 module_device_restore_la_CFLAGS = $(AM_CFLAGS)
1331
1332 # Stream volume/muted/device restore module
1333 module_stream_restore_la_SOURCES = modules/module-stream-restore.c
1334 module_stream_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1335 module_stream_restore_la_LIBADD = $(AM_LIBADD) libprotocol-native.la libpulsecore-@PA_MAJORMINORMICRO@.la -lgdbm libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1336 module_stream_restore_la_CFLAGS = $(AM_CFLAGS)
1337
1338 # Default sink/source restore module
1339 module_default_device_restore_la_SOURCES = modules/module-default-device-restore.c
1340 module_default_device_restore_la_LDFLAGS = $(MODULE_LDFLAGS)
1341 module_default_device_restore_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1342 module_default_device_restore_la_CFLAGS = $(AM_CFLAGS)
1343
1344 # Always Sink module
1345 module_always_sink_la_SOURCES = modules/module-always-sink.c
1346 module_always_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1347 module_always_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1348 module_always_sink_la_CFLAGS = $(AM_CFLAGS)
1349
1350 # Rescue streams module
1351 module_rescue_streams_la_SOURCES = modules/module-rescue-streams.c
1352 module_rescue_streams_la_LDFLAGS = $(MODULE_LDFLAGS)
1353 module_rescue_streams_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1354 module_rescue_streams_la_CFLAGS = $(AM_CFLAGS)
1355
1356 # Suspend-on-idle module
1357 module_suspend_on_idle_la_SOURCES = modules/module-suspend-on-idle.c
1358 module_suspend_on_idle_la_LDFLAGS = $(MODULE_LDFLAGS)
1359 module_suspend_on_idle_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1360 module_suspend_on_idle_la_CFLAGS = $(AM_CFLAGS)
1361
1362 # RTP modules
1363 module_rtp_send_la_SOURCES = modules/rtp/module-rtp-send.c
1364 module_rtp_send_la_LDFLAGS = $(MODULE_LDFLAGS)
1365 module_rtp_send_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la librtp.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1366 module_rtp_send_la_CFLAGS = $(AM_CFLAGS)
1367
1368 module_rtp_recv_la_SOURCES = modules/rtp/module-rtp-recv.c
1369 module_rtp_recv_la_LDFLAGS = $(MODULE_LDFLAGS)
1370 module_rtp_recv_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la librtp.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1371 module_rtp_recv_la_CFLAGS = $(AM_CFLAGS)
1372
1373 # JACK
1374
1375 module_jack_sink_la_SOURCES = modules/module-jack-sink.c
1376 module_jack_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1377 module_jack_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la $(JACK_LIBS) libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1378 module_jack_sink_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1379
1380 module_jack_source_la_SOURCES = modules/module-jack-source.c
1381 module_jack_source_la_LDFLAGS = $(MODULE_LDFLAGS)
1382 module_jack_source_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la $(JACK_LIBS) libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1383 module_jack_source_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1384
1385 # HAL/D-Bus
1386 libdbus_util_la_SOURCES = modules/dbus-util.c modules/dbus-util.h
1387 libdbus_util_la_LDFLAGS = -avoid-version
1388 libdbus_util_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1389 libdbus_util_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1390
1391 module_hal_detect_la_SOURCES = modules/module-hal-detect.c
1392 module_hal_detect_la_LDFLAGS = $(MODULE_LDFLAGS)
1393 module_hal_detect_la_LIBADD = $(AM_LIBADD) $(HAL_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libdbus-util.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1394 module_hal_detect_la_CFLAGS = $(AM_CFLAGS) $(HAL_CFLAGS)
1395
1396 module_console_kit_la_SOURCES = modules/module-console-kit.c
1397 module_console_kit_la_LDFLAGS = $(MODULE_LDFLAGS)
1398 module_console_kit_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libdbus-util.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1399 module_console_kit_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1400
1401 # GConf support
1402 module_gconf_la_SOURCES = modules/gconf/module-gconf.c
1403 module_gconf_la_LDFLAGS = $(MODULE_LDFLAGS)
1404 module_gconf_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1405 module_gconf_la_CFLAGS = $(AM_CFLAGS) -DPA_GCONF_HELPER=\"$(pulselibexecdir)/gconf-helper\"
1406
1407 gconf_helper_SOURCES = modules/gconf/gconf-helper.c
1408 gconf_helper_LDADD = $(AM_LDADD) $(GCONF_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1409 gconf_helper_CFLAGS = $(AM_CFLAGS) $(GCONF_CFLAGS)
1410 gconf_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
1411
1412 # Bluetooth proximity
1413 module_bluetooth_proximity_la_SOURCES = modules/bluetooth/module-bluetooth-proximity.c
1414 module_bluetooth_proximity_la_LDFLAGS = $(MODULE_LDFLAGS)
1415 module_bluetooth_proximity_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libdbus-util.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1416 module_bluetooth_proximity_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) -DPA_BT_PROXIMITY_HELPER=\"$(pulselibexecdir)/proximity-helper\"
1417
1418 proximity_helper_SOURCES = modules/bluetooth/proximity-helper.c
1419 proximity_helper_LDADD = $(AM_LDADD) $(BLUEZ_LIBS)
1420 proximity_helper_CFLAGS = $(AM_CFLAGS) $(BLUEZ_CFLAGS)
1421 proximity_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
1422
1423 # Bluetooth sink / source
1424 module_bluetooth_discover_la_SOURCES = modules/bluetooth/module-bluetooth-discover.c
1425 module_bluetooth_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1426 module_bluetooth_discover_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libdbus-util.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1427 module_bluetooth_discover_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
1428
1429 libbluetooth_sbc_la_SOURCES = modules/bluetooth/sbc.c modules/bluetooth/sbc.h modules/bluetooth/sbc_tables.h modules/bluetooth/sbc_math.h
1430 libbluetooth_sbc_la_LDFLAGS = -avoid-version
1431 libbluetooth_sbc_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1432 libbluetooth_sbc_la_CFLAGS = $(AM_CFLAGS)
1433 SBC_FILES = $(subst modules/bluetooth/,,$(libbluetooth_sbc_la_SOURCES))
1434
1435 libbluetooth_ipc_la_SOURCES = modules/bluetooth/ipc.c modules/bluetooth/ipc.h
1436 libbluetooth_ipc_la_LDFLAGS = -avoid-version
1437 libbluetooth_ipc_la_LIBADD = $(AM_LIBADD)libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1438 libbluetooth_ipc_la_CFLAGS = $(AM_CFLAGS) -w
1439
1440 module_bluetooth_device_la_SOURCES = modules/bluetooth/module-bluetooth-device.c modules/bluetooth/rtp.h
1441 module_bluetooth_device_la_LDFLAGS = $(MODULE_LDFLAGS)
1442 module_bluetooth_device_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore-@PA_MAJORMINORMICRO@.la libdbus-util.la libbluetooth-ipc.la libbluetooth-sbc.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1443 module_bluetooth_device_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) -w
1444
1445 # Apple Airtunes/RAOP
1446 module_raop_sink_la_SOURCES = modules/module-raop-sink.c
1447 module_raop_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
1448 module_raop_sink_la_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINORMICRO@.la librtp.la libraop.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1449
1450 module_raop_discover_la_SOURCES = modules/module-raop-discover.c
1451 module_raop_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
1452 module_raop_discover_la_LIBADD = $(AM_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libpulsecore-@PA_MAJORMINORMICRO@.la libpulsecommon-@PA_MAJORMINORMICRO@.la libpulse.la
1453 module_raop_discover_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1454
1455
1456 ###################################
1457 # Some minor stuff #
1458 ###################################
1459
1460 suid: pulseaudio .libs/lt-pulseaudio
1461 chown root $^
1462 chmod u+s $^
1463
1464 CLEANFILES = esdcompat client.conf default.pa system.pa daemon.conf start-pulseaudio-x11
1465
1466 esdcompat: daemon/esdcompat.in Makefile
1467 sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1468 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1469 -e 's,@PA_BINARY\@,$(PA_BINARY),g' < $< > $@
1470 chmod +x esdcompat
1471
1472 start-pulseaudio-x11: daemon/start-pulseaudio-x11.in Makefile
1473 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1474 -e 's,@PACTL_BINARY\@,$(bindir)/pactl,g' < $< > $@
1475 chmod +x start-pulseaudio-x11
1476
1477 client.conf: pulse/client.conf.in Makefile
1478 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' < $< > $@
1479
1480 if OS_IS_WIN32
1481 default.pa: daemon/default.pa.win32
1482 cp $< $@
1483 system.pa: daemon/default.pa.win32
1484 cp $< $@
1485 else
1486 default.pa: daemon/default.pa.in Makefile
1487 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1488 -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1489 -e 's,@PA_SOEXT\@,.so,g' < $< > $@
1490 system.pa: daemon/system.pa.in Makefile
1491 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1492 -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1493 -e 's,@PA_SOEXT\@,.so,g' < $< > $@
1494 endif
1495
1496 daemon.conf: daemon/daemon.conf.in Makefile
1497 sed -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1498 -e 's,@PA_DEFAULT_CONFIG_FILE\@,$(DEFAULT_CONFIG_DIR),g' < $< > $@
1499
1500 install-exec-hook:
1501 chown root $(DESTDIR)$(bindir)/pulseaudio ; true
1502 chmod u+s $(DESTDIR)$(bindir)/pulseaudio
1503 -chmod u+s $(DESTDIR)$(pulselibexecdir)/proximity-helper
1504 ln -sf pacat $(DESTDIR)$(bindir)/parec
1505 rm -f $(DESTDIR)$(libdir)/libpulsedsp.la
1506 rm -f $(DESTDIR)$(modlibexecdir)/*.la
1507
1508 uninstall-hook:
1509 rm -f $(DESTDIR)$(bindir)/parec
1510 rm -f $(DESTDIR)$(libdir)/libpulsedsp.*
1511 rm -f $(DESTDIR)$(modlibexecdir)/*.so
1512
1513 massif: pulseaudio
1514 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
1515
1516 update-ffmpeg:
1517 wget -O pulsecore/ffmpeg/resample2.c http://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec/resample2.c?view=co
1518
1519 update-sbc:
1520 for i in $(SBC_FILES); do \
1521 wget -O modules/bluetooth/$$i http://git.kernel.org/\?p=bluetooth/bluez.git\;a=blob_plain\;f=sbc/$$i ; \
1522 done
1523
1524 # Automatically generate linker version script. We use the same one for all public .sos
1525 update-map-file:
1526 ( echo "PULSE_0 {" ; \
1527 echo "global:" ; \
1528 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 ; \
1529 echo "local:" ; \
1530 echo "*;" ; \
1531 echo "};" ) > $(srcdir)/map-file
1532
1533 update-all: update-ffmpeg update-sbc update-map-file
1534
1535 .PHONY: utils/padsp massif update-all update-ffmpeg update-sbc update-map-file