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