• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2BUILT_SOURCES = telephony.c
3
4if AUDIOPLUGIN
5plugindir = $(libdir)/bluetooth/plugins
6
7plugin_LTLIBRARIES = audio.la
8
9audio_la_SOURCES = main.c \
10	ipc.h ipc.c unix.h unix.c manager.h manager.c telephony.h \
11	device.h device.c headset.h headset.c gateway.h gateway.c \
12	avdtp.h avdtp.c a2dp.h a2dp.c sink.h sink.c source.h source.c \
13	control.h control.c
14
15nodist_audio_la_SOURCES = $(BUILT_SOURCES)
16
17audio_la_LDFLAGS = -module -avoid-version -no-undefined
18
19LDADD = $(top_builddir)/common/libhelper.a \
20		@GDBUS_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
21
22if ALSA
23alsadir = $(libdir)/alsa-lib
24
25alsa_LTLIBRARIES = libasound_module_pcm_bluetooth.la libasound_module_ctl_bluetooth.la
26
27libasound_module_pcm_bluetooth_la_SOURCES = pcm_bluetooth.c rtp.h ipc.h ipc.c
28libasound_module_pcm_bluetooth_la_LDFLAGS = -module -avoid-version #-export-symbols-regex [_]*snd_pcm_.*
29libasound_module_pcm_bluetooth_la_LIBADD = @SBC_LIBS@ @BLUEZ_LIBS@ @ALSA_LIBS@
30libasound_module_pcm_bluetooth_la_CFLAGS = @ALSA_CFLAGS@ @BLUEZ_CFLAGS@ @SBC_CFLAGS@
31
32libasound_module_ctl_bluetooth_la_SOURCES = ctl_bluetooth.c rtp.h ipc.h ipc.c
33libasound_module_ctl_bluetooth_la_LDFLAGS = -module -avoid-version #-export-symbols-regex [_]*snd_ctl_.*
34libasound_module_ctl_bluetooth_la_LIBADD = @BLUEZ_LIBS@ @ALSA_LIBS@
35libasound_module_ctl_bluetooth_la_CFLAGS = @ALSA_CFLAGS@ @BLUEZ_CFLAGS@
36
37if CONFIGFILES
38alsaconfdir = $(sysconfdir)/alsa
39
40alsaconf_DATA = bluetooth.conf
41endif
42endif
43
44if GSTREAMER
45gstreamerdir = $(libdir)/gstreamer-0.10
46
47gstreamer_LTLIBRARIES = libgstbluetooth.la
48
49libgstbluetooth_la_SOURCES = gstbluetooth.c \
50				gstsbcenc.h gstsbcenc.c \
51				gstsbcdec.h gstsbcdec.c \
52				gstsbcparse.h gstsbcparse.c \
53				gstavdtpsink.h gstavdtpsink.c \
54				gsta2dpsink.h gsta2dpsink.c \
55				gstsbcutil.h gstsbcutil.c \
56				gstrtpsbcpay.h gstrtpsbcpay.c \
57				rtp.h ipc.h ipc.c
58libgstbluetooth_la_LDFLAGS = -module -avoid-version
59libgstbluetooth_la_LIBADD = @SBC_LIBS@ @BLUEZ_LIBS@ @GSTREAMER_LIBS@ \
60						-lgstaudio-0.10 -lgstrtp-0.10
61libgstbluetooth_la_CFLAGS = -fvisibility=hidden -fno-strict-aliasing \
62			 @GSTREAMER_CFLAGS@ @BLUEZ_CFLAGS@ @SBC_CFLAGS@
63endif
64endif
65
66noinst_LTLIBRARIES = libipc.la
67
68libipc_la_SOURCES = ipc.h ipc.c
69
70noinst_PROGRAMS = ipctest
71
72ipctest_LDADD= libipc.la @SBC_LIBS@ @GLIB_LIBS@
73
74AM_CFLAGS = -fvisibility=hidden @SBC_CFLAGS@ \
75		@BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@
76
77CLEANFILES = $(BUILT_SOURCES)
78
79INCLUDES = -I$(top_srcdir)/common -I$(top_srcdir)/src
80
81EXTRA_DIST = audio.conf telephony-dummy.c telephony-maemo.c telephony-ofono.c \
82		bluetooth.conf
83
84MAINTAINERCLEANFILES = Makefile.in
85
86telephony.c: @TELEPHONY_DRIVER@
87	@if [ ! -e $@ ] ; then $(LN_S) $< $@ ; fi
88