summaryrefslogtreecommitdiffstats
path: root/audio/Makefile.am
blob: 7d23d83a67d403dd5b0915e93cd409f369167a63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

if AUDIOSERVICE
if CONFIGFILES
confdir = $(sysconfdir)/bluetooth

conf_DATA = audio.service
endif

servicedir = $(libdir)/bluetooth

service_PROGRAMS = bluetoothd-service-audio

bluetoothd_service_audio_SOURCES = main.c \
	manager.h manager.c headset.h headset.c ipc.h unix.h unix.c \
	error.h error.c device.h device.c gateway.h gateway.c \
	sink.c sink.h avdtp.c avdtp.h a2dp.c a2dp.h

bluetoothd_service_audio_LDADD = $(top_builddir)/common/libhelper.a \
				@GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@

if ALSA
alsadir = $(libdir)/alsa-lib

alsa_LTLIBRARIES = libasound_module_pcm_bluetooth.la libasound_module_ctl_bluetooth.la

libasound_module_pcm_bluetooth_la_SOURCES = pcm_bluetooth.c ipc.h
libasound_module_pcm_bluetooth_la_LDFLAGS = -module -avoid-version -export-dynamic
libasound_module_pcm_bluetooth_la_LIBADD = @SBC_LIBS@ @ALSA_LIBS@
libasound_module_pcm_bluetooth_la_CFLAGS = @ALSA_CFLAGS@ @SBC_CFLAGS@

libasound_module_ctl_bluetooth_la_SOURCES = ctl_bluetooth.c ipc.h
libasound_module_ctl_bluetooth_la_LDFLAGS = -module -avoid-version -export-dynamic
libasound_module_ctl_bluetooth_la_LIBADD = @ALSA_LIBS@
libasound_module_ctl_bluetooth_la_CFLAGS = @ALSA_CFLAGS@
endif

if PULSE
pulsedir = $(libdir)/pulse-0.9/modules

noinst_LTLIBRARIES = module-bluetooth-sink.la

module_bluetooth_sink_la_SOURCES = module-bluetooth-sink.c ipc.h
module_bluetooth_sink_la_LDFLAGS = -module -avoid-version
module_bluetooth_sink_la_LIBADD = @SBC_LIBS@ @PULSE_LIBS@
module_bluetooth_sink_la_CFLAGS = @PULSE_CFLAGS@ @SBC_CFLAGS@
endif

if GSTREAMER
gstreamerdir = $(libdir)/gstreamer-0.10

gstreamer_LTLIBRARIES = libgstbluetooth.la

libgstbluetooth_la_SOURCES = gstbluetooth.c ipc.h \
				gstsbcenc.h gstsbcenc.c \
				gstsbcdec.h gstsbcdec.c \
				gstsbcparse.h gstsbcparse.c \
				gsta2dpsink.h gsta2dpsink.c
libgstbluetooth_la_LDFLAGS = -module -avoid-version -export-dynamic
libgstbluetooth_la_LIBADD = @SBC_LIBS@ @GSTREAMER_LIBS@ -lgstaudio-0.10
libgstbluetooth_la_CFLAGS = @GSTREAMER_CFLAGS@ @SBC_CFLAGS@
endif
endif

AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@

INCLUDES = -I$(top_srcdir)/common

EXTRA_DIST = audio.service audio.conf audio-api.txt test-audio asound.conf

MAINTAINERCLEANFILES = Makefile.in