3 # This file is part of PulseAudio.
5 # Copyright 2004-2006 Lennart Poettering
6 # Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
7 # Copyright 2006 Diego Pettenò
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.
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.
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
25 ###################################
27 ###################################
29 pulseincludedir=$(includedir)/pulse
30 pulsecoreincludedir=$(includedir)/pulsecore
31 pulseconfdir=$(sysconfdir)/pulse
32 pulselibexecdir=$(libexecdir)/pulse
34 ###################################
36 ###################################
38 PA_BINARY=$(bindir)/pulseaudio$(EXEEXT)
40 PA_DEFAULT_CONFIG_DIR=%PULSE_ROOT%
42 PA_DEFAULT_CONFIG_DIR=$(pulseconfdir)
45 ###################################
46 # Compiler/linker flags #
47 ###################################
49 AM_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src/modules -I$(top_builddir)/src/modules/rtp -I$(top_builddir)/src/modules/gconf
50 AM_CFLAGS += $(PTHREAD_CFLAGS) -D_POSIX_PTHREAD_SEMANTICS
51 AM_CFLAGS += $(LTDLINCL)
52 AM_CFLAGS += $(LIBSAMPLERATE_CFLAGS) $(LIBSNDFILE_CFLAGS)
53 AM_CFLAGS += -DPA_DLSEARCHPATH=\"$(modlibexecdir)\"
54 AM_CFLAGS += -DPA_DEFAULT_CONFIG_DIR=\"$(PA_DEFAULT_CONFIG_DIR)\"
55 AM_CFLAGS += -DPA_BINARY=\"$(PA_BINARY)\"
56 AM_CFLAGS += -DPA_SYSTEM_RUNTIME_PATH=\"$(PA_SYSTEM_RUNTIME_PATH)\"
57 AM_CFLAGS += -DAO_REQUIRE_CAS
59 # This cool debug trap works on i386/gcc only
60 AM_CFLAGS += '-DDEBUG_TRAP=__asm__("int $$3")'
62 AM_LIBADD = $(PTHREAD_LIBS)
63 AM_LDADD = $(PTHREAD_LIBS)
65 # Only required on some platforms but defined for all to avoid errors
66 AM_LDFLAGS = -Wl,-no-undefined
73 AM_LDFLAGS+=-Wl,--export-all-symbols
74 WINSOCK_LIBS=-lwsock32 -lws2_32 -lwininet
79 pulsecore/once-win32.c pulsecore/once.h \
80 pulsecore/mutex-win32.c pulsecore/mutex.h \
81 pulsecore/thread-win32.c pulsecore/thread.h
85 pulsecore/once-posix.c pulsecore/once.h \
86 pulsecore/mutex-posix.c pulsecore/mutex.h \
87 pulsecore/thread-posix.c pulsecore/thread.h
90 ###################################
92 ###################################
95 pulse/client.conf.in \
97 daemon/daemon.conf.in \
98 daemon/default.pa.in \
99 daemon/default.pa.win32 \
101 daemon/esdcompat.in \
103 modules/module-defs.h.m4
113 ###################################
115 ###################################
117 bin_PROGRAMS = pulseaudio
119 pulseaudio_SOURCES = \
120 daemon/caps.h daemon/caps.c \
121 daemon/cmdline.c daemon/cmdline.h \
122 daemon/cpulimit.c daemon/cpulimit.h \
123 daemon/daemon-conf.c daemon/daemon-conf.h \
124 daemon/dumpmodules.c daemon/dumpmodules.h \
128 pulseaudio_CFLAGS = $(AM_CFLAGS) $(LIBOIL_CFLAGS)
129 pulseaudio_CPPFLAGS = $(AM_CPPFLAGS)
130 pulseaudio_LDADD = $(AM_LDADD) libpulsecore.la $(LIBLTDL) \
131 $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(CAP_LIBS) $(LIBOIL_LIBS)
132 # This is needed because automake doesn't properly expand the foreach below
133 pulseaudio_DEPENDENCIES = libpulsecore.la $(PREOPEN_LIBS)
136 PREOPEN_LIBS = $(PREOPEN_MODS)
138 PREOPEN_LIBS = $(modlibexec_LTLIBRARIES)
142 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlpreopen force $(foreach f,$(PREOPEN_LIBS),-dlpreopen $(f))
144 pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
147 ###################################
149 ###################################
157 bin_PROGRAMS += pacmd
161 bin_PROGRAMS += pax11publish
165 bin_PROGRAMS += pabrowse
168 bin_SCRIPTS = esdcompat
170 pacat_SOURCES = utils/pacat.c
171 pacat_LDADD = $(AM_LDADD) libpulse.la
172 pacat_CFLAGS = $(AM_CFLAGS)
173 pacat_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
175 paplay_SOURCES = utils/paplay.c
176 paplay_LDADD = $(AM_LDADD) libpulse.la $(LIBSNDFILE_LIBS)
177 paplay_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
178 paplay_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
180 pactl_SOURCES = utils/pactl.c
181 pactl_LDADD = $(AM_LDADD) libpulse.la $(LIBSNDFILE_LIBS)
182 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
183 pactl_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
185 pacmd_SOURCES = utils/pacmd.c pulsecore/pid.c pulsecore/pid.h
186 pacmd_CFLAGS = $(AM_CFLAGS)
187 pacmd_LDADD = $(AM_LDADD) libpulse.la
188 pacmd_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
190 pax11publish_SOURCES = utils/pax11publish.c
191 pax11publish_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
192 pax11publish_LDADD = $(AM_LDADD) libpulse.la $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
193 pax11publish_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
195 pabrowse_SOURCES = utils/pabrowse.c
196 pabrowse_LDADD = $(AM_LDADD) libpulse.la libpulse-browse.la
197 pabrowse_CFLAGS = $(AM_CFLAGS)
198 pabrowse_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
200 ###################################
202 ###################################
215 thread-mainloop-test \
217 get-binary-name-test \
235 mainloop_test_SOURCES = tests/mainloop-test.c
236 mainloop_test_CFLAGS = $(AM_CFLAGS)
237 mainloop_test_LDADD = $(AM_LDADD) libpulse.la
238 mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
240 thread_mainloop_test_SOURCES = tests/thread-mainloop-test.c
241 thread_mainloop_test_CFLAGS = $(AM_CFLAGS)
242 thread_mainloop_test_LDADD = $(AM_LDADD) libpulse.la
243 thread_mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
245 utf8_test_SOURCES = tests/utf8-test.c
246 utf8_test_CFLAGS = $(AM_CFLAGS)
247 utf8_test_LDADD = $(AM_LDADD) libpulsecore.la
248 utf8_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
250 get_binary_name_test_SOURCES = tests/get-binary-name-test.c
251 get_binary_name_test_CFLAGS = $(AM_CFLAGS)
252 get_binary_name_test_LDADD = $(AM_LDADD) libpulse.la
253 get_binary_name_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
255 ipacl_test_SOURCES = tests/ipacl-test.c \
256 pulsecore/ipacl.c pulsecore/ipacl.h \
257 pulsecore/inet_pton.c pulsecore/inet_pton.h
258 ipacl_test_CFLAGS = $(AM_CFLAGS)
259 ipacl_test_LDADD = $(AM_LDADD) libpulsecore.la
260 ipacl_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
262 hook_list_test_SOURCES = tests/hook-list-test.c
263 hook_list_test_CFLAGS = $(AM_CFLAGS)
264 hook_list_test_LDADD = $(AM_LDADD) libpulsecore.la
265 hook_list_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
267 memblock_test_SOURCES = tests/memblock-test.c
268 memblock_test_CFLAGS = $(AM_CFLAGS)
269 memblock_test_LDADD = $(AM_LDADD) libpulsecore.la
270 memblock_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
272 thread_test_SOURCES = tests/thread-test.c
273 thread_test_CFLAGS = $(AM_CFLAGS)
274 thread_test_LDADD = $(AM_LDADD) libpulsecore.la
275 thread_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
277 flist_test_SOURCES = tests/flist-test.c \
279 pulsecore/flist.c pulsecore/flist.h
280 flist_test_CFLAGS = $(AM_CFLAGS)
281 flist_test_LDADD = $(AM_LDADD) libpulsecore.la
282 flist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
284 mcalign_test_SOURCES = tests/mcalign-test.c
285 mcalign_test_CFLAGS = $(AM_CFLAGS)
286 mcalign_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore.la
287 mcalign_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
289 pacat_simple_SOURCES = tests/pacat-simple.c
290 pacat_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la
291 pacat_simple_CFLAGS = $(AM_CFLAGS)
292 pacat_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
294 parec_simple_SOURCES = tests/parec-simple.c
295 parec_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la
296 parec_simple_CFLAGS = $(AM_CFLAGS)
297 parec_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
299 strlist_test_SOURCES = tests/strlist-test.c
300 strlist_test_CFLAGS = $(AM_CFLAGS)
301 strlist_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore.la libstrlist.la
302 strlist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
304 voltest_SOURCES = tests/voltest.c
305 voltest_CFLAGS = $(AM_CFLAGS)
306 voltest_LDADD = $(AM_LDADD) libpulse.la
307 voltest_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
309 channelmap_test_SOURCES = tests/channelmap-test.c
310 channelmap_test_CFLAGS = $(AM_CFLAGS)
311 channelmap_test_LDADD = $(AM_LDADD) libpulse.la
312 channelmap_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
314 cpulimit_test_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
315 cpulimit_test_CFLAGS = $(AM_CFLAGS)
316 cpulimit_test_LDADD = $(AM_LDADD) libpulsecore.la
317 cpulimit_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
319 cpulimit_test2_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
320 cpulimit_test2_CFLAGS = $(AM_CFLAGS) -DTEST2
321 cpulimit_test2_LDADD = $(AM_LDADD) libpulsecore.la
322 cpulimit_test2_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
324 mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
325 mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
326 mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpulse-mainloop-glib.la
327 mainloop_test_glib_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
329 memblockq_test_SOURCES = tests/memblockq-test.c
330 memblockq_test_CFLAGS = $(AM_CFLAGS)
331 memblockq_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore.la
332 memblockq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
334 sync_playback_SOURCES = tests/sync-playback.c
335 sync_playback_LDADD = $(AM_LDADD) libpulse.la
336 sync_playback_CFLAGS = $(AM_CFLAGS)
337 sync_playback_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
339 interpol_test_SOURCES = tests/interpol-test.c
340 interpol_test_LDADD = $(AM_LDADD) libpulse.la
341 interpol_test_CFLAGS = $(AM_CFLAGS)
342 interpol_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
344 ###################################
346 ###################################
348 pulseinclude_HEADERS = \
356 pulse/mainloop-api.h \
357 pulse/mainloop-signal.h \
365 pulse/thread-mainloop.h \
374 pulseinclude_HEADERS += \
379 pulseinclude_HEADERS += \
380 pulse/glib-mainloop.h
394 libpulse-mainloop-glib.la
398 libpulse_la_SOURCES = \
400 pulse/channelmap.c pulse/channelmap.h \
401 pulse/client-conf.c pulse/client-conf.h \
402 pulse/context.c pulse/context.h \
404 pulse/error.c pulse/error.h \
406 pulse/introspect.c pulse/introspect.h \
407 pulse/mainloop.c pulse/mainloop.h \
408 pulse/mainloop-api.c pulse/mainloop-api.h \
409 pulse/mainloop-signal.c pulse/mainloop-signal.h \
410 pulse/operation.c pulse/operation.h \
412 pulse/sample.c pulse/sample.h \
413 pulse/scache.c pulse/scache.h \
414 pulse/stream.c pulse/stream.h \
415 pulse/subscribe.c pulse/subscribe.h \
416 pulse/thread-mainloop.c pulse/thread-mainloop.h \
417 pulse/timeval.c pulse/timeval.h \
418 pulse/utf8.c pulse/utf8.h \
419 pulse/util.c pulse/util.h \
420 pulse/volume.c pulse/volume.h \
421 pulse/xmalloc.c pulse/xmalloc.h
423 # Internal stuff that is shared with libpulsecore
424 libpulse_la_SOURCES += \
425 pulsecore/authkey.c pulsecore/authkey.h \
426 pulsecore/conf-parser.c pulsecore/conf-parser.h \
427 pulsecore/core-util.c pulsecore/core-util.h \
428 pulsecore/dynarray.c pulsecore/dynarray.h \
429 pulsecore/gccmacro.h \
430 pulsecore/hashmap.c pulsecore/hashmap.h \
431 pulsecore/idxset.c pulsecore/idxset.h \
432 pulsecore/inet_ntop.c pulsecore/inet_ntop.h \
433 pulsecore/iochannel.c pulsecore/iochannel.h \
435 pulsecore/log.c pulsecore/log.h \
436 pulsecore/mcalign.c pulsecore/mcalign.h \
437 pulsecore/memblock.c pulsecore/memblock.h \
438 pulsecore/memblockq.c pulsecore/memblockq.h \
439 pulsecore/memchunk.c pulsecore/memchunk.h \
440 pulsecore/native-common.h \
441 pulsecore/packet.c pulsecore/packet.h \
442 pulsecore/parseaddr.c pulsecore/parseaddr.h \
443 pulsecore/pdispatch.c pulsecore/pdispatch.h \
444 pulsecore/pipe.c pulsecore/pipe.h \
445 pulsecore/poll.c pulsecore/poll.h \
446 pulsecore/pstream.c pulsecore/pstream.h \
447 pulsecore/pstream-util.c pulsecore/pstream-util.h \
448 pulsecore/queue.c pulsecore/queue.h \
449 pulsecore/random.c pulsecore/random.h \
450 pulsecore/socket-client.c pulsecore/socket-client.h \
451 pulsecore/socket-util.c pulsecore/socket-util.h \
452 pulsecore/strbuf.c pulsecore/strbuf.h \
453 pulsecore/strlist.c pulsecore/strlist.h \
454 pulsecore/tagstruct.c pulsecore/tagstruct.h \
455 pulsecore/core-error.c pulsecore/core-error.h \
456 pulsecore/winsock.h pulsecore/creds.h \
457 pulsecore/shm.c pulsecore/shm.h \
461 libpulse_la_SOURCES += \
466 libpulse_la_SOURCES += \
467 pulse/client-conf-x11.c pulse/client-conf-x11.h \
468 pulsecore/x11prop.c pulsecore/x11prop.h
471 libpulse_la_CFLAGS = $(AM_CFLAGS)
472 libpulse_la_LDFLAGS = -version-info $(LIBPULSE_VERSION_INFO)
473 libpulse_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS) $(LIBICONV)
476 libpulse_la_CFLAGS += $(X_CFLAGS)
477 libpulse_la_LDFLAGS += $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
481 libpulse_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
482 libpulse_la_LIBADD += $(LIBASYNCNS_LIBS)
485 libpulse_simple_la_SOURCES = pulse/simple.c pulse/simple.h
486 libpulse_simple_la_CFLAGS = $(AM_CFLAGS)
487 libpulse_simple_la_LIBADD = $(AM_LIBADD) libpulse.la
488 libpulse_simple_la_LDFLAGS = -version-info $(LIBPULSE_SIMPLE_VERSION_INFO)
490 libpulse_browse_la_SOURCES = pulse/browser.c pulse/browser.h pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
491 libpulse_browse_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
492 libpulse_browse_la_LIBADD = $(AM_LIBADD) libpulse.la $(AVAHI_LIBS)
493 libpulse_browse_la_LDFLAGS = -version-info $(LIBPULSE_BROWSE_VERSION_INFO)
495 libpulse_mainloop_glib_la_SOURCES = pulse/glib-mainloop.h pulse/glib-mainloop.c
496 libpulse_mainloop_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
497 libpulse_mainloop_glib_la_LIBADD = $(AM_LIBADD) libpulse.la $(GLIB20_LIBS)
498 libpulse_mainloop_glib_la_LDFLAGS = -version-info $(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO)
500 ###################################
502 ###################################
506 lib_LTLIBRARIES += libpulsedsp.la
508 bin_SCRIPTS += utils/padsp
512 libpulsedsp_la_SOURCES = utils/padsp.c
513 libpulsedsp_la_CFLAGS = $(AM_CFLAGS)
514 libpulsedsp_la_LIBADD = $(AM_LIBADD) libpulse.la
515 libpulsedsp_la_LDFLAGS = -avoid-version
517 ###################################
518 # Daemon core library #
519 ###################################
521 pulsecoreinclude_HEADERS = \
522 pulsecore/autoload.h \
524 pulsecore/cli-command.h \
525 pulsecore/cli-text.h \
528 pulsecore/core-def.h \
529 pulsecore/core-scache.h \
530 pulsecore/core-subscribe.h \
531 pulsecore/conf-parser.h \
532 pulsecore/core-util.h \
533 pulsecore/dynarray.h \
535 pulsecore/hashmap.h \
538 pulsecore/mcalign.h \
539 pulsecore/memblock.h \
540 pulsecore/memblockq.h \
541 pulsecore/memchunk.h \
542 pulsecore/modargs.h \
543 pulsecore/modinfo.h \
545 pulsecore/namereg.h \
547 pulsecore/play-memchunk.h \
548 pulsecore/play-memblockq.h \
552 pulsecore/resampler.h \
553 pulsecore/sample-util.h \
556 pulsecore/sink-input.h \
558 pulsecore/sound-file.h \
559 pulsecore/sound-file-stream.h \
561 pulsecore/source-output.h \
563 pulsecore/tokenizer.h \
572 lib_LTLIBRARIES += libpulsecore.la
574 # Some public stuff is used even in the core
575 libpulsecore_la_SOURCES = \
576 pulse/channelmap.c pulse/channelmap.h \
577 pulse/error.c pulse/error.h \
578 pulse/mainloop.c pulse/mainloop.h \
579 pulse/mainloop-api.c pulse/mainloop-api.h \
580 pulse/mainloop-signal.c pulse/mainloop-signal.h \
581 pulse/sample.c pulse/sample.h \
582 pulse/timeval.c pulse/timeval.h \
583 pulse/utf8.c pulse/utf8.h \
584 pulse/util.c pulse/util.h \
585 pulse/volume.c pulse/volume.h \
586 pulse/xmalloc.c pulse/xmalloc.h
588 # Pure core stuff (some are shared in libpulse though).
589 libpulsecore_la_SOURCES += \
590 pulsecore/autoload.c pulsecore/autoload.h \
591 pulsecore/cli-command.c pulsecore/cli-command.h \
592 pulsecore/cli-text.c pulsecore/cli-text.h \
593 pulsecore/client.c pulsecore/client.h \
594 pulsecore/conf-parser.c pulsecore/conf-parser.h \
595 pulsecore/core.c pulsecore/core.h \
596 pulsecore/core-scache.c pulsecore/core-scache.h \
597 pulsecore/core-subscribe.c pulsecore/core-subscribe.h \
598 pulsecore/core-util.c pulsecore/core-util.h \
599 pulsecore/dynarray.c pulsecore/dynarray.h \
600 pulsecore/endianmacros.h \
601 pulsecore/g711.c pulsecore/g711.h \
602 pulsecore/hashmap.c pulsecore/hashmap.h \
603 pulsecore/idxset.c pulsecore/idxset.h \
604 pulsecore/log.c pulsecore/log.h \
605 pulsecore/mcalign.c pulsecore/mcalign.h \
606 pulsecore/memblock.c pulsecore/memblock.h \
607 pulsecore/memblockq.c pulsecore/memblockq.h \
608 pulsecore/memchunk.c pulsecore/memchunk.h \
609 pulsecore/modargs.c pulsecore/modargs.h \
610 pulsecore/modinfo.c pulsecore/modinfo.h \
611 pulsecore/module.c pulsecore/module.h \
612 pulsecore/namereg.c pulsecore/namereg.h \
613 pulsecore/pid.c pulsecore/pid.h \
614 pulsecore/pipe.c pulsecore/pipe.h \
615 pulsecore/play-memchunk.c pulsecore/play-memchunk.h \
616 pulsecore/play-memblockq.c pulsecore/play-memblockq.h \
617 pulsecore/poll.c pulsecore/poll.h \
618 pulsecore/props.c pulsecore/props.h \
619 pulsecore/queue.c pulsecore/queue.h \
620 pulsecore/random.c pulsecore/random.h \
621 pulsecore/resampler.c pulsecore/resampler.h \
622 pulsecore/sample-util.c pulsecore/sample-util.h \
623 pulsecore/sconv.c pulsecore/sconv.h \
624 pulsecore/sconv-s16be.c pulsecore/sconv-s16be.h \
625 pulsecore/sconv-s16le.c pulsecore/sconv-s16le.h \
626 pulsecore/sink.c pulsecore/sink.h \
627 pulsecore/sink-input.c pulsecore/sink-input.h \
628 pulsecore/sioman.c pulsecore/sioman.h \
629 pulsecore/sound-file.c pulsecore/sound-file.h \
630 pulsecore/sound-file-stream.c pulsecore/sound-file-stream.h \
631 pulsecore/source.c pulsecore/source.h \
632 pulsecore/source-output.c pulsecore/source-output.h \
633 pulsecore/strbuf.c pulsecore/strbuf.h \
634 pulsecore/tokenizer.c pulsecore/tokenizer.h \
635 pulsecore/winsock.h \
636 pulsecore/core-error.c pulsecore/core-error.h \
637 pulsecore/hook-list.c pulsecore/hook-list.h \
638 pulsecore/shm.c pulsecore/shm.h \
642 libpulsecore_la_SOURCES += \
646 libpulsecore_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBOIL_CFLAGS)
647 libpulsecore_la_LDFLAGS = -version-info $(LIBPULSECORE_VERSION_INFO)
648 libpulsecore_la_LIBADD = $(AM_LIBADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(WINSOCK_LIBS) $(LIBOIL_LIBS) $(LIBICONV)
650 ###################################
651 # Plug-in support libraries #
652 ###################################
654 pulsecoreinclude_HEADERS += \
655 pulsecore/socket-util.h \
656 pulsecore/iochannel.h \
657 pulsecore/socket-server.h \
659 pulsecore/socket-client.h \
660 pulsecore/parseaddr.h \
662 pulsecore/pstream.h \
665 pulsecore/protocol-cli.h \
666 pulsecore/tagstruct.h \
667 pulsecore/pstream-util.h \
668 pulsecore/pdispatch.h \
669 pulsecore/authkey.h \
670 pulsecore/authkey-prop.h \
671 pulsecore/strlist.h \
672 pulsecore/protocol-simple.h \
674 pulsecore/protocol-esound.h \
675 pulsecore/native-common.h \
676 pulsecore/protocol-native.h \
677 pulsecore/protocol-http.h
679 ### Warning! Due to an obscure bug in libtool/automake it is required
680 ### that the libraries in modlibexec_LTLIBRARIES are specified in-order,
681 ### i.e. libraries near the end of the list depend on libraries near
682 ### the head, and not the other way!
684 modlibexec_LTLIBRARIES = \
687 libsocket-server.la \
690 libsocket-client.la \
702 libprotocol-simple.la \
703 libprotocol-esound.la \
704 libprotocol-native.la \
707 # We need to emulate sendmsg/recvmsg to support this on Win32
709 modlibexec_LTLIBRARIES += \
714 pulsecoreinclude_HEADERS += \
715 pulsecore/x11wrap.h \
718 modlibexec_LTLIBRARIES += \
724 pulsecoreinclude_HEADERS += \
725 pulsecore/avahi-wrap.h
727 modlibexec_LTLIBRARIES += \
731 libprotocol_simple_la_SOURCES = pulsecore/protocol-simple.c pulsecore/protocol-simple.h
732 libprotocol_simple_la_LDFLAGS = -avoid-version
733 libprotocol_simple_la_LIBADD = $(AM_LIBADD) libpulsecore.la libsocket-server.la libiochannel.la
735 libsocket_server_la_SOURCES = \
736 pulsecore/inet_ntop.c pulsecore/inet_ntop.h \
737 pulsecore/inet_pton.c pulsecore/inet_pton.h \
738 pulsecore/socket-server.c pulsecore/socket-server.h
739 libsocket_server_la_LDFLAGS = -avoid-version
740 libsocket_server_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la libsocket-util.la $(LIBWRAP_LIBS) $(WINSOCK_LIBS)
742 libipacl_la_SOURCES = pulsecore/ipacl.h pulsecore/ipacl.c \
743 pulsecore/inet_pton.c pulsecore/inet_pton.h
744 libipacl_la_LDFLAGS = -avoid-version
745 libipacl_la_LIBADD = $(AM_LIBADD) libpulsecore.la $(WINSOCK_LIBS)
747 libsocket_client_la_SOURCES = pulsecore/socket-client.c pulsecore/socket-client.h
748 libsocket_client_la_LDFLAGS = -avoid-version
749 libsocket_client_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la libsocket-util.la libparseaddr.la $(LIBASYNCNS_LIBS) $(WINSOCK_LIBS)
750 libsocket_client_la_CFLAGS = $(AM_CFLAGS) $(LIBASYNCNS_CFLAGS)
752 libparseaddr_la_SOURCES = pulsecore/parseaddr.c pulsecore/parseaddr.h
753 libparseaddr_la_LDFLAGS = -avoid-version
754 libparseaddr_la_LIBADD = $(AM_LIBADD) libpulsecore.la
756 libpstream_la_SOURCES = pulsecore/pstream.c pulsecore/pstream.h
757 libpstream_la_LDFLAGS = -avoid-version
758 libpstream_la_LIBADD = $(AM_LIBADD) libpulsecore.la libpacket.la libiochannel.la $(WINSOCK_LIBS)
760 libpstream_util_la_SOURCES = pulsecore/pstream-util.c pulsecore/pstream-util.h
761 libpstream_util_la_LDFLAGS = -avoid-version
762 libpstream_util_la_LIBADD = $(AM_LIBADD) libpacket.la libpstream.la libtagstruct.la
764 libpdispatch_la_SOURCES = pulsecore/pdispatch.c pulsecore/pdispatch.h
765 libpdispatch_la_LDFLAGS = -avoid-version
766 libpdispatch_la_LIBADD = $(AM_LIBADD) libtagstruct.la libpulsecore.la
768 libiochannel_la_SOURCES = pulsecore/iochannel.c pulsecore/iochannel.h
769 libiochannel_la_LDFLAGS = -avoid-version
770 libiochannel_la_LIBADD = $(AM_LIBADD) libsocket-util.la libpulsecore.la $(WINSOCK_LIBS)
772 libpacket_la_SOURCES = pulsecore/packet.c pulsecore/packet.h
773 libpacket_la_LDFLAGS = -avoid-version
774 libpacket_la_LIBADD = $(AM_LIBADD) libpulsecore.la
776 libioline_la_SOURCES = pulsecore/ioline.c pulsecore/ioline.h
777 libioline_la_LDFLAGS = -avoid-version
778 libioline_la_LIBADD = $(AM_LIBADD) libiochannel.la libpulsecore.la
780 libcli_la_SOURCES = pulsecore/cli.c pulsecore/cli.h
781 libcli_la_CPPFLAGS = $(AM_CPPFLAGS)
782 libcli_la_LDFLAGS = -avoid-version
783 libcli_la_LIBADD = $(AM_LIBADD) libiochannel.la libioline.la libpulsecore.la
785 libstrlist_la_SOURCES = pulsecore/strlist.c pulsecore/strlist.h
786 libstrlist_la_LDFLAGS = -avoid-version
787 libstrlist_la_LIBADD = $(AM_LIBADD) libpulsecore.la
789 libprotocol_cli_la_SOURCES = pulsecore/protocol-cli.c pulsecore/protocol-cli.h
790 libprotocol_cli_la_LDFLAGS = -avoid-version
791 libprotocol_cli_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libcli.la libpulsecore.la
793 libprotocol_http_la_SOURCES = pulsecore/protocol-http.c pulsecore/protocol-http.h
794 libprotocol_http_la_LDFLAGS = -avoid-version
795 libprotocol_http_la_LIBADD = $(AM_LIBADD) libsocket-server.la libioline.la libpulsecore.la libiochannel.la
797 libprotocol_native_la_SOURCES = pulsecore/protocol-native.c pulsecore/protocol-native.h pulsecore/native-common.h
798 libprotocol_native_la_LDFLAGS = -avoid-version
799 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
801 libtagstruct_la_SOURCES = pulsecore/tagstruct.c pulsecore/tagstruct.h
802 libtagstruct_la_LDFLAGS = -avoid-version
803 libtagstruct_la_LIBADD = $(AM_LIBADD) libpulsecore.la $(WINSOCK_LIBS)
805 libprotocol_esound_la_SOURCES = pulsecore/protocol-esound.c pulsecore/protocol-esound.h pulsecore/esound.h
806 libprotocol_esound_la_LDFLAGS = -avoid-version
807 libprotocol_esound_la_LIBADD = $(AM_LIBADD) libsocket-server.la libiochannel.la libauthkey.la libpulsecore.la libipacl.la
809 libauthkey_la_SOURCES = pulsecore/authkey.c pulsecore/authkey.h
810 libauthkey_la_LDFLAGS = -avoid-version
811 libauthkey_la_LIBADD = $(AM_LIBADD) libpulsecore.la
813 libauthkey_prop_la_SOURCES = pulsecore/authkey-prop.c pulsecore/authkey-prop.h
814 libauthkey_prop_la_LDFLAGS = -avoid-version
815 libauthkey_prop_la_LIBADD = $(AM_LIBADD) libpulsecore.la
817 libsocket_util_la_SOURCES = \
818 pulsecore/inet_ntop.c pulsecore/inet_ntop.h \
819 pulsecore/socket-util.c pulsecore/socket-util.h
820 libsocket_util_la_LDFLAGS = -avoid-version
821 libsocket_util_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS) libpulsecore.la
823 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
824 librtp_la_LDFLAGS = -avoid-version
825 librtp_la_LIBADD = $(AM_LIBADD) libpulsecore.la
829 libx11wrap_la_SOURCES = pulsecore/x11wrap.c pulsecore/x11wrap.h
830 libx11wrap_la_LDFLAGS = -avoid-version
831 libx11wrap_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
832 libx11wrap_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS) libpulsecore.la
834 libx11prop_la_SOURCES = pulsecore/x11prop.c pulsecore/x11prop.h
835 libx11prop_la_LDFLAGS = -avoid-version
836 libx11prop_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
837 libx11prop_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
841 libavahi_wrap_la_SOURCES = pulsecore/avahi-wrap.c pulsecore/avahi-wrap.h
842 libavahi_wrap_la_LDFLAGS = -avoid-version
843 libavahi_wrap_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
844 libavahi_wrap_la_LIBADD = $(AM_LIBADD) $(AVAHI_CFLAGS) libpulsecore.la
846 ###################################
847 # Plug-in libraries #
848 ###################################
850 modlibexec_LTLIBRARIES += \
852 module-cli-protocol-tcp.la \
853 module-simple-protocol-tcp.la \
854 module-esound-protocol-tcp.la \
855 module-native-protocol-tcp.la \
856 module-native-protocol-fd.la \
859 module-tunnel-sink.la \
860 module-tunnel-source.la \
861 module-null-sink.la \
862 module-esound-sink.la \
863 module-http-protocol-tcp.la \
865 module-volume-restore.la \
866 module-rescue-streams.la
868 # See comment at librtp.la above
870 modlibexec_LTLIBRARIES += \
876 modlibexec_LTLIBRARIES += \
877 module-cli-protocol-unix.la \
878 module-simple-protocol-unix.la \
879 module-esound-protocol-unix.la \
880 module-native-protocol-unix.la \
881 module-http-protocol-unix.la
885 modlibexec_LTLIBRARIES += \
886 module-pipe-sink.la \
887 module-pipe-source.la
891 modlibexec_LTLIBRARIES += \
892 module-esound-compat-spawnfd.la \
893 module-esound-compat-spawnpid.la
897 modlibexec_LTLIBRARIES += \
902 modlibexec_LTLIBRARIES += \
904 module-x11-publish.la
908 modlibexec_LTLIBRARIES += \
915 modlibexec_LTLIBRARIES += \
917 module-alsa-sink.la \
918 module-alsa-source.la
922 modlibexec_LTLIBRARIES += \
927 modlibexec_LTLIBRARIES += \
928 module-zeroconf-publish.la
932 modlibexec_LTLIBRARIES += \
937 modlibexec_LTLIBRARIES += \
938 module-mmkbd-evdev.la
942 modlibexec_LTLIBRARIES += \
943 module-jack-sink.la \
944 module-jack-source.la
948 modlibexec_LTLIBRARIES += \
951 pulselibexec_PROGRAMS = \
956 modlibexec_LTLIBRARIES += \
961 modlibexec_LTLIBRARIES += \
966 # These are generated by a M4 script
969 modules/module-cli-symdef.h \
970 modules/module-cli-protocol-tcp-symdef.h \
971 modules/module-cli-protocol-unix-symdef.h \
972 modules/module-pipe-sink-symdef.h \
973 modules/module-pipe-source-symdef.h \
974 modules/module-simple-protocol-tcp-symdef.h \
975 modules/module-simple-protocol-unix-symdef.h \
976 modules/module-esound-protocol-tcp-symdef.h \
977 modules/module-esound-protocol-unix-symdef.h \
978 modules/module-native-protocol-tcp-symdef.h \
979 modules/module-native-protocol-unix-symdef.h \
980 modules/module-native-protocol-fd-symdef.h \
981 modules/module-sine-symdef.h \
982 modules/module-combine-symdef.h \
983 modules/module-esound-compat-spawnfd-symdef.h \
984 modules/module-esound-compat-spawnpid-symdef.h \
985 modules/module-match-symdef.h \
986 modules/module-tunnel-sink-symdef.h \
987 modules/module-tunnel-source-symdef.h \
988 modules/module-null-sink-symdef.h \
989 modules/module-esound-sink-symdef.h \
990 modules/module-zeroconf-publish-symdef.h \
991 modules/module-lirc-symdef.h \
992 modules/module-mmkbd-evdev-symdef.h \
993 modules/module-http-protocol-tcp-symdef.h \
994 modules/module-http-protocol-unix-symdef.h \
995 modules/module-x11-bell-symdef.h \
996 modules/module-x11-publish-symdef.h \
997 modules/module-oss-symdef.h \
998 modules/module-oss-mmap-symdef.h \
999 modules/module-alsa-sink-symdef.h \
1000 modules/module-alsa-source-symdef.h \
1001 modules/module-solaris-symdef.h \
1002 modules/module-waveout-symdef.h \
1003 modules/module-detect-symdef.h \
1004 modules/rtp/module-rtp-send-symdef.h \
1005 modules/rtp/module-rtp-recv-symdef.h \
1006 modules/module-jack-sink-symdef.h \
1007 modules/module-jack-source-symdef.h \
1008 modules/module-volume-restore-symdef.h \
1009 modules/module-rescue-streams-symdef.h \
1010 modules/module-hal-detect-symdef.h \
1011 modules/gconf/module-gconf-symdef.h
1013 EXTRA_DIST += $(SYMDEF_FILES)
1014 BUILT_SOURCES += $(SYMDEF_FILES)
1016 $(SYMDEF_FILES): modules/module-defs.h.m4
1018 -mkdir modules/gconf
1020 $(M4) -Dfname="$@" $< > $@
1024 module_simple_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1025 module_simple_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1026 module_simple_protocol_tcp_la_LDFLAGS = -module -avoid-version
1027 module_simple_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-simple.la libsocket-server.la
1029 module_simple_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1030 module_simple_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_SIMPLE $(AM_CFLAGS)
1031 module_simple_protocol_unix_la_LDFLAGS = -module -avoid-version
1032 module_simple_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-simple.la libsocket-server.la libsocket-util.la
1036 module_cli_la_SOURCES = modules/module-cli.c
1037 module_cli_la_LDFLAGS = -module -avoid-version
1038 module_cli_la_LIBADD = $(AM_LIBADD) libcli.la libiochannel.la libpulsecore.la
1040 module_cli_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1041 module_cli_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1042 module_cli_protocol_tcp_la_LDFLAGS = -module -avoid-version
1043 module_cli_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-cli.la libsocket-server.la
1045 module_cli_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1046 module_cli_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_CLI $(AM_CFLAGS)
1047 module_cli_protocol_unix_la_LDFLAGS = -module -avoid-version
1048 module_cli_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-cli.la libsocket-server.la libsocket-util.la
1052 module_http_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1053 module_http_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1054 module_http_protocol_tcp_la_LDFLAGS = -module -avoid-version
1055 module_http_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-http.la libsocket-server.la
1057 module_http_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1058 module_http_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_HTTP $(AM_CFLAGS)
1059 module_http_protocol_unix_la_LDFLAGS = -module -avoid-version
1060 module_http_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-http.la libsocket-server.la libsocket-util.la
1064 module_native_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1065 module_native_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1066 module_native_protocol_tcp_la_LDFLAGS = -module -avoid-version
1067 module_native_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-native.la libsocket-server.la
1069 module_native_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1070 module_native_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_NATIVE $(AM_CFLAGS)
1071 module_native_protocol_unix_la_LDFLAGS = -module -avoid-version
1072 module_native_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-native.la libsocket-server.la libsocket-util.la
1074 module_native_protocol_fd_la_SOURCES = modules/module-native-protocol-fd.c
1075 module_native_protocol_fd_la_CFLAGS = $(AM_CFLAGS)
1076 module_native_protocol_fd_la_LDFLAGS = -module -avoid-version
1077 module_native_protocol_fd_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-native.la libsocket-server.la libsocket-util.la libiochannel.la
1081 module_esound_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
1082 module_esound_protocol_tcp_la_CFLAGS = -DUSE_TCP_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1083 module_esound_protocol_tcp_la_LDFLAGS = -module -avoid-version
1084 module_esound_protocol_tcp_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-esound.la libsocket-server.la
1086 module_esound_protocol_unix_la_SOURCES = modules/module-protocol-stub.c
1087 module_esound_protocol_unix_la_CFLAGS = -DUSE_UNIX_SOCKETS -DUSE_PROTOCOL_ESOUND $(AM_CFLAGS)
1088 module_esound_protocol_unix_la_LDFLAGS = -module -avoid-version
1089 module_esound_protocol_unix_la_LIBADD = $(AM_LIBADD) libpulsecore.la libprotocol-esound.la libsocket-server.la libsocket-util.la
1091 module_esound_compat_spawnfd_la_SOURCES = modules/module-esound-compat-spawnfd.c
1092 module_esound_compat_spawnfd_la_LDFLAGS = -module -avoid-version
1093 module_esound_compat_spawnfd_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1095 module_esound_compat_spawnpid_la_SOURCES = modules/module-esound-compat-spawnpid.c
1096 module_esound_compat_spawnpid_la_LDFLAGS = -module -avoid-version
1097 module_esound_compat_spawnpid_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1099 module_esound_sink_la_SOURCES = modules/module-esound-sink.c
1100 module_esound_sink_la_LDFLAGS = -module -avoid-version
1101 module_esound_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la libsocket-client.la libauthkey.la
1105 module_pipe_sink_la_SOURCES = modules/module-pipe-sink.c
1106 module_pipe_sink_la_LDFLAGS = -module -avoid-version
1107 module_pipe_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la
1109 module_pipe_source_la_SOURCES = modules/module-pipe-source.c
1110 module_pipe_source_la_LDFLAGS = -module -avoid-version
1111 module_pipe_source_la_LIBADD = $(AM_LIBADD) libpulsecore.la libiochannel.la
1113 # Fake sources/sinks
1115 module_sine_la_SOURCES = modules/module-sine.c
1116 module_sine_la_LDFLAGS = -module -avoid-version
1117 module_sine_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1119 module_null_sink_la_SOURCES = modules/module-null-sink.c
1120 module_null_sink_la_LDFLAGS = -module -avoid-version
1121 module_null_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1125 module_combine_la_SOURCES = modules/module-combine.c
1126 module_combine_la_LDFLAGS = -module -avoid-version
1127 module_combine_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1129 module_match_la_SOURCES = modules/module-match.c
1130 module_match_la_LDFLAGS = -module -avoid-version
1131 module_match_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1133 module_tunnel_sink_la_SOURCES = modules/module-tunnel.c
1134 module_tunnel_sink_la_CFLAGS = -DTUNNEL_SINK=1 $(AM_CFLAGS)
1135 module_tunnel_sink_la_LDFLAGS = -module -avoid-version
1136 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
1138 module_tunnel_source_la_SOURCES = modules/module-tunnel.c
1139 module_tunnel_source_la_LDFLAGS = -module -avoid-version
1140 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
1144 module_x11_bell_la_SOURCES = modules/module-x11-bell.c
1145 module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
1146 module_x11_bell_la_LDFLAGS = -module -avoid-version
1147 module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS) libx11wrap.la libpulsecore.la
1149 module_x11_publish_la_SOURCES = modules/module-x11-publish.c
1150 module_x11_publish_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
1151 module_x11_publish_la_LDFLAGS = -module -avoid-version
1152 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
1156 liboss_util_la_SOURCES = modules/oss-util.c modules/oss-util.h
1157 liboss_util_la_LDFLAGS = -avoid-version
1158 liboss_util_la_LIBADD = libpulsecore.la
1160 module_oss_la_SOURCES = modules/module-oss.c
1161 module_oss_la_LDFLAGS = -module -avoid-version
1162 module_oss_la_LIBADD = $(AM_LIBADD) libiochannel.la liboss-util.la libpulsecore.la
1164 module_oss_mmap_la_SOURCES = modules/module-oss-mmap.c
1165 module_oss_mmap_la_LDFLAGS = -module -avoid-version
1166 module_oss_mmap_la_LIBADD = $(AM_LIBADD) liboss-util.la libpulsecore.la
1170 libalsa_util_la_SOURCES = modules/alsa-util.c modules/alsa-util.h
1171 libalsa_util_la_LDFLAGS = -avoid-version
1172 libalsa_util_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libpulsecore.la
1173 libalsa_util_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1175 module_alsa_sink_la_SOURCES = modules/module-alsa-sink.c
1176 module_alsa_sink_la_LDFLAGS = -module -avoid-version
1177 module_alsa_sink_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore.la
1178 module_alsa_sink_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1180 module_alsa_source_la_SOURCES = modules/module-alsa-source.c
1181 module_alsa_source_la_LDFLAGS = -module -avoid-version
1182 module_alsa_source_la_LIBADD = $(AM_LIBADD) $(ASOUNDLIB_LIBS) libalsa-util.la libpulsecore.la
1183 module_alsa_source_la_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
1187 module_solaris_la_SOURCES = modules/module-solaris.c
1188 module_solaris_la_LDFLAGS = -module -avoid-version
1189 module_solaris_la_LIBADD = $(AM_LIBADD) libiochannel.la libpulsecore.la
1193 module_zeroconf_publish_la_SOURCES = modules/module-zeroconf-publish.c
1194 module_zeroconf_publish_la_LDFLAGS = -module -avoid-version
1195 module_zeroconf_publish_la_LIBADD = $(AM_LIBADD) $(AVAHI_LIBS) libavahi-wrap.la libpulsecore.la
1196 module_zeroconf_publish_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
1200 module_lirc_la_SOURCES = modules/module-lirc.c
1201 module_lirc_la_LDFLAGS = -module -avoid-version
1202 module_lirc_la_LIBADD = $(AM_LIBADD) $(LIRC_LIBS) libpulsecore.la
1203 module_lirc_la_CFLAGS = $(AM_CFLAGS) $(LIRC_CFLAGS)
1207 module_mmkbd_evdev_la_SOURCES = modules/module-mmkbd-evdev.c
1208 module_mmkbd_evdev_la_LDFLAGS = -module -avoid-version
1209 module_mmkbd_evdev_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1210 module_mmkbd_evdev_la_CFLAGS = $(AM_CFLAGS)
1214 module_waveout_la_SOURCES = modules/module-waveout.c
1215 module_waveout_la_LDFLAGS = -module -avoid-version
1216 module_waveout_la_LIBADD = $(AM_LIBADD) libpulsecore.la -lwinmm
1217 module_waveout_la_CFLAGS = $(AM_CFLAGS)
1219 # Hardware autodetection module
1220 module_detect_la_SOURCES = modules/module-detect.c
1221 module_detect_la_LDFLAGS = -module -avoid-version
1222 module_detect_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1223 module_detect_la_CFLAGS = $(AM_CFLAGS)
1225 # Volume restore module
1226 module_volume_restore_la_SOURCES = modules/module-volume-restore.c
1227 module_volume_restore_la_LDFLAGS = -module -avoid-version
1228 module_volume_restore_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1229 module_volume_restore_la_CFLAGS = $(AM_CFLAGS)
1231 # Rescue streams module
1232 module_rescue_streams_la_SOURCES = modules/module-rescue-streams.c
1233 module_rescue_streams_la_LDFLAGS = -module -avoid-version
1234 module_rescue_streams_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1235 module_rescue_streams_la_CFLAGS = $(AM_CFLAGS)
1238 module_rtp_send_la_SOURCES = modules/rtp/module-rtp-send.c
1239 module_rtp_send_la_LDFLAGS = -module -avoid-version
1240 module_rtp_send_la_LIBADD = $(AM_LIBADD) libpulsecore.la librtp.la
1241 module_rtp_send_la_CFLAGS = $(AM_CFLAGS)
1243 module_rtp_recv_la_SOURCES = modules/rtp/module-rtp-recv.c
1244 module_rtp_recv_la_LDFLAGS = -module -avoid-version
1245 module_rtp_recv_la_LIBADD = $(AM_LIBADD) libpulsecore.la librtp.la
1246 module_rtp_recv_la_CFLAGS = $(AM_CFLAGS)
1250 module_jack_sink_la_SOURCES = modules/module-jack-sink.c
1251 module_jack_sink_la_LDFLAGS = -module -avoid-version
1252 module_jack_sink_la_LIBADD = $(AM_LIBADD) libpulsecore.la $(JACK_LIBS)
1253 module_jack_sink_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1255 module_jack_source_la_SOURCES = modules/module-jack-source.c
1256 module_jack_source_la_LDFLAGS = -module -avoid-version
1257 module_jack_source_la_LIBADD = $(AM_LIBADD) libpulsecore.la $(JACK_LIBS)
1258 module_jack_source_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
1261 libdbus_util_la_SOURCES = modules/dbus-util.c modules/dbus-util.h
1262 libdbus_util_la_LDFLAGS = -avoid-version
1263 libdbus_util_la_LIBADD = $(AM_LIBADD) $(HAL_LIBS) libpulsecore.la
1264 libdbus_util_la_CFLAGS = $(AM_CFLAGS) $(HAL_CFLAGS)
1266 module_hal_detect_la_SOURCES = modules/module-hal-detect.c
1267 module_hal_detect_la_LDFLAGS = -module -avoid-version
1268 module_hal_detect_la_LIBADD = $(AM_LIBADD) $(HAL_LIBS) libpulsecore.la libdbus-util.la
1269 module_hal_detect_la_CFLAGS = $(AM_CFLAGS) $(HAL_CFLAGS)
1272 module_gconf_la_SOURCES = modules/gconf/module-gconf.c
1273 module_gconf_la_LDFLAGS = -module -avoid-version
1274 module_gconf_la_LIBADD = $(AM_LIBADD) libpulsecore.la
1275 module_gconf_la_CFLAGS = $(AM_CFLAGS) -DPA_GCONF_HELPER=\"$(pulselibexecdir)/gconf-helper\"
1277 gconf_helper_SOURCES = modules/gconf/gconf-helper.c
1278 gconf_helper_LDADD = $(AM_LDADD) $(GCONF_LIBS)
1279 gconf_helper_CFLAGS = $(AM_CFLAGS) $(GCONF_CFLAGS)
1280 gconf_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
1282 ###################################
1283 # Some minor stuff #
1284 ###################################
1286 suid: pulseaudio .libs/lt-pulseaudio
1290 CLEANFILES = esdcompat client.conf default.pa daemon.conf
1292 esdcompat: daemon/esdcompat.in Makefile
1293 sed -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1294 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1295 -e 's,@PA_BINARY\@,$(PA_BINARY),g' < $< > $@
1298 client.conf: pulse/client.conf.in Makefile
1299 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' < $< > $@
1302 default.pa: daemon/default.pa.win32
1305 default.pa: daemon/default.pa.in Makefile
1306 sed -e 's,@PA_BINARY\@,$(PA_BINARY),g' \
1307 -e 's,@HAVE_HAL_TRUE\@,@HAVE_HAL_TRUE@,g' \
1308 -e 's,@HAVE_HAL_FALSE\@,@HAVE_HAL_FALSE@,g' < $< > $@
1311 daemon.conf: daemon/daemon.conf.in Makefile
1312 sed -e 's,@PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
1313 -e 's,@PA_DEFAULT_CONFIG_FILE\@,$(DEFAULT_CONFIG_DIR),g' < $< > $@
1316 chown root $(DESTDIR)$(bindir)/pulseaudio ; true
1317 chmod u+s $(DESTDIR)$(bindir)/pulseaudio
1318 ln -sf pacat $(DESTDIR)$(bindir)/parec
1319 rm -f $(DESTDIR)$(modlibexecdir)/*.a
1320 rm -f $(DESTDIR)$(libdir)/libpulsedsp.a
1321 rm -f $(DESTDIR)$(libdir)/libpulsedsp.la
1324 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