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