]> code.delx.au - pulseaudio/blob - src/Makefile.am
port module-rtp-send.c to lock-free core
[pulseaudio] / src / Makefile.am
1 # $Id$
2 #
3 # This file is part of PulseAudio.
4 #
5 # Copyright 2004-2006 Lennart Poettering
6 # Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
7 # Copyright 2006 Diego Pettenò
8 #
9 # PulseAudio is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU Lesser General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # PulseAudio is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
18 #
19 # You should have received a copy of the GNU Lesser General Public License
20 # along with PulseAudio; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 # USA.
23
24
25 ###################################
26 # Extra directories #
27 ###################################
28
29 pulseincludedir=$(includedir)/pulse
30 pulsecoreincludedir=$(includedir)/pulsecore
31 pulseconfdir=$(sysconfdir)/pulse
32 pulselibexecdir=$(libexecdir)/pulse
33 xdgautostartdir=$(sysconfdir)/xdg/autostart
34
35 ###################################
36 # Defines #
37 ###################################
38
39 PA_BINARY=$(bindir)/pulseaudio$(EXEEXT)
40 if OS_IS_WIN32
41 PA_DEFAULT_CONFIG_DIR=%PULSE_ROOT%
42 else
43 PA_DEFAULT_CONFIG_DIR=$(pulseconfdir)
44 endif
45
46 ###################################
47 # Compiler/linker flags #
48 ###################################
49
50 AM_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src/modules -I$(top_builddir)/src/modules/rtp -I$(top_builddir)/src/modules/gconf
51 AM_CFLAGS += $(PTHREAD_CFLAGS) -D_POSIX_PTHREAD_SEMANTICS
52 AM_CFLAGS += $(LTDLINCL)
53 AM_CFLAGS += $(LIBSAMPLERATE_CFLAGS) $(LIBSNDFILE_CFLAGS)
54 AM_CFLAGS += -DPA_DLSEARCHPATH=\"$(modlibexecdir)\"
55 AM_CFLAGS += -DPA_DEFAULT_CONFIG_DIR=\"$(PA_DEFAULT_CONFIG_DIR)\"
56 AM_CFLAGS += -DPA_BINARY=\"$(PA_BINARY)\"
57 AM_CFLAGS += -DPA_SYSTEM_RUNTIME_PATH=\"$(PA_SYSTEM_RUNTIME_PATH)\"
58 AM_CFLAGS += -DAO_REQUIRE_CAS
59
60 # This cool debug trap works on i386/gcc only
61 AM_CFLAGS += '-DDEBUG_TRAP=__asm__("int $$3")'
62
63 AM_LIBADD = $(PTHREAD_LIBS)
64 AM_LDADD = $(PTHREAD_LIBS)
65
66 # Only required on some platforms but defined for all to avoid errors
67 AM_LDFLAGS = -no-undefined
68
69 if STATIC_BINS
70 BINLDFLAGS = -static
71 endif
72
73 if OS_IS_WIN32
74 AM_LDFLAGS+=-Wl,--export-all-symbols
75 WINSOCK_LIBS=-lwsock32 -lws2_32 -lwininet
76 endif
77
78 if OS_IS_WIN32
79 PA_THREAD_OBJS = \
80 pulsecore/mutex-win32.c pulsecore/mutex.h \
81 pulsecore/thread-win32.c pulsecore/thread.h \
82 pulsecore/semaphore-win32.c pulsecore/semaphore.h
83 else
84 PA_THREAD_OBJS = \
85 pulsecore/mutex-posix.c pulsecore/mutex.h \
86 pulsecore/thread-posix.c pulsecore/thread.h \
87 pulsecore/semaphore-posix.c pulsecore/semaphore.h
88 endif
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/default.pa.win32 \
100 depmod.py \
101 daemon/esdcompat.in \
102 utils/padsp \
103 modules/module-defs.h.m4 \
104 daemon/pulseaudio-module-xsmp.desktop
105
106 pulseconf_DATA = \
107 default.pa \
108 daemon.conf \
109 client.conf
110
111 if HAVE_X11
112 xdgautostart_DATA = \
113 daemon/pulseaudio-module-xsmp.desktop
114 endif
115
116 BUILT_SOURCES = \
117 pulse/version.h
118
119 ###################################
120 # Main daemon #
121 ###################################
122
123 bin_PROGRAMS = pulseaudio
124
125 pulseaudio_SOURCES = \
126 daemon/caps.h daemon/caps.c \
127 daemon/cmdline.c daemon/cmdline.h \
128 daemon/cpulimit.c daemon/cpulimit.h \
129 daemon/daemon-conf.c daemon/daemon-conf.h \
130 daemon/dumpmodules.c daemon/dumpmodules.h \
131 daemon/ltdl-bind-now.c daemon/ltdl-bind-now.h \
132 daemon/main.c \
133 pulsecore/gccmacro.h
134
135 pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS) $(LIBSAMPLERATE_CFLAGS) $(LIBSNDFILE_CFLAGS) $(CAP_CFLAGS) $(LIBOIL_CFLAGS) $(DBUS_CFLAGS)
136 pulseaudio_CPPFLAGS = $(AM_CPPFLAGS)
137 pulseaudio_LDADD = $(AM_LDADD) libpulsecore.la $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS) $(LIBOIL_LIBS) $(DBUS_LIBS)
138 # This is needed because automake doesn't properly expand the foreach below
139 pulseaudio_DEPENDENCIES = libpulsecore.la $(PREOPEN_LIBS)
140
141 if PREOPEN_MODS
142 PREOPEN_LIBS = $(PREOPEN_MODS)
143 else
144 PREOPEN_LIBS = $(modlibexec_LTLIBRARIES)
145 endif
146
147 if FORCE_PREOPEN
148 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlpreopen force $(foreach f,$(PREOPEN_LIBS),-dlpreopen $(f))
149 else
150 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
151 endif
152
153 ###################################
154 # Utility programs #
155 ###################################
156
157 bin_PROGRAMS += \
158 pacat \
159 pactl \
160 paplay \
161 pasuspender
162
163 if HAVE_AF_UNIX
164 bin_PROGRAMS += pacmd
165 endif
166
167 if HAVE_X11
168 bin_PROGRAMS += pax11publish
169 endif
170
171 if HAVE_AVAHI
172 bin_PROGRAMS += pabrowse
173 endif
174
175 bin_SCRIPTS = esdcompat
176
177 pacat_SOURCES = utils/pacat.c
178 pacat_LDADD = $(AM_LDADD) libpulse.la
179 pacat_CFLAGS = $(AM_CFLAGS)
180 pacat_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
181
182 paplay_SOURCES = utils/paplay.c
183 paplay_LDADD = $(AM_LDADD) libpulse.la $(LIBSNDFILE_LIBS)
184 paplay_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
185 paplay_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
186
187 pactl_SOURCES = utils/pactl.c
188 pactl_LDADD = $(AM_LDADD) libpulse.la $(LIBSNDFILE_LIBS)
189 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
190 pactl_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
191
192 pasuspender_SOURCES = utils/pasuspender.c
193 pasuspender_LDADD = $(AM_LDADD) libpulse.la $(LIBSNDFILE_LIBS)
194 pasuspender_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
195 pasuspender_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
196
197 pacmd_SOURCES = utils/pacmd.c pulsecore/pid.c pulsecore/pid.h
198 pacmd_CFLAGS = $(AM_CFLAGS)
199 pacmd_LDADD = $(AM_LDADD) libpulse.la
200 pacmd_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
201
202 pax11publish_SOURCES = utils/pax11publish.c
203 pax11publish_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
204 pax11publish_LDADD = $(AM_LDADD) libpulse.la $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
205 pax11publish_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
206
207 pabrowse_SOURCES = utils/pabrowse.c
208 pabrowse_LDADD = $(AM_LDADD) libpulse.la libpulse-browse.la
209 pabrowse_CFLAGS = $(AM_CFLAGS)
210 pabrowse_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
211
212 ###################################
213 # Test programs #
214 ###################################
215
216 noinst_PROGRAMS = \
217 mainloop-test \
218 mcalign-test \
219 pacat-simple \
220 parec-simple \
221 strlist-test \
222 voltest \
223 memblockq-test \
224 sync-playback \
225 interpol-test \
226 channelmap-test \
227 thread-mainloop-test \
228 utf8-test \
229 get-binary-name-test \
230 ipacl-test \
231 hook-list-test \
232 memblock-test \
233 thread-test \
234 flist-test \
235 asyncq-test \
236 asyncmsgq-test \
237 queue-test \
238 rtpoll-test \
239 sig2str-test
240
241 if HAVE_SIGXCPU
242 noinst_PROGRAMS += \
243 cpulimit-test \
244 cpulimit-test2
245 endif
246
247 if HAVE_GLIB20
248 noinst_PROGRAMS += \
249 mainloop-test-glib
250 endif
251
252 mainloop_test_SOURCES = tests/mainloop-test.c
253 mainloop_test_CFLAGS = $(AM_CFLAGS)
254 mainloop_test_LDADD = $(AM_LDADD) libpulse.la
255 mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
256
257 thread_mainloop_test_SOURCES = tests/thread-mainloop-test.c
258 thread_mainloop_test_CFLAGS = $(AM_CFLAGS)
259 thread_mainloop_test_LDADD = $(AM_LDADD) libpulse.la
260 thread_mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
261
262 utf8_test_SOURCES = tests/utf8-test.c
263 utf8_test_CFLAGS = $(AM_CFLAGS)
264 utf8_test_LDADD = $(AM_LDADD) libpulsecore.la
265 utf8_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
266
267 get_binary_name_test_SOURCES = tests/get-binary-name-test.c
268 get_binary_name_test_CFLAGS = $(AM_CFLAGS)
269 get_binary_name_test_LDADD = $(AM_LDADD) libpulse.la
270 get_binary_name_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
271
272 ipacl_test_SOURCES = tests/ipacl-test.c \
273 pulsecore/ipacl.c pulsecore/ipacl.h \
274 pulsecore/inet_pton.c pulsecore/inet_pton.h
275 ipacl_test_CFLAGS = $(AM_CFLAGS)
276 ipacl_test_LDADD = $(AM_LDADD) libpulsecore.la
277 ipacl_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
278
279 hook_list_test_SOURCES = tests/hook-list-test.c
280 hook_list_test_CFLAGS = $(AM_CFLAGS)
281 hook_list_test_LDADD = $(AM_LDADD) libpulsecore.la
282 hook_list_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
283
284 memblock_test_SOURCES = tests/memblock-test.c
285 memblock_test_CFLAGS = $(AM_CFLAGS)
286 memblock_test_LDADD = $(AM_LDADD) libpulsecore.la
287 memblock_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
288
289 thread_test_SOURCES = tests/thread-test.c
290 thread_test_CFLAGS = $(AM_CFLAGS)
291 thread_test_LDADD = $(AM_LDADD) libpulsecore.la
292 thread_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
293
294 flist_test_SOURCES = tests/flist-test.c
295 flist_test_CFLAGS = $(AM_CFLAGS)
296 flist_test_LDADD = $(AM_LDADD) libpulsecore.la
297 flist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
298
299 asyncq_test_SOURCES = tests/asyncq-test.c
300 asyncq_test_CFLAGS = $(AM_CFLAGS)
301 asyncq_test_LDADD = $(AM_LDADD) libpulsecore.la
302 asyncq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
303
304 asyncmsgq_test_SOURCES = tests/asyncmsgq-test.c
305 asyncmsgq_test_CFLAGS = $(AM_CFLAGS)
306 asyncmsgq_test_LDADD = $(AM_LDADD) libpulsecore.la
307 asyncmsgq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
308
309 queue_test_SOURCES = tests/queue-test.c
310 queue_test_CFLAGS = $(AM_CFLAGS)
311 queue_test_LDADD = $(AM_LDADD) libpulsecore.la
312 queue_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
313
314 rtpoll_test_SOURCES = tests/rtpoll-test.c
315 rtpoll_test_CFLAGS = $(AM_CFLAGS)
316 rtpoll_test_LDADD = $(AM_LDADD) libpulsecore.la
317 rtpoll_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
318
319 mcalign_test_SOURCES = tests/mcalign-test.c
320 mcalign_test_CFLAGS = $(AM_CFLAGS)
321 mcalign_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore.la
322 mcalign_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
323
324 pacat_simple_SOURCES = tests/pacat-simple.c
325 pacat_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la
326 pacat_simple_CFLAGS = $(AM_CFLAGS)
327 pacat_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
328
329 parec_simple_SOURCES = tests/parec-simple.c
330 parec_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la
331 parec_simple_CFLAGS = $(AM_CFLAGS)
332 parec_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
333
334 strlist_test_SOURCES = tests/strlist-test.c
335 strlist_test_CFLAGS = $(AM_CFLAGS)
336 strlist_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore.la libstrlist.la
337 strlist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
338
339 voltest_SOURCES = tests/voltest.c
340 voltest_CFLAGS = $(AM_CFLAGS)
341 voltest_LDADD = $(AM_LDADD) libpulse.la
342 voltest_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
343
344 channelmap_test_SOURCES = tests/channelmap-test.c
345 channelmap_test_CFLAGS = $(AM_CFLAGS)
346 channelmap_test_LDADD = $(AM_LDADD) libpulse.la
347 channelmap_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
348
349 cpulimit_test_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
350 cpulimit_test_CFLAGS = $(AM_CFLAGS)
351 cpulimit_test_LDADD = $(AM_LDADD) libpulsecore.la
352 cpulimit_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
353
354 cpulimit_test2_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
355 cpulimit_test2_CFLAGS = $(AM_CFLAGS) -DTEST2
356 cpulimit_test2_LDADD = $(AM_LDADD) libpulsecore.la
357 cpulimit_test2_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
358
359 mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
360 mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
361 mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpulse-mainloop-glib.la
362 mainloop_test_glib_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
363
364 memblockq_test_SOURCES = tests/memblockq-test.c
365 memblockq_test_CFLAGS = $(AM_CFLAGS)
366 memblockq_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore.la
367 memblockq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
368
369 sync_playback_SOURCES = tests/sync-playback.c
370 sync_playback_LDADD = $(AM_LDADD) libpulse.la
371 sync_playback_CFLAGS = $(AM_CFLAGS)
372 sync_playback_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
373
374 interpol_test_SOURCES = tests/interpol-test.c
375 interpol_test_LDADD = $(AM_LDADD) libpulse.la
376 interpol_test_CFLAGS = $(AM_CFLAGS)
377 interpol_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
378
379 sig2str_test_SOURCES = tests/sig2str-test.c
380 sig2str_test_LDADD = $(AM_LDADD) libpulsecore.la
381 sig2str_test_CFLAGS = $(AM_CFLAGS)
382 sig2str_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
383
384 ###################################
385 # Client library #
386 ###################################
387
388 pulseinclude_HEADERS = \
389 pulse/cdecl.h \
390 pulse/channelmap.h \
391 pulse/context.h \
392 pulse/def.h \
393 pulse/error.h \
394 pulse/introspect.h \
395 pulse/mainloop.h \
396 pulse/mainloop-api.h \
397 pulse/mainloop-signal.h \
398 pulse/operation.h \
399 pulse/pulseaudio.h \
400 pulse/sample.h \
401 pulse/scache.h \
402 pulse/simple.h \
403 pulse/stream.h \
404 pulse/subscribe.h \
405 pulse/thread-mainloop.h \
406 pulse/timeval.h \
407 pulse/utf8.h \
408 pulse/util.h \
409 pulse/version.h \
410 pulse/volume.h \
411 pulse/xmalloc.h
412
413 if HAVE_AVAHI
414 pulseinclude_HEADERS += \
415 pulse/browser.h
416 endif
417
418 if HAVE_GLIB20
419 pulseinclude_HEADERS += \
420 pulse/glib-mainloop.h
421 endif
422
423 lib_LTLIBRARIES = \
424 libpulse.la \
425 libpulse-simple.la
426
427 if HAVE_AVAHI
428 lib_LTLIBRARIES += \
429 libpulse-browse.la
430 endif
431
432 if HAVE_GLIB20
433 lib_LTLIBRARIES += \
434 libpulse-mainloop-glib.la
435 endif
436
437 # Public interface
438 libpulse_la_SOURCES = \
439 pulse/cdecl.h \
440 pulse/channelmap.c pulse/channelmap.h \
441 pulse/client-conf.c pulse/client-conf.h \
442 pulse/context.c pulse/context.h \
443 pulse/def.h \
444 pulse/error.c pulse/error.h \
445 pulse/internal.h \
446 pulse/introspect.c pulse/introspect.h \
447 pulse/mainloop.c pulse/mainloop.h \
448 pulse/mainloop-api.c pulse/mainloop-api.h \
449 pulse/mainloop-signal.c pulse/mainloop-signal.h \
450 pulse/operation.c pulse/operation.h \
451 pulse/pulseaudio.h \
452 pulse/sample.c pulse/sample.h \
453 pulse/scache.c pulse/scache.h \
454 pulse/stream.c pulse/stream.h \
455 pulse/subscribe.c pulse/subscribe.h \
456 pulse/thread-mainloop.c pulse/thread-mainloop.h \
457 pulse/timeval.c pulse/timeval.h \
458 pulse/utf8.c pulse/utf8.h \
459 pulse/util.c pulse/util.h \
460 pulse/volume.c pulse/volume.h \
461 pulse/xmalloc.c pulse/xmalloc.h
462
463 # Internal stuff that is shared with libpulsecore
464 libpulse_la_SOURCES += \
465 pulsecore/authkey.c pulsecore/authkey.h \
466 pulsecore/conf-parser.c pulsecore/conf-parser.h \
467 pulsecore/core-util.c pulsecore/core-util.h \
468 pulsecore/dynarray.c pulsecore/dynarray.h \
469 pulsecore/gccmacro.h \
470 pulsecore/hashmap.c pulsecore/hashmap.h \
471 pulsecore/idxset.c pulsecore/idxset.h \
472 pulsecore/inet_ntop.c pulsecore/inet_ntop.h \
473 pulsecore/iochannel.c pulsecore/iochannel.h \
474 pulsecore/llist.h \
475 pulsecore/log.c pulsecore/log.h \
476 pulsecore/mcalign.c pulsecore/mcalign.h \
477 pulsecore/memblock.c pulsecore/memblock.h \
478 pulsecore/memblockq.c pulsecore/memblockq.h \
479 pulsecore/memchunk.c pulsecore/memchunk.h \
480 pulsecore/native-common.h \
481 pulsecore/packet.c pulsecore/packet.h \
482 pulsecore/parseaddr.c pulsecore/parseaddr.h \
483 pulsecore/pdispatch.c pulsecore/pdispatch.h \
484 pulsecore/pipe.c pulsecore/pipe.h \
485 pulsecore/poll.c pulsecore/poll.h \
486 pulsecore/pstream.c pulsecore/pstream.h \
487 pulsecore/pstream-util.c pulsecore/pstream-util.h \
488 pulsecore/queue.c pulsecore/queue.h \
489 pulsecore/random.c pulsecore/random.h \
490 pulsecore/socket-client.c pulsecore/socket-client.h \
491 pulsecore/socket-util.c pulsecore/socket-util.h \
492 pulsecore/strbuf.c pulsecore/strbuf.h \
493 pulsecore/strlist.c pulsecore/strlist.h \
494 pulsecore/tagstruct.c pulsecore/tagstruct.h \
495 pulsecore/core-error.c pulsecore/core-error.h \
496 pulsecore/winsock.h pulsecore/creds.h \
497 pulsecore/shm.c pulsecore/shm.h \
498 pulsecore/flist.c pulsecore/flist.h \
499 pulsecore/object.c pulsecore/object.h \
500 pulsecore/msgobject.c pulsecore/msgobject.h \
501 pulsecore/once.c pulsecore/once.h \
502 $(PA_THREAD_OBJS)
503
504 if OS_IS_WIN32
505 libpulse_la_SOURCES += \
506 pulsecore/dllmain.c
507 endif
508
509 if HAVE_X11
510 libpulse_la_SOURCES += \
511 pulse/client-conf-x11.c pulse/client-conf-x11.h \
512 pulsecore/x11prop.c pulsecore/x11prop.h
513 endif
514
515 libpulse_la_CFLAGS = $(AM_CFLAGS)
516 libpulse_la_LDFLAGS = -version-info $(LIBPULSE_VERSION_INFO)
517 libpulse_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS) $(LIBICONV)
518
519 if HAVE_X11
520 libpulse_la_CFLAGS += $(X_CFLAGS)
521 libpulse_la_LDFLAGS += $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
522 endif
523
524 if HAVE_LIBASYNCNS
525 libpulse_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
526 libpulse_la_LIBADD += $(LIBASYNCNS_LIBS)
527 endif
528
529 libpulse_simple_la_SOURCES = pulse/simple.c pulse/simple.h
530 libpulse_simple_la_CFLAGS = $(AM_CFLAGS)
531 libpulse_simple_la_LIBADD = $(AM_LIBADD) libpulse.la
532 libpulse_simple_la_LDFLAGS = -version-info $(LIBPULSE_SIMPLE_VERSION_INFO)
533
534 libpulse_browse_la_SOURCES = pulse/browser.c pulse/browser.h pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
535 libpulse_browse_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
536 libpulse_browse_la_LIBADD = $(AM_LIBADD) libpulse.la $(AVAHI_LIBS)
537 libpulse_browse_la_LDFLAGS = -version-info $(LIBPULSE_BROWSE_VERSION_INFO)
538
539 libpulse_mainloop_glib_la_SOURCES = pulse/glib-mainloop.h pulse/glib-mainloop.c
540 libpulse_mainloop_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
541 libpulse_mainloop_glib_la_LIBADD = $(AM_LIBADD) libpulse.la $(GLIB20_LIBS)
542 libpulse_mainloop_glib_la_LDFLAGS = -version-info $(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO)
543
544 ###################################
545 # OSS emulation #
546 ###################################
547
548 if HAVE_OSS
549
550 lib_LTLIBRARIES += libpulsedsp.la
551
552 bin_SCRIPTS += utils/padsp
553
554 endif
555
556 libpulsedsp_la_SOURCES = utils/padsp.c
557 libpulsedsp_la_CFLAGS = $(AM_CFLAGS)
558 libpulsedsp_la_LIBADD = $(AM_LIBADD) libpulse.la
559 libpulsedsp_la_LDFLAGS = -avoid-version
560
561 ###################################
562 # Speex Resampler #
563 ###################################
564
565 noinst_LTLIBRARIES = libspeex-resampler-fixed.la libspeex-resampler-float.la libffmpeg-resampler.la
566
567 libspeex_resampler_fixed_la_CPPFLAGS = $(AM_CPPFLAGS) -DRANDOM_PREFIX=paspfx -DOUTSIDE_SPEEX -DFIXED_POINT
568 libspeex_resampler_fixed_la_SOURCES = pulsecore/speex/resample.c pulsecore/speex/speex_resampler.h pulsecore/speex/arch.h pulsecore/speex/fixed_generic.h pulsecore/speexwrap.h
569
570 libspeex_resampler_float_la_CPPFLAGS = $(AM_CPPFLAGS) -DRANDOM_PREFIX=paspfl -DOUTSIDE_SPEEX
571 libspeex_resampler_float_la_SOURCES = pulsecore/speex/resample.c pulsecore/speex/speex_resampler.h pulsecore/speex/arch.h
572
573 libffmpeg_resampler_la_CPPFLAGS = $(AM_CPPFLAGS)
574 libffmpeg_resampler_la_SOURCES = pulsecore/ffmpeg/resample2.c pulsecore/ffmpeg/avcodec.h pulsecore/ffmpeg/dsputil.h
575
576 ###################################
577 # Daemon core library #
578 ###################################
579
580 #pulsecoreinclude_HEADERS =
581 noinst_HEADERS = \
582 pulsecore/autoload.h \
583 pulsecore/atomic.h \
584 pulsecore/cli-command.h \
585 pulsecore/cli-text.h \
586 pulsecore/client.h \
587 pulsecore/core.h \
588 pulsecore/core-def.h \
589 pulsecore/core-scache.h \
590 pulsecore/core-subscribe.h \
591 pulsecore/conf-parser.h \
592 pulsecore/core-util.h \
593 pulsecore/dynarray.h \
594 pulsecore/g711.h \
595 pulsecore/hashmap.h \
596 pulsecore/idxset.h \
597 pulsecore/log.h \
598 pulsecore/mcalign.h \
599 pulsecore/memblock.h \
600 pulsecore/memblockq.h \
601 pulsecore/memchunk.h \
602 pulsecore/modargs.h \
603 pulsecore/modinfo.h \
604 pulsecore/module.h \
605 pulsecore/namereg.h \
606 pulsecore/pid.h \
607 pulsecore/play-memchunk.h \
608 pulsecore/play-memblockq.h \
609 pulsecore/props.h \
610 pulsecore/queue.h \
611 pulsecore/random.h \
612 pulsecore/resampler.h \
613 pulsecore/sample-util.h \
614 pulsecore/sconv.h \
615 pulsecore/sink.h \
616 pulsecore/sink-input.h \
617 pulsecore/sioman.h \
618 pulsecore/sound-file.h \
619 pulsecore/sound-file-stream.h \
620 pulsecore/source.h \
621 pulsecore/source-output.h \
622 pulsecore/strbuf.h \
623 pulsecore/tokenizer.h \
624 pulsecore/creds.h \
625 pulsecore/shm.h \
626 pulsecore/llist.h \
627 pulsecore/refcnt.h \
628 pulsecore/mutex.h \
629 pulsecore/thread.h \
630 pulsecore/semaphore.h \
631 pulsecore/once.h
632
633 lib_LTLIBRARIES += libpulsecore.la
634
635 # Some public stuff is used even in the core
636 libpulsecore_la_SOURCES = \
637 pulse/channelmap.c pulse/channelmap.h \
638 pulse/error.c pulse/error.h \
639 pulse/mainloop.c pulse/mainloop.h \
640 pulse/mainloop-api.c pulse/mainloop-api.h \
641 pulse/mainloop-signal.c pulse/mainloop-signal.h \
642 pulse/sample.c pulse/sample.h \
643 pulse/timeval.c pulse/timeval.h \
644 pulse/utf8.c pulse/utf8.h \
645 pulse/util.c pulse/util.h \
646 pulse/volume.c pulse/volume.h \
647 pulse/xmalloc.c pulse/xmalloc.h
648
649 # Pure core stuff (some are shared in libpulse though).
650 libpulsecore_la_SOURCES += \
651 pulsecore/autoload.c pulsecore/autoload.h \
652 pulsecore/cli-command.c pulsecore/cli-command.h \
653 pulsecore/cli-text.c pulsecore/cli-text.h \
654 pulsecore/client.c pulsecore/client.h \
655 pulsecore/conf-parser.c pulsecore/conf-parser.h \
656 pulsecore/core.c pulsecore/core.h \
657 pulsecore/core-scache.c pulsecore/core-scache.h \
658 pulsecore/core-subscribe.c pulsecore/core-subscribe.h \
659 pulsecore/core-util.c pulsecore/core-util.h \
660 pulsecore/dynarray.c pulsecore/dynarray.h \
661 pulsecore/endianmacros.h \
662 pulsecore/g711.c pulsecore/g711.h \
663 pulsecore/hashmap.c pulsecore/hashmap.h \
664 pulsecore/idxset.c pulsecore/idxset.h \
665 pulsecore/log.c pulsecore/log.h \
666 pulsecore/mcalign.c pulsecore/mcalign.h \
667 pulsecore/memblock.c pulsecore/memblock.h \
668 pulsecore/memblockq.c pulsecore/memblockq.h \
669 pulsecore/memchunk.c pulsecore/memchunk.h \
670 pulsecore/modargs.c pulsecore/modargs.h \
671 pulsecore/modinfo.c pulsecore/modinfo.h \
672 pulsecore/ltdl-helper.c pulsecore/ltdl-helper.h \
673 pulsecore/module.c pulsecore/module.h \
674 pulsecore/namereg.c pulsecore/namereg.h \
675 pulsecore/pid.c pulsecore/pid.h \
676 pulsecore/pipe.c pulsecore/pipe.h \
677 pulsecore/play-memchunk.c pulsecore/play-memchunk.h \
678 pulsecore/play-memblockq.c pulsecore/play-memblockq.h \
679 pulsecore/poll.c pulsecore/poll.h \
680 pulsecore/props.c pulsecore/props.h \
681 pulsecore/queue.c pulsecore/queue.h \
682 pulsecore/random.c pulsecore/random.h \
683 pulsecore/resampler.c pulsecore/resampler.h \
684 pulsecore/sample-util.c pulsecore/sample-util.h \
685 pulsecore/sconv.c pulsecore/sconv.h \
686 pulsecore/sconv-s16be.c pulsecore/sconv-s16be.h \
687 pulsecore/sconv-s16le.c pulsecore/sconv-s16le.h \
688 pulsecore/sink.c pulsecore/sink.h \
689 pulsecore/sink-input.c pulsecore/sink-input.h \
690 pulsecore/sioman.c pulsecore/sioman.h \
691 pulsecore/sound-file.c pulsecore/sound-file.h \
692 pulsecore/sound-file-stream.c pulsecore/sound-file-stream.h \
693 pulsecore/source.c pulsecore/source.h \
694 pulsecore/source-output.c pulsecore/source-output.h \
695 pulsecore/strbuf.c pulsecore/strbuf.h \
696 pulsecore/tokenizer.c pulsecore/tokenizer.h \
697 pulsecore/winsock.h \
698 pulsecore/core-error.c pulsecore/core-error.h \
699 pulsecore/hook-list.c pulsecore/hook-list.h \
700 pulsecore/shm.c pulsecore/shm.h \
701 pulsecore/flist.c pulsecore/flist.h \
702 pulsecore/asyncmsgq.c pulsecore/asyncmsgq.h \
703 pulsecore/asyncq.c pulsecore/asyncq.h \
704 pulsecore/thread-mq.c pulsecore/thread-mq.h \
705 pulsecore/fdsem.c pulsecore/fdsem.h \
706 pulsecore/object.c pulsecore/object.h \
707 pulsecore/msgobject.c pulsecore/msgobject.h \
708 pulsecore/rtsig.c pulsecore/rtsig.h \
709 pulsecore/rtpoll.c pulsecore/rtpoll.h \
710 pulsecore/rtclock.c pulsecore/rtclock.h \
711 pulsecore/macro.h \
712 pulsecore/once.c pulsecore/once.h \
713 $(PA_THREAD_OBJS)
714
715 if OS_IS_WIN32
716 libpulsecore_la_SOURCES += \
717 pulsecore/dllmain.c
718 endif
719
720 libpulsecore_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBOIL_CFLAGS)
721 libpulsecore_la_LDFLAGS = -version-info $(LIBPULSECORE_VERSION_INFO)
722 libpulsecore_la_LIBADD = $(AM_LIBADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(WINSOCK_LIBS) $(LIBOIL_LIBS) $(LIBICONV) libspeex-resampler-fixed.la libspeex-resampler-float.la libffmpeg-resampler.la
723
724 ###################################
725 # Plug-in support libraries #
726 ###################################
727
728 #pulsecoreinclude_HEADERS +=
729 noinst_HEADERS += \
730 pulsecore/socket-util.h \
731 pulsecore/iochannel.h \
732 pulsecore/socket-server.h \
733 pulsecore/ipacl.h \
734 pulsecore/socket-client.h \
735 pulsecore/parseaddr.h \
736 pulsecore/packet.h \
737 pulsecore/pstream.h \
738 pulsecore/ioline.h \
739 pulsecore/cli.h \
740 pulsecore/protocol-cli.h \
741 pulsecore/tagstruct.h \
742 pulsecore/pstream-util.h \
743 pulsecore/pdispatch.h \
744 pulsecore/authkey.h \
745 pulsecore/authkey-prop.h \
746 pulsecore/strlist.h \
747 pulsecore/protocol-simple.h \
748 pulsecore/esound.h \
749 pulsecore/protocol-esound.h \
750 pulsecore/native-common.h \
751 pulsecore/protocol-native.h \
752 pulsecore/protocol-http.h
753
754 ### Warning! Due to an obscure bug in libtool/automake it is required
755 ### that the libraries in modlibexec_LTLIBRARIES are specified in-order,
756 ### i.e. libraries near the end of the list depend on libraries near
757 ### the head, and not the other way!
758
759 modlibexec_LTLIBRARIES = \
760 libsocket-util.la \
761 libiochannel.la \
762 libsocket-server.la \
763 libipacl.la \
764 libparseaddr.la \
765 libsocket-client.la \
766 libpacket.la \
767 libpstream.la \
768 libioline.la \
769 libcli.la \
770 libprotocol-cli.la \
771 libtagstruct.la \
772 libpstream-util.la \
773 libpdispatch.la \
774 libauthkey.la \
775 libauthkey-prop.la \
776 libstrlist.la \
777 libprotocol-simple.la \
778 libprotocol-http.la \
779 libprotocol-native.la \
780 libprotocol-esound.la
781
782 # We need to emulate sendmsg/recvmsg to support this on Win32
783 if !OS_IS_WIN32
784 modlibexec_LTLIBRARIES += \
785 librtp.la
786 endif
787
788 if HAVE_X11
789 #pulsecoreinclude_HEADERS +=
790 noinst_HEADERS += \
791 pulsecore/x11wrap.h \
792 pulsecore/x11prop.h
793
794 modlibexec_LTLIBRARIES += \
795 libx11wrap.la \
796 libx11prop.la
797 endif
798
799 if HAVE_AVAHI
800 #pulsecoreinclude_HEADERS +=
801 noinst_HEADERS += \
802 pulsecore/avahi-wrap.h
803
804 modlibexec_LTLIBRARIES += \
805 libavahi-wrap.la
806 endif
807
808 libprotocol_simple_la_SOURCES = pulsecore/protocol-simple.c pulsecore/protocol-simple.h
809 libprotocol_simple_la_LDFLAGS = -avoid-version
810 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libpulsecore.la libsocket-server.la libiochannel.la
811
812 libsocket_server_la_SOURCES = \
813 pulsecore/inet_ntop.c pulsecore/inet_ntop.h \
814 pulsecore/inet_pton.c pulsecore/inet_pton.h \
815 pulsecore/socket-server.c pulsecore/socket-server.h
816 libsocket_server_la_LDFLAGS = -avoid-version
817 libsocket_server_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la libsocket-util.la $(LIBWRAP_LIBS) $(WINSOCK_LIBS)
818
819 libipacl_la_SOURCES = pulsecore/ipacl.h pulsecore/ipacl.c \
820 pulsecore/inet_pton.c pulsecore/inet_pton.h
821 libipacl_la_LDFLAGS = -avoid-version
822 libipacl_la_LIBADD = $(AM_LIBADD) libpulsecore.la $(WINSOCK_LIBS)
823
824 libsocket_client_la_SOURCES = pulsecore/socket-client.c pulsecore/socket-client.h
825 libsocket_client_la_LDFLAGS = -avoid-version
826 libsocket_client_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la libsocket-util.la libparseaddr.la $(LIBASYNCNS_LIBS) $(WINSOCK_LIBS)
827 libsocket_client_la_CFLAGS = $(AM_CFLAGS) $(LIBASYNCNS_CFLAGS)
828
829 libparseaddr_la_SOURCES = pulsecore/parseaddr.c pulsecore/parseaddr.h
830 libparseaddr_la_LDFLAGS = -avoid-version
831 libparseaddr_la_LIBADD = $(AM_LIBADD) libpulsecore.la
832
833 libpstream_la_SOURCES = pulsecore/pstream.c pulsecore/pstream.h
834 libpstream_la_LDFLAGS = -avoid-version
835 libpstream_la_LIBADD = $(AM_LIBADD) libpulsecore.la libpacket.la libiochannel.la $(WINSOCK_LIBS)
836
837 libpstream_util_la_SOURCES = pulsecore/pstream-util.c pulsecore/pstream-util.h
838 libpstream_util_la_LDFLAGS = -avoid-version
839 libpstream_util_la_LIBADD = $(AM_LIBADD) libpacket.la libpstream.la libtagstruct.la
840
841 libpdispatch_la_SOURCES = pulsecore/pdispatch.c pulsecore/pdispatch.h
842 libpdispatch_la_LDFLAGS = -avoid-version
843 libpdispatch_la_LIBADD = $(AM_LIBADD) libtagstruct.la libpulsecore.la
844
845 libiochannel_la_SOURCES = pulsecore/iochannel.c pulsecore/iochannel.h
846 libiochannel_la_LDFLAGS = -avoid-version
847 libiochannel_la_LIBADD = $(AM_LIBADD) libsocket-util.la libpulsecore.la $(WINSOCK_LIBS)
848
849 libpacket_la_SOURCES = pulsecore/packet.c pulsecore/packet.h
850 libpacket_la_LDFLAGS = -avoid-version
851 libpacket_la_LIBADD = $(AM_LIBADD) libpulsecore.la
852
853 libioline_la_SOURCES = pulsecore/ioline.c pulsecore/ioline.h
854 libioline_la_LDFLAGS = -avoid-version
855 libioline_la_LIBADD = $(AM_LIBADD) libiochannel.la libpulsecore.la
856
857 libcli_la_SOURCES = pulsecore/cli.c pulsecore/cli.h
858 libcli_la_CPPFLAGS = $(AM_CPPFLAGS)
859 libcli_la_LDFLAGS = -avoid-version
860 libcli_la_LIBADD = $(AM_LIBADD) libiochannel.la libioline.la libpulsecore.la
861
862 libstrlist_la_SOURCES = pulsecore/strlist.c pulsecore/strlist.h
863 libstrlist_la_LDFLAGS = -avoid-version
864 libstrlist_la_LIBADD = $(AM_LIBADD) libpulsecore.la
865
866 libprotocol_cli_la_SOURCES = pulsecore/protocol-cli.c pulsecore/protocol-cli.h
867 libprotocol_cli_la_LDFLAGS = -avoid-version
868 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libcli.la libpulsecore.la
869
870 libprotocol_http_la_SOURCES = pulsecore/protocol-http.c pulsecore/protocol-http.h
871 libprotocol_http_la_LDFLAGS = -avoid-version
872 libprotocol_http_la_LIBADD = $(AM_LIBADD) libsocket-server.la libioline.la libpulsecore.la libiochannel.la
873
874 libprotocol_native_la_SOURCES = pulsecore/protocol-native.c pulsecore/protocol-native.h pulsecore/native-common.h
875 libprotocol_native_la_LDFLAGS = -avoid-version
876 libprotocol_native_la_LIBADD = $(AM_LIBADD) libsocket-server.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la libauthkey-prop.la libstrlist.la libpulsecore.la libiochannel.la libipacl.la
877
878 libtagstruct_la_SOURCES = pulsecore/tagstruct.c pulsecore/tagstruct.h
879 libtagstruct_la_LDFLAGS = -avoid-version
880 libtagstruct_la_LIBADD = $(AM_LIBADD) libpulsecore.la $(WINSOCK_LIBS)
881
882 libprotocol_esound_la_SOURCES = pulsecore/protocol-esound.c pulsecore/protocol-esound.h pulsecore/esound.h
883 libprotocol_esound_la_LDFLAGS = -avoid-version
884 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libauthkey.la libpulsecore.la libipacl.la
885
886 libauthkey_la_SOURCES = pulsecore/authkey.c pulsecore/authkey.h
887 libauthkey_la_LDFLAGS = -avoid-version
888 libauthkey_la_LIBADD = $(AM_LIBADD) libpulsecore.la
889
890 libauthkey_prop_la_SOURCES = pulsecore/authkey-prop.c pulsecore/authkey-prop.h
891 libauthkey_prop_la_LDFLAGS = -avoid-version
892 libauthkey_prop_la_LIBADD = $(AM_LIBADD) libpulsecore.la
893
894 libsocket_util_la_SOURCES = \
895 pulsecore/inet_ntop.c pulsecore/inet_ntop.h \
896 pulsecore/socket-util.c pulsecore/socket-util.h
897 libsocket_util_la_LDFLAGS = -avoid-version
898 libsocket_util_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS) libpulsecore.la
899
900 librtp_la_SOURCES = modules/rtp/rtp.c modules/rtp/rtp.h modules/rtp/sdp.c modules/rtp/sdp.h modules/rtp/sap.c modules/rtp/sap.h
901 librtp_la_LDFLAGS = -avoid-version
902 librtp_la_LIBADD = $(AM_LIBADD) libpulsecore.la
903
904 # X11
905
906 libx11wrap_la_SOURCES = pulsecore/x11wrap.c pulsecore/x11wrap.h
907 libx11wrap_la_LDFLAGS = -avoid-version
908 libx11wrap_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
909 libx11wrap_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS) libpulsecore.la
910
911 libx11prop_la_SOURCES = pulsecore/x11prop.c pulsecore/x11prop.h
912 libx11prop_la_LDFLAGS = -avoid-version
913 libx11prop_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
914 libx11prop_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
915
916 # Avahi
917
918 libavahi_wrap_la_SOURCES = pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
919 libavahi_wrap_la_LDFLAGS = -avoid-version
920 libavahi_wrap_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
921 libavahi_wrap_la_LIBADD = $(AM_LIBADD) $(AVAHI_CFLAGS) libpulsecore.la
922
923 ###################################
924 # Plug-in libraries #
925 ###################################
926
927 modlibexec_LTLIBRARIES += \
928 module-cli.la \
929 module-cli-protocol-tcp.la \
930 module-simple-protocol-tcp.la \
931 module-null-sink.la \
932 module-detect.la \
933 module-volume-restore.la \
934 module-default-device-restore.la \
935 module-rescue-streams.la \
936 module-suspend-on-idle.la \
937 module-http-protocol-tcp.la \
938 module-sine.la \
939 module-native-protocol-tcp.la \
940 module-native-protocol-fd.la \
941 module-esound-protocol-tcp.la \
942 module-combine.la \
943 module-remap-sink.la \
944 module-ladspa-sink.la
945 # module-tunnel-sink.la \
946 # module-tunnel-source.la \
947 # module-esound-sink.la
948
949 # See comment at librtp.la above
950 if !OS_IS_WIN32
951 modlibexec_LTLIBRARIES += \
952 module-rtp-send.la \
953 module-rtp-recv.la
954 endif
955
956 if HAVE_AF_UNIX
957 modlibexec_LTLIBRARIES += \
958 module-cli-protocol-unix.la \
959 module-simple-protocol-unix.la \
960 module-http-protocol-unix.la \
961 module-native-protocol-unix.la \
962 module-esound-protocol-unix.la
963 endif
964
965 if HAVE_MKFIFO
966 modlibexec_LTLIBRARIES += \
967 module-pipe-sink.la \
968 module-pipe-source.la
969 endif
970
971 if !OS_IS_WIN32
972 modlibexec_LTLIBRARIES += \
973 module-esound-compat-spawnfd.la \
974 module-esound-compat-spawnpid.la
975 endif
976
977 if HAVE_REGEX
978 modlibexec_LTLIBRARIES += \
979 module-match.la
980 endif
981
982 if HAVE_X11
983 modlibexec_LTLIBRARIES += \
984 module-x11-bell.la \
985 module-x11-publish.la \
986 module-x11-xsmp.la
987 endif
988
989 if HAVE_OSS
990 modlibexec_LTLIBRARIES += \
991 liboss-util.la \
992 module-oss.la
993 endif
994
995 if HAVE_ALSA
996 modlibexec_LTLIBRARIES += \
997 libalsa-util.la \
998 module-alsa-sink.la \
999 module-alsa-source.la
1000 endif
1001
1002 #if HAVE_SOLARIS
1003 #modlibexec_LTLIBRARIES += \
1004 # module-solaris.la
1005 #endif
1006
1007 if HAVE_AVAHI
1008 modlibexec_LTLIBRARIES += \
1009 module-zeroconf-publish.la
1010 endif
1011
1012 if HAVE_LIRC
1013 modlibexec_LTLIBRARIES += \
1014 module-lirc.la
1015 endif
1016
1017 if HAVE_EVDEV
1018 modlibexec_LTLIBRARIES += \
1019 module-mmkbd-evdev.la
1020 endif
1021
1022 #if HAVE_JACK
1023 #modlibexec_LTLIBRARIES += \
1024 # module-jack-sink.la \
1025 # module-jack-source.la
1026 #endif
1027
1028 if HAVE_GCONF
1029 modlibexec_LTLIBRARIES += \
1030 module-gconf.la
1031
1032 pulselibexec_PROGRAMS = \
1033 gconf-helper
1034 endif
1035
1036 #if OS_IS_WIN32
1037 #modlibexec_LTLIBRARIES += \
1038 # module-waveout.la
1039 #endif
1040
1041 if HAVE_HAL
1042 modlibexec_LTLIBRARIES += \
1043 libdbus-util.la \
1044 module-hal-detect.la
1045 endif
1046
1047 # These are generated by a M4 script
1048
1049 SYMDEF_FILES = \
1050 modules/module-cli-symdef.h \
1051 modules/module-cli-protocol-tcp-symdef.h \
1052 modules/module-cli-protocol-unix-symdef.h \
1053 modules/module-pipe-sink-symdef.h \
1054 modules/module-pipe-source-symdef.h \
1055 modules/module-simple-protocol-tcp-symdef.h \
1056 modules/module-simple-protocol-unix-symdef.h \
1057 modules/module-esound-protocol-tcp-symdef.h \
1058 modules/module-esound-protocol-unix-symdef.h \
1059 modules/module-native-protocol-tcp-symdef.h \
1060 modules/module-native-protocol-unix-symdef.h \
1061 modules/module-native-protocol-fd-symdef.h \
1062 modules/module-sine-symdef.h \
1063 modules/module-combine-symdef.h \
1064 modules/module-remap-sink-symdef.h \
1065 modules/module-ladspa-sink-symdef.h \
1066 modules/module-esound-compat-spawnfd-symdef.h \
1067 modules/module-esound-compat-spawnpid-symdef.h \
1068 modules/module-match-symdef.h \
1069 modules/module-tunnel-sink-symdef.h \
1070 modules/module-tunnel-source-symdef.h \
1071 modules/module-null-sink-symdef.h \
1072 modules/module-esound-sink-symdef.h \
1073 modules/module-zeroconf-publish-symdef.h \
1074 modules/module-lirc-symdef.h \
1075 modules/module-mmkbd-evdev-symdef.h \
1076 modules/module-http-protocol-tcp-symdef.h \
1077 modules/module-http-protocol-unix-symdef.h \
1078 modules/module-x11-bell-symdef.h \
1079 modules/module-x11-publish-symdef.h \
1080 modules/module-x11-xsmp-symdef.h \
1081 modules/module-oss-symdef.h \
1082 modules/module-alsa-sink-symdef.h \
1083 modules/module-alsa-source-symdef.h \
1084 modules/module-solaris-symdef.h \
1085 modules/module-waveout-symdef.h \
1086 modules/module-detect-symdef.h \
1087 modules/rtp/module-rtp-send-symdef.h \
1088 modules/rtp/module-rtp-recv-symdef.h \
1089 modules/module-jack-sink-symdef.h \
1090 modules/module-jack-source-symdef.h \
1091 modules/module-volume-restore-symdef.h \
1092 modules/module-default-device-restore-symdef.h \
1093 modules/module-rescue-streams-symdef.h \
1094 modules/module-suspend-on-idle-symdef.h \
1095 modules/module-hal-detect-symdef.h \
1096 modules/gconf/module-gconf-symdef.h
1097
1098 EXTRA_DIST += $(SYMDEF_FILES)
1099 BUILT_SOURCES += $(SYMDEF_FILES)
1100
1101 $(SYMDEF_FILES): modules/module-defs.h.m4
1102 -mkdir modules
1103 -mkdir modules/gconf
1104 -mkdir modules/rtp
1105 $(M4) -Dfname="$@" $< > $@
1106
1107 # Simple protocol
1108
1109 module_simple_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1110 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1111 module_simple_protocol_tcp_la_LDFLAGS = -module -avoid-version
1112 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-simple.la libsocket-server.la
1113
1114 module_simple_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1115 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1116 module_simple_protocol_unix_la_LDFLAGS = -module -avoid-version
1117 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-simple.la libsocket-server.la libsocket-util.la
1118
1119 # CLI protocol
1120
1121 module_cli_la_SOURCES = modules/module-cli.c
1122 module_cli_la_LDFLAGS = -module -avoid-version
1123 module_cli_la_LIBADD = $(AM_LIBADD) libcli.la libiochannel.la libpulsecore.la
1124
1125 module_cli_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1126 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1127 module_cli_protocol_tcp_la_LDFLAGS = -module -avoid-version
1128 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-cli.la libsocket-server.la
1129
1130 module_cli_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1131 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1132 module_cli_protocol_unix_la_LDFLAGS = -module -avoid-version
1133 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-cli.la libsocket-server.la libsocket-util.la
1134
1135 # HTTP protocol
1136
1137 module_http_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1138 module_http_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1139 module_http_protocol_tcp_la_LDFLAGS = -module -avoid-version
1140 module_http_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-http.la libsocket-server.la
1141
1142 module_http_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1143 module_http_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1144 module_http_protocol_unix_la_LDFLAGS = -module -avoid-version
1145 module_http_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-http.la libsocket-server.la libsocket-util.la
1146
1147 # Native protocol
1148
1149 module_native_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1150 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1151 module_native_protocol_tcp_la_LDFLAGS = -module -avoid-version
1152 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-native.la libsocket-server.la
1153
1154 module_native_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1155 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1156 module_native_protocol_unix_la_LDFLAGS = -module -avoid-version
1157 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-native.la libsocket-server.la libsocket-util.la
1158
1159 module_native_protocol_fd_la_SOURCES = modules/module-native-protocol-fd.c
1160 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
1161 module_native_protocol_fd_la_LDFLAGS = -module -avoid-version
1162 module_native_protocol_fd_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-native.la libsocket-server.la libsocket-util.la libiochannel.la
1163
1164 # EsounD protocol
1165
1166 module_esound_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1167 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1168 module_esound_protocol_tcp_la_LDFLAGS = -module -avoid-version
1169 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-esound.la libsocket-server.la
1170
1171 module_esound_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1172 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1173 module_esound_protocol_unix_la_LDFLAGS = -module -avoid-version
1174 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-esound.la libsocket-server.la libsocket-util.la
1175
1176 module_esound_compat_spawnfd_la_SOURCES = modules/module-esound-compat-spawnfd.c
1177 module_esound_compat_spawnfd_la_LDFLAGS = -module -avoid-version
1178 module_esound_compat_spawnfd_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1179
1180 module_esound_compat_spawnpid_la_SOURCES = modules/module-esound-compat-spawnpid.c
1181 module_esound_compat_spawnpid_la_LDFLAGS = -module -avoid-version
1182 module_esound_compat_spawnpid_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1183
1184 #module_esound_sink_la_SOURCES = modules/module-esound-sink.c
1185 #module_esound_sink_la_LDFLAGS = -module -avoid-version
1186 #module_esound_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la libsocket-client.la libauthkey.la
1187
1188 # Pipes
1189
1190 module_pipe_sink_la_SOURCES = modules/module-pipe-sink.c
1191 module_pipe_sink_la_LDFLAGS = -module -avoid-version
1192 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la
1193
1194 module_pipe_source_la_SOURCES = modules/module-pipe-source.c
1195 module_pipe_source_la_LDFLAGS = -module -avoid-version
1196 module_pipe_source_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la
1197
1198 # Fake sources/sinks
1199
1200 module_sine_la_SOURCES = modules/module-sine.c
1201 module_sine_la_LDFLAGS = -module -avoid-version
1202 module_sine_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1203
1204 module_null_sink_la_SOURCES = modules/module-null-sink.c
1205 module_null_sink_la_LDFLAGS = -module -avoid-version
1206 module_null_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1207
1208 # Couplings
1209
1210 module_combine_la_SOURCES = modules/module-combine.c
1211 module_combine_la_LDFLAGS = -module -avoid-version
1212 module_combine_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1213
1214 module_remap_sink_la_SOURCES = modules/module-remap-sink.c
1215 module_remap_sink_la_LDFLAGS = -module -avoid-version
1216 module_remap_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1217
1218 module_ladspa_sink_la_SOURCES = modules/module-ladspa-sink.c modules/ladspa.h
1219 module_ladspa_sink_la_CFLAGS = -DLADSPA_PATH=\"$(libdir)/ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa\" $(AM_CFLAGS)
1220 module_ladspa_sink_la_LDFLAGS = -module -avoid-version
1221 module_ladspa_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1222
1223 module_match_la_SOURCES = modules/module-match.c
1224 module_match_la_LDFLAGS = -module -avoid-version
1225 module_match_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1226
1227 #module_tunnel_sink_la_SOURCES = modules/module-tunnel.c
1228 #module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS)
1229 #module_tunnel_sink_la_LDFLAGS = -module -avoid-version
1230 #module_tunnel_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la libsocket-client.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la libauthkey-prop.la libsocket-util.la libiochannel.la
1231
1232 #module_tunnel_source_la_SOURCES = modules/module-tunnel.c
1233 #module_tunnel_source_la_LDFLAGS = -module -avoid-version
1234 #module_tunnel_source_la_LIBADD = $(AM_LIBADD) libpulsecore.la libsocket-client.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la libauthkey-prop.la libsocket-util.la libiochannel.la
1235
1236 # X11
1237
1238 module_x11_bell_la_SOURCES = modules/module-x11-bell.c
1239 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
1240 module_x11_bell_la_LDFLAGS = -module -avoid-version
1241 module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS) libx11wrap.la libpulsecore.la
1242
1243 module_x11_publish_la_SOURCES = modules/module-x11-publish.c
1244 module_x11_publish_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
1245 module_x11_publish_la_LDFLAGS = -module -avoid-version
1246 module_x11_publish_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS) libx11wrap.la libauthkey.la libauthkey-prop.la libx11prop.la libstrlist.la libpulsecore.la
1247
1248 module_x11_xsmp_la_SOURCES = modules/module-x11-xsmp.c
1249 module_x11_xsmp_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
1250 module_x11_xsmp_la_LDFLAGS = -module -avoid-version
1251 module_x11_xsmp_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS) libpulsecore.la
1252
1253 # OSS
1254
1255 liboss_util_la_SOURCES = modules/oss-util.c modules/oss-util.h
1256 liboss_util_la_LDFLAGS = -avoid-version
1257 liboss_util_la_LIBADD = libpulsecore.la
1258
1259 module_oss_la_SOURCES = modules/module-oss.c
1260 module_oss_la_LDFLAGS = -module -avoid-version
1261 module_oss_la_LIBADD = $(AM_LIBADD) libiochannel.la liboss-util.la
1262
1263 # ALSA
1264
1265 libalsa_util_la_SOURCES = modules/alsa-util.c modules/alsa-util.h
1266 libalsa_util_la_LDFLAGS = -avoid-version
1267 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libpulsecore.la
1268 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1269
1270 module_alsa_sink_la_SOURCES = modules/module-alsa-sink.c
1271 module_alsa_sink_la_LDFLAGS = -module -avoid-version
1272 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore.la
1273 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1274
1275 module_alsa_source_la_SOURCES = modules/module-alsa-source.c
1276 module_alsa_source_la_LDFLAGS = -module -avoid-version
1277 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore.la
1278 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1279
1280 # Solaris
1281
1282 #module_solaris_la_SOURCES = modules/module-solaris.c
1283 #module_solaris_la_LDFLAGS = -module -avoid-version
1284 #module_solaris_la_LIBADD = $(AM_LIBADD) libiochannel.la
1285
1286 # Avahi
1287
1288 module_zeroconf_publish_la_SOURCES = modules/module-zeroconf-publish.c
1289 module_zeroconf_publish_la_LDFLAGS = -module -avoid-version
1290 module_zeroconf_publish_la_LIBADD = $(AM_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libpulsecore.la
1291 module_zeroconf_publish_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1292
1293 # LIRC
1294
1295 module_lirc_la_SOURCES = modules/module-lirc.c
1296 module_lirc_la_LDFLAGS = -module -avoid-version
1297 module_lirc_la_LIBADD = $(AM_LIBADD) $(LIRC_LIBS) libpulsecore.la
1298 module_lirc_la_CFLAGS = $(AM_CFLAGS) $(LIRC_CFLAGS)
1299
1300 # Linux evdev
1301
1302 module_mmkbd_evdev_la_SOURCES = modules/module-mmkbd-evdev.c
1303 module_mmkbd_evdev_la_LDFLAGS = -module -avoid-version
1304 module_mmkbd_evdev_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1305 module_mmkbd_evdev_la_CFLAGS = $(AM_CFLAGS)
1306
1307 # Windows waveout
1308
1309 #module_waveout_la_SOURCES = modules/module-waveout.c
1310 #module_waveout_la_LDFLAGS = -module -avoid-version
1311 #module_waveout_la_LIBADD = $(AM_LIBADD) libpulsecore.la -lwinmm
1312 #module_waveout_la_CFLAGS = $(AM_CFLAGS)
1313
1314 # Hardware autodetection module
1315 module_detect_la_SOURCES = modules/module-detect.c
1316 module_detect_la_LDFLAGS = -module -avoid-version
1317 module_detect_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1318 module_detect_la_CFLAGS = $(AM_CFLAGS)
1319
1320 # Volume restore module
1321 module_volume_restore_la_SOURCES = modules/module-volume-restore.c
1322 module_volume_restore_la_LDFLAGS = -module -avoid-version
1323 module_volume_restore_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1324 module_volume_restore_la_CFLAGS = $(AM_CFLAGS)
1325
1326 # Default sink/source restore module
1327 module_default_device_restore_la_SOURCES = modules/module-default-device-restore.c
1328 module_default_device_restore_la_LDFLAGS = -module -avoid-version
1329 module_default_device_restore_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1330 module_default_device_restore_la_CFLAGS = $(AM_CFLAGS)
1331
1332 # Rescue streams module
1333 module_rescue_streams_la_SOURCES = modules/module-rescue-streams.c
1334 module_rescue_streams_la_LDFLAGS = -module -avoid-version
1335 module_rescue_streams_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1336 module_rescue_streams_la_CFLAGS = $(AM_CFLAGS)
1337
1338 # Suspend-on-idle module
1339 module_suspend_on_idle_la_SOURCES = modules/module-suspend-on-idle.c
1340 module_suspend_on_idle_la_LDFLAGS = -module -avoid-version
1341 module_suspend_on_idle_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1342 module_suspend_on_idle_la_CFLAGS = $(AM_CFLAGS)
1343
1344 # RTP modules
1345 module_rtp_send_la_SOURCES = modules/rtp/module-rtp-send.c
1346 module_rtp_send_la_LDFLAGS = -module -avoid-version
1347 module_rtp_send_la_LIBADD = $(AM_LIBADD) libpulsecore.la librtp.la
1348 module_rtp_send_la_CFLAGS = $(AM_CFLAGS)
1349
1350 module_rtp_recv_la_SOURCES = modules/rtp/module-rtp-recv.c
1351 module_rtp_recv_la_LDFLAGS = -module -avoid-version
1352 module_rtp_recv_la_LIBADD = $(AM_LIBADD) libpulsecore.la librtp.la
1353 module_rtp_recv_la_CFLAGS = $(AM_CFLAGS)
1354
1355 # JACK
1356
1357 #module_jack_sink_la_SOURCES = modules/module-jack-sink.c
1358 #module_jack_sink_la_LDFLAGS = -module -avoid-version
1359 #module_jack_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la $(JACK_LIBS)
1360 #module_jack_sink_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1361
1362 #module_jack_source_la_SOURCES = modules/module-jack-source.c
1363 #module_jack_source_la_LDFLAGS = -module -avoid-version
1364 #module_jack_source_la_LIBADD = $(AM_LIBADD) libpulsecore.la $(JACK_LIBS)
1365 #module_jack_source_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1366
1367 # HAL
1368 libdbus_util_la_SOURCES = modules/dbus-util.c modules/dbus-util.h
1369 libdbus_util_la_LDFLAGS = -avoid-version
1370 libdbus_util_la_LIBADD = $(AM_LIBADD) $(HAL_LIBS) libpulsecore.la
1371 libdbus_util_la_CFLAGS = $(AM_CFLAGS) $(HAL_CFLAGS)
1372
1373 module_hal_detect_la_SOURCES = modules/module-hal-detect.c
1374 module_hal_detect_la_LDFLAGS = -module -avoid-version
1375 module_hal_detect_la_LIBADD = $(AM_LIBADD) $(HAL_LIBS) libpulsecore.la libdbus-util.la
1376 module_hal_detect_la_CFLAGS = $(AM_CFLAGS) $(HAL_CFLAGS)
1377
1378 # GConf support
1379 module_gconf_la_SOURCES = modules/gconf/module-gconf.c
1380 module_gconf_la_LDFLAGS = -module -avoid-version
1381 module_gconf_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1382 module_gconf_la_CFLAGS = $(AM_CFLAGS) -DPA_GCONF_HELPER=\"$(pulselibexecdir)/gconf-helper\"
1383
1384 gconf_helper_SOURCES = modules/gconf/gconf-helper.c
1385 gconf_helper_LDADD = $(AM_LDADD) $(GCONF_LIBS) libpulsecore.la
1386 gconf_helper_CFLAGS = $(AM_CFLAGS) $(GCONF_CFLAGS)
1387 gconf_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
1388
1389 ###################################
1390 # Some minor stuff #
1391 ###################################
1392
1393 suid: pulseaudio .libs/lt-pulseaudio
1394 chown root $^
1395 chmod u+s $^
1396
1397 CLEANFILES = esdcompat client.conf default.pa daemon.conf
1398
1399 esdcompat: daemon/esdcompat.in Makefile
1400 sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1401 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1402 -e 's,@PA_BINARY\@,$(PA_BINARY),g' < $< > $@
1403 chmod +x esdcompat
1404
1405 client.conf: pulse/client.conf.in Makefile
1406 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' < $< > $@
1407
1408 if OS_IS_WIN32
1409 default.pa: daemon/default.pa.win32
1410 cp $< $@
1411 else
1412 default.pa: daemon/default.pa.in Makefile
1413 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1414 -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1415 -e 's,@PA_SOEXT\@,.so,g' < $< > $@
1416 endif
1417
1418 daemon.conf: daemon/daemon.conf.in Makefile
1419 sed -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1420 -e 's,@PA_DEFAULT_CONFIG_FILE\@,$(DEFAULT_CONFIG_DIR),g' < $< > $@
1421
1422 install-exec-hook:
1423 chown root $(DESTDIR)$(bindir)/pulseaudio ; true
1424 chmod u+s $(DESTDIR)$(bindir)/pulseaudio
1425 ln -sf pacat $(DESTDIR)$(bindir)/parec
1426 rm -f $(DESTDIR)$(modlibexecdir)/*.a
1427 rm -f $(DESTDIR)$(libdir)/libpulsedsp.a
1428 rm -f $(DESTDIR)$(libdir)/libpulsedsp.la
1429
1430 massif: pulseaudio
1431 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
1432
1433 update-speex:
1434 wget -O pulsecore/speex/speex_resampler.h http://svn.xiph.org/trunk/speex/include/speex/speex_resampler.h
1435 wget -O pulsecore/speex/resample.c http://svn.xiph.org/trunk/speex/libspeex/resample.c
1436 wget -O pulsecore/speex/arch.h http://svn.xiph.org/trunk/speex/libspeex/arch.h
1437 wget -O pulsecore/speex/fixed_generic.h http://svn.xiph.org/trunk/speex/libspeex/fixed_generic.h
1438
1439 update-ffmpeg:
1440 wget -O pulsecore/ffmpeg/resample2.c http://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec/resample2.c?view=co
1441
1442 .PHONY: utils/padsp