summaryrefslogtreecommitdiffstats
path: root/audio/Makefile.am
blob: 16c4f2457d37d219c4b6803a2a27dbb391e2b5ad (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

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

conf_DATA = headset.service
endif

servicedir = $(libdir)/bluetooth

service_PROGRAMS = bluetoothd-service-headset

bluetoothd_service_headset_SOURCES = headset.c

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

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
libasound_module_pcm_bluetooth_la_LDFLAGS = -module -avoid-version -export-dynamic
libasound_module_pcm_bluetooth_la_LIBADD = @ALSA_LIBS@

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

noinst_PROGRAMS = bluetoothd-service-audio

bluetoothd_service_audio_SOURCES = main.c manager.h manager.c

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

AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @ALSA_CFLAGS@ @SBC_CFLAGS@

INCLUDES = -I$(top_srcdir)/common

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

MAINTAINERCLEANFILES = Makefile.in