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