2002-03-09 05:10:06 +08:00
|
|
|
|
2009-08-17 05:52:28 +08:00
|
|
|
AM_MAKEFLAGS = --no-print-directory
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
lib_LTLIBRARIES =
|
|
|
|
|
2011-07-21 05:47:49 +08:00
|
|
|
noinst_LIBRARIES =
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
noinst_LTLIBRARIES =
|
|
|
|
|
|
|
|
bin_PROGRAMS =
|
|
|
|
|
|
|
|
sbin_PROGRAMS =
|
|
|
|
|
|
|
|
noinst_PROGRAMS =
|
|
|
|
|
|
|
|
dist_man_MANS =
|
|
|
|
|
|
|
|
dist_noinst_MANS =
|
|
|
|
|
|
|
|
CLEANFILES =
|
|
|
|
|
|
|
|
EXTRA_DIST =
|
|
|
|
|
|
|
|
includedir = @includedir@/bluetooth
|
|
|
|
|
|
|
|
include_HEADERS =
|
|
|
|
|
2011-07-02 11:35:10 +08:00
|
|
|
if DATAFILES
|
2009-08-25 03:42:37 +08:00
|
|
|
dbusdir = $(sysconfdir)/dbus-1/system.d
|
|
|
|
|
|
|
|
dbus_DATA = src/bluetooth.conf
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
confdir = $(sysconfdir)/bluetooth
|
|
|
|
|
|
|
|
conf_DATA =
|
|
|
|
|
2009-08-25 03:42:37 +08:00
|
|
|
statedir = $(localstatedir)/lib/bluetooth
|
|
|
|
|
|
|
|
state_DATA =
|
2011-07-02 11:35:12 +08:00
|
|
|
|
|
|
|
if SYSTEMD
|
|
|
|
systemdunitdir = @SYSTEMD_UNITDIR@
|
|
|
|
|
|
|
|
systemdunit_DATA = src/bluetooth.service
|
|
|
|
endif
|
2009-08-25 03:42:37 +08:00
|
|
|
endif
|
|
|
|
|
2011-08-22 21:00:21 +08:00
|
|
|
plugindir = $(libdir)/bluetooth/plugins
|
|
|
|
|
2011-08-15 05:39:14 +08:00
|
|
|
if MAINTAINER_MODE
|
2011-08-22 21:00:21 +08:00
|
|
|
build_plugindir = $(abs_top_srcdir)/plugins/.libs
|
2011-08-15 05:39:14 +08:00
|
|
|
else
|
2011-08-22 21:00:21 +08:00
|
|
|
build_plugindir = $(plugindir)
|
2011-08-15 05:39:14 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
plugin_LTLIBRARIES =
|
|
|
|
|
|
|
|
|
2010-09-20 15:42:59 +08:00
|
|
|
lib_headers = lib/bluetooth.h lib/hci.h lib/hci_lib.h lib/mgmt.h \
|
2011-03-15 06:10:56 +08:00
|
|
|
lib/sco.h lib/l2cap.h lib/sdp.h lib/sdp_lib.h lib/uuid.h \
|
2012-03-06 08:36:22 +08:00
|
|
|
lib/rfcomm.h lib/bnep.h lib/cmtp.h lib/hidp.h lib/a2mp.h
|
2009-08-23 15:40:59 +08:00
|
|
|
local_headers = $(foreach file,$(lib_headers), lib/bluetooth/$(notdir $(file)))
|
|
|
|
|
2011-11-13 07:25:35 +08:00
|
|
|
BUILT_SOURCES = $(local_headers) src/builtin.h
|
2011-07-09 23:10:53 +08:00
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
include_HEADERS += $(lib_headers)
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += lib/libbluetooth.la
|
|
|
|
|
|
|
|
lib_libbluetooth_la_SOURCES = $(lib_headers) \
|
2011-03-16 10:54:49 +08:00
|
|
|
lib/bluetooth.c lib/hci.c lib/sdp.c lib/uuid.c
|
2012-03-07 01:02:51 +08:00
|
|
|
lib_libbluetooth_la_LDFLAGS = -version-info 15:0:12
|
2009-08-23 15:40:59 +08:00
|
|
|
lib_libbluetooth_la_DEPENDENCIES = $(local_headers)
|
|
|
|
|
2011-08-29 07:07:43 +08:00
|
|
|
noinst_LTLIBRARIES += lib/libbluetooth-private.la
|
|
|
|
|
|
|
|
lib_libbluetooth_private_la_SOURCES = $(lib_libbluetooth_la_SOURCES)
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
if SBC
|
|
|
|
noinst_LTLIBRARIES += sbc/libsbc.la
|
|
|
|
|
|
|
|
sbc_libsbc_la_SOURCES = sbc/sbc.h sbc/sbc.c sbc/sbc_math.h sbc/sbc_tables.h \
|
|
|
|
sbc/sbc_primitives.h sbc/sbc_primitives.c \
|
|
|
|
sbc/sbc_primitives_mmx.h sbc/sbc_primitives_mmx.c \
|
2010-11-18 21:33:16 +08:00
|
|
|
sbc/sbc_primitives_iwmmxt.h sbc/sbc_primitives_iwmmxt.c \
|
2010-07-02 20:25:42 +08:00
|
|
|
sbc/sbc_primitives_neon.h sbc/sbc_primitives_neon.c \
|
|
|
|
sbc/sbc_primitives_armv6.h sbc/sbc_primitives_armv6.c
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-11-13 12:48:44 +08:00
|
|
|
sbc_libsbc_la_CFLAGS = $(AM_CFLAGS) -finline-functions -fgcse-after-reload \
|
2009-08-23 15:40:59 +08:00
|
|
|
-funswitch-loops -funroll-loops
|
|
|
|
|
|
|
|
noinst_PROGRAMS += sbc/sbcinfo sbc/sbcdec sbc/sbcenc
|
|
|
|
|
|
|
|
sbc_sbcdec_SOURCES = sbc/sbcdec.c sbc/formats.h
|
|
|
|
sbc_sbcdec_LDADD = sbc/libsbc.la
|
|
|
|
|
|
|
|
sbc_sbcenc_SOURCES = sbc/sbcenc.c sbc/formats.h
|
|
|
|
sbc_sbcenc_LDADD = sbc/libsbc.la
|
|
|
|
|
|
|
|
if SNDFILE
|
|
|
|
noinst_PROGRAMS += sbc/sbctester
|
|
|
|
|
2010-02-15 18:41:40 +08:00
|
|
|
sbc_sbctester_LDADD = @SNDFILE_LIBS@ -lm
|
2011-11-13 12:48:44 +08:00
|
|
|
sbc_sbctest_CFLAGS = $(AM_CFLAGS) @SNDFILE_CFLAGS@
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-04-04 00:01:31 +08:00
|
|
|
attrib_sources = attrib/att.h attrib/att-database.h attrib/att.c \
|
|
|
|
attrib/gatt.h attrib/gatt.c \
|
2011-03-29 06:40:46 +08:00
|
|
|
attrib/gattrib.h attrib/gattrib.c attrib/client.h \
|
2011-11-04 22:30:00 +08:00
|
|
|
attrib/client.c attrib/gatt-service.h attrib/gatt-service.c
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2010-09-10 00:31:24 +08:00
|
|
|
gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \
|
|
|
|
gdbus/object.c gdbus/polkit.c
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2010-09-13 16:17:31 +08:00
|
|
|
btio_sources = btio/btio.h btio/btio.c
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
builtin_modules =
|
|
|
|
builtin_sources =
|
|
|
|
builtin_nodist =
|
2010-07-26 18:19:56 +08:00
|
|
|
mcap_sources =
|
|
|
|
|
|
|
|
if MCAP
|
2010-09-01 17:13:44 +08:00
|
|
|
mcap_sources += health/mcap_lib.h health/mcap_internal.h \
|
2010-09-01 19:31:17 +08:00
|
|
|
health/mcap.h health/mcap.c \
|
|
|
|
health/mcap_sync.c
|
2010-07-26 18:19:56 +08:00
|
|
|
endif
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2010-01-26 21:24:14 +08:00
|
|
|
if PNATPLUGIN
|
|
|
|
builtin_modules += pnat
|
|
|
|
builtin_sources += plugins/pnat.c
|
|
|
|
endif
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
if AUDIOPLUGIN
|
|
|
|
builtin_modules += audio
|
|
|
|
builtin_sources += audio/main.c \
|
|
|
|
audio/manager.h audio/manager.c \
|
|
|
|
audio/gateway.h audio/gateway.c \
|
|
|
|
audio/headset.h audio/headset.c \
|
|
|
|
audio/control.h audio/control.c \
|
2011-09-13 00:34:00 +08:00
|
|
|
audio/avctp.h audio/avctp.c \
|
2011-09-13 00:34:01 +08:00
|
|
|
audio/avrcp.h audio/avrcp.c \
|
2009-08-23 15:40:59 +08:00
|
|
|
audio/device.h audio/device.c \
|
|
|
|
audio/source.h audio/source.c \
|
|
|
|
audio/sink.h audio/sink.c \
|
|
|
|
audio/a2dp.h audio/a2dp.c \
|
|
|
|
audio/avdtp.h audio/avdtp.c \
|
|
|
|
audio/ipc.h audio/ipc.c \
|
|
|
|
audio/unix.h audio/unix.c \
|
2010-09-15 20:21:53 +08:00
|
|
|
audio/media.h audio/media.c \
|
|
|
|
audio/transport.h audio/transport.c \
|
2010-09-22 17:53:06 +08:00
|
|
|
audio/telephony.h audio/a2dp-codecs.h
|
2009-08-23 15:40:59 +08:00
|
|
|
builtin_nodist += audio/telephony.c
|
2009-08-29 13:54:03 +08:00
|
|
|
|
2011-07-21 05:47:49 +08:00
|
|
|
noinst_LIBRARIES += audio/libtelephony.a
|
2009-08-29 13:54:03 +08:00
|
|
|
|
|
|
|
audio_libtelephony_a_SOURCES = audio/telephony.h audio/telephony-dummy.c \
|
2010-04-06 17:29:27 +08:00
|
|
|
audio/telephony-maemo5.c audio/telephony-ofono.c \
|
|
|
|
audio/telephony-maemo6.c
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
2011-02-24 20:13:24 +08:00
|
|
|
if SAPPLUGIN
|
|
|
|
builtin_modules += sap
|
|
|
|
builtin_sources += sap/main.c \
|
|
|
|
sap/manager.h sap/manager.c \
|
2011-03-16 00:43:17 +08:00
|
|
|
sap/server.h sap/server.c \
|
2011-03-16 20:10:20 +08:00
|
|
|
sap/sap.h
|
|
|
|
|
|
|
|
builtin_nodist += sap/sap.c
|
|
|
|
|
2011-07-21 05:47:49 +08:00
|
|
|
noinst_LIBRARIES += sap/libsap.a
|
2011-03-16 20:10:20 +08:00
|
|
|
|
2011-07-05 18:03:46 +08:00
|
|
|
sap_libsap_a_SOURCES = sap/sap.h sap/sap-dummy.c sap/sap-u8500.c
|
2011-02-24 20:13:24 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
if INPUTPLUGIN
|
|
|
|
builtin_modules += input
|
|
|
|
builtin_sources += input/main.c \
|
|
|
|
input/manager.h input/manager.c \
|
|
|
|
input/server.h input/server.c \
|
|
|
|
input/device.h input/device.c \
|
|
|
|
input/fakehid.c input/fakehid.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if SERIALPLUGIN
|
|
|
|
builtin_modules += serial
|
|
|
|
builtin_sources += serial/main.c \
|
|
|
|
serial/manager.h serial/manager.c \
|
|
|
|
serial/proxy.h serial/proxy.c \
|
|
|
|
serial/port.h serial/port.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if NETWORKPLUGIN
|
|
|
|
builtin_modules += network
|
|
|
|
builtin_sources += network/main.c \
|
|
|
|
network/manager.h network/manager.c \
|
|
|
|
network/common.h network/common.c \
|
|
|
|
network/server.h network/server.c \
|
|
|
|
network/connection.h network/connection.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if SERVICEPLUGIN
|
|
|
|
builtin_modules += service
|
|
|
|
builtin_sources += plugins/service.c
|
|
|
|
endif
|
|
|
|
|
2010-07-27 22:11:29 +08:00
|
|
|
if HEALTHPLUGIN
|
|
|
|
builtin_modules += health
|
|
|
|
builtin_sources += health/hdp_main.c health/hdp_types.h \
|
|
|
|
health/hdp_manager.h health/hdp_manager.c \
|
2010-07-29 17:19:55 +08:00
|
|
|
health/hdp.h health/hdp.c \
|
|
|
|
health/hdp_util.h health/hdp_util.c
|
2010-07-27 22:11:29 +08:00
|
|
|
endif
|
|
|
|
|
2012-03-19 22:57:51 +08:00
|
|
|
if GATTMODULES
|
2012-04-04 16:28:54 +08:00
|
|
|
builtin_modules += thermometer alert time gatt_example proximity \
|
|
|
|
deviceinfo
|
2011-07-26 20:15:53 +08:00
|
|
|
builtin_sources += thermometer/main.c \
|
2011-07-26 20:15:54 +08:00
|
|
|
thermometer/manager.h thermometer/manager.c \
|
2012-03-19 22:57:51 +08:00
|
|
|
thermometer/thermometer.h thermometer/thermometer.c \
|
|
|
|
alert/main.c alert/server.h alert/server.c \
|
|
|
|
time/main.c time/server.h time/server.c \
|
|
|
|
plugins/gatt-example.c \
|
|
|
|
proximity/main.c proximity/manager.h proximity/manager.c \
|
|
|
|
proximity/monitor.h proximity/monitor.c \
|
2012-04-03 03:12:40 +08:00
|
|
|
proximity/reporter.h proximity/reporter.c \
|
2012-04-03 03:12:41 +08:00
|
|
|
proximity/linkloss.h proximity/linkloss.c \
|
2012-04-04 16:28:54 +08:00
|
|
|
proximity/immalert.h proximity/immalert.c \
|
|
|
|
deviceinfo/main.c \
|
|
|
|
deviceinfo/manager.h deviceinfo/manager.c \
|
|
|
|
deviceinfo/deviceinfo.h deviceinfo/deviceinfo.c
|
2011-07-26 20:15:52 +08:00
|
|
|
endif
|
|
|
|
|
2012-03-19 22:57:51 +08:00
|
|
|
|
2010-10-27 23:21:38 +08:00
|
|
|
builtin_modules += hciops mgmtops
|
|
|
|
builtin_sources += plugins/hciops.c plugins/mgmtops.c
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2010-09-06 18:44:31 +08:00
|
|
|
if HAL
|
2009-08-23 15:40:59 +08:00
|
|
|
builtin_modules += hal
|
|
|
|
builtin_sources += plugins/hal.c
|
2010-09-06 18:44:31 +08:00
|
|
|
else
|
|
|
|
builtin_modules += formfactor
|
|
|
|
builtin_sources += plugins/formfactor.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DIST += plugins/hal.c plugins/formfactor.c
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
builtin_modules += storage
|
|
|
|
builtin_sources += plugins/storage.c
|
|
|
|
|
2011-06-28 17:21:24 +08:00
|
|
|
builtin_modules += adaptername
|
|
|
|
builtin_sources += plugins/adaptername.c
|
|
|
|
|
2011-07-13 21:40:15 +08:00
|
|
|
if WIIMOTEPLUGIN
|
|
|
|
builtin_modules += wiimote
|
|
|
|
builtin_sources += plugins/wiimote.c
|
|
|
|
endif
|
|
|
|
|
2010-07-09 17:05:56 +08:00
|
|
|
if MAEMO6PLUGIN
|
|
|
|
builtin_modules += maemo6
|
|
|
|
builtin_sources += plugins/maemo6.c
|
|
|
|
endif
|
|
|
|
|
2011-03-26 19:27:09 +08:00
|
|
|
if DBUSOOBPLUGIN
|
|
|
|
builtin_modules += dbusoob
|
|
|
|
builtin_sources += plugins/dbusoob.c
|
|
|
|
endif
|
|
|
|
|
2011-08-11 21:10:15 +08:00
|
|
|
if MAINTAINER_MODE
|
|
|
|
plugin_LTLIBRARIES += plugins/external-dummy.la
|
|
|
|
plugins_external_dummy_la_SOURCES = plugins/external-dummy.c
|
|
|
|
plugins_external_dummy_la_LDFLAGS = -module -avoid-version -no-undefined
|
2011-11-13 12:48:44 +08:00
|
|
|
plugins_external_dummy_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
|
2011-08-11 21:10:15 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
sbin_PROGRAMS += src/bluetoothd
|
|
|
|
|
|
|
|
src_bluetoothd_SOURCES = $(gdbus_sources) $(builtin_sources) \
|
2010-09-13 16:17:31 +08:00
|
|
|
$(attrib_sources) $(btio_sources) \
|
2010-10-06 20:11:53 +08:00
|
|
|
$(mcap_sources) src/bluetooth.ver \
|
2010-05-21 20:26:15 +08:00
|
|
|
src/main.c src/log.h src/log.c \
|
2010-10-27 04:06:44 +08:00
|
|
|
src/rfkill.c src/hcid.h src/sdpd.h \
|
2009-08-23 15:40:59 +08:00
|
|
|
src/sdpd-server.c src/sdpd-request.c \
|
|
|
|
src/sdpd-service.c src/sdpd-database.c \
|
2010-07-08 04:44:41 +08:00
|
|
|
src/attrib-server.h src/attrib-server.c \
|
2010-09-13 16:17:31 +08:00
|
|
|
src/sdp-xml.h src/sdp-xml.c \
|
2011-10-18 16:15:23 +08:00
|
|
|
src/sdp-client.h src/sdp-client.c \
|
2011-10-18 15:57:06 +08:00
|
|
|
src/textfile.h src/textfile.c src/glib-compat.h \
|
2009-08-29 13:24:04 +08:00
|
|
|
src/glib-helper.h src/glib-helper.c \
|
|
|
|
src/oui.h src/oui.c src/uinput.h src/ppoll.h \
|
2009-08-23 15:40:59 +08:00
|
|
|
src/plugin.h src/plugin.c \
|
|
|
|
src/storage.h src/storage.c \
|
|
|
|
src/agent.h src/agent.c \
|
|
|
|
src/error.h src/error.c \
|
|
|
|
src/manager.h src/manager.c \
|
|
|
|
src/adapter.h src/adapter.c \
|
2011-07-07 05:22:53 +08:00
|
|
|
src/device.h src/device.c src/attio.h \
|
2009-08-23 15:40:59 +08:00
|
|
|
src/dbus-common.c src/dbus-common.h \
|
2011-03-26 19:27:06 +08:00
|
|
|
src/event.h src/event.c \
|
2011-05-17 04:49:50 +08:00
|
|
|
src/oob.h src/oob.c src/eir.h src/eir.c
|
2011-08-29 07:07:43 +08:00
|
|
|
src_bluetoothd_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@ @DBUS_LIBS@ \
|
2010-10-16 03:46:11 +08:00
|
|
|
@CAPNG_LIBS@ -ldl -lrt
|
2009-08-29 14:08:34 +08:00
|
|
|
src_bluetoothd_LDFLAGS = -Wl,--export-dynamic \
|
2010-10-06 20:11:53 +08:00
|
|
|
-Wl,--version-script=$(srcdir)/src/bluetooth.ver
|
|
|
|
|
2011-08-29 07:07:43 +08:00
|
|
|
src_bluetoothd_DEPENDENCIES = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-11-13 12:48:44 +08:00
|
|
|
src_bluetoothd_CFLAGS = $(AM_CFLAGS) -DBLUETOOTH_PLUGIN_BUILTIN \
|
|
|
|
-DPLUGINDIR=\""$(build_plugindir)"\"
|
|
|
|
src_bluetoothd_SHORTNAME = bluetoothd
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
builtin_files = src/builtin.h $(builtin_nodist)
|
|
|
|
|
|
|
|
nodist_src_bluetoothd_SOURCES = $(builtin_files)
|
|
|
|
|
2010-09-22 02:46:56 +08:00
|
|
|
CLEANFILES += $(builtin_files)
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
man_MANS = src/bluetoothd.8
|
|
|
|
|
2011-07-02 11:35:10 +08:00
|
|
|
if DATAFILES
|
2009-08-23 15:40:59 +08:00
|
|
|
conf_DATA += src/main.conf
|
|
|
|
endif
|
|
|
|
|
2009-08-25 03:42:37 +08:00
|
|
|
EXTRA_DIST += src/genbuiltin src/bluetooth.conf \
|
|
|
|
src/main.conf network/network.conf \
|
2009-08-23 15:51:39 +08:00
|
|
|
input/input.conf serial/serial.conf \
|
|
|
|
audio/audio.conf audio/telephony-dummy.c \
|
2010-04-06 17:29:27 +08:00
|
|
|
audio/telephony-maemo5.c audio/telephony-ofono.c \
|
2011-07-28 22:43:19 +08:00
|
|
|
audio/telephony-maemo6.c sap/sap-dummy.c sap/sap-u8500.c \
|
|
|
|
proximity/proximity.conf
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2009-08-29 13:46:22 +08:00
|
|
|
if ALSA
|
|
|
|
alsadir = $(libdir)/alsa-lib
|
|
|
|
|
|
|
|
alsa_LTLIBRARIES = audio/libasound_module_pcm_bluetooth.la \
|
|
|
|
audio/libasound_module_ctl_bluetooth.la
|
|
|
|
|
|
|
|
audio_libasound_module_pcm_bluetooth_la_SOURCES = audio/pcm_bluetooth.c \
|
|
|
|
audio/rtp.h audio/ipc.h audio/ipc.c
|
|
|
|
audio_libasound_module_pcm_bluetooth_la_LDFLAGS = -module -avoid-version #-export-symbols-regex [_]*snd_pcm_.*
|
|
|
|
audio_libasound_module_pcm_bluetooth_la_LIBADD = sbc/libsbc.la \
|
2011-09-19 04:28:11 +08:00
|
|
|
lib/libbluetooth-private.la @ALSA_LIBS@
|
2011-11-13 12:48:44 +08:00
|
|
|
audio_libasound_module_pcm_bluetooth_la_CFLAGS = $(AM_CFLAGS) @ALSA_CFLAGS@
|
2009-08-29 13:46:22 +08:00
|
|
|
|
|
|
|
audio_libasound_module_ctl_bluetooth_la_SOURCES = audio/ctl_bluetooth.c \
|
|
|
|
audio/rtp.h audio/ipc.h audio/ipc.c
|
|
|
|
audio_libasound_module_ctl_bluetooth_la_LDFLAGS = -module -avoid-version #-export-symbols-regex [_]*snd_ctl_.*
|
2011-09-19 04:28:11 +08:00
|
|
|
audio_libasound_module_ctl_bluetooth_la_LIBADD = \
|
|
|
|
lib/libbluetooth-private.la @ALSA_LIBS@
|
2011-11-13 12:48:44 +08:00
|
|
|
audio_libasound_module_ctl_bluetooth_la_CFLAGS = $(AM_CLAGS) @ALSA_CFLAGS@
|
2009-08-29 13:46:22 +08:00
|
|
|
|
2011-07-02 11:35:10 +08:00
|
|
|
if DATAFILES
|
2010-07-17 02:38:58 +08:00
|
|
|
alsaconfdir = $(datadir)/alsa
|
2009-08-29 13:46:22 +08:00
|
|
|
|
|
|
|
alsaconf_DATA = audio/bluetooth.conf
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if AUDIOPLUGIN
|
|
|
|
if GSTREAMER
|
|
|
|
gstreamerdir = $(libdir)/gstreamer-0.10
|
|
|
|
|
|
|
|
gstreamer_LTLIBRARIES = audio/libgstbluetooth.la
|
|
|
|
|
2010-05-19 22:59:30 +08:00
|
|
|
audio_libgstbluetooth_la_SOURCES = audio/gstbluetooth.c audio/gstpragma.h \
|
2009-08-29 13:46:22 +08:00
|
|
|
audio/gstsbcenc.h audio/gstsbcenc.c \
|
|
|
|
audio/gstsbcdec.h audio/gstsbcdec.c \
|
|
|
|
audio/gstsbcparse.h audio/gstsbcparse.c \
|
|
|
|
audio/gstavdtpsink.h audio/gstavdtpsink.c \
|
|
|
|
audio/gsta2dpsink.h audio/gsta2dpsink.c \
|
|
|
|
audio/gstsbcutil.h audio/gstsbcutil.c \
|
|
|
|
audio/gstrtpsbcpay.h audio/gstrtpsbcpay.c \
|
|
|
|
audio/rtp.h audio/ipc.h audio/ipc.c
|
|
|
|
audio_libgstbluetooth_la_LDFLAGS = -module -avoid-version
|
2011-09-19 04:28:11 +08:00
|
|
|
audio_libgstbluetooth_la_LIBADD = sbc/libsbc.la lib/libbluetooth-private.la \
|
2011-11-13 12:48:44 +08:00
|
|
|
@DBUS_LIBS@ @GSTREAMER_LIBS@ \
|
|
|
|
-lgstaudio-0.10 -lgstrtp-0.10
|
2009-08-29 13:46:22 +08:00
|
|
|
audio_libgstbluetooth_la_CFLAGS = -fvisibility=hidden -fno-strict-aliasing \
|
2011-11-13 12:48:44 +08:00
|
|
|
$(AM_CFLAGS) @DBUS_CFLAGS@ @GSTREAMER_CFLAGS@
|
2009-08-29 13:46:22 +08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DIST += audio/bluetooth.conf
|
|
|
|
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
include Makefile.tools
|
|
|
|
|
2011-07-02 11:35:11 +08:00
|
|
|
if DATAFILES
|
2011-04-29 06:32:25 +08:00
|
|
|
rulesdir = @UDEV_DIR@/rules.d
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
udev_files = scripts/bluetooth.rules
|
|
|
|
|
|
|
|
if HID2HCI
|
|
|
|
udev_files += scripts/bluetooth-hid2hci.rules
|
|
|
|
endif
|
|
|
|
|
|
|
|
if PCMCIA
|
2011-07-02 11:35:11 +08:00
|
|
|
udevdir = @UDEV_DIR@
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
udev_files += scripts/bluetooth-serial.rules
|
2011-07-02 11:35:11 +08:00
|
|
|
|
|
|
|
dist_udev_SCRIPTS = scripts/bluetooth_serial
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
rules_DATA = $(foreach file,$(udev_files), scripts/97-$(notdir $(file)))
|
|
|
|
endif
|
|
|
|
|
|
|
|
CLEANFILES += $(rules_DATA)
|
|
|
|
|
|
|
|
EXTRA_DIST += scripts/bluetooth.rules \
|
|
|
|
scripts/bluetooth-hid2hci.rules scripts/bluetooth-serial.rules
|
|
|
|
|
|
|
|
EXTRA_DIST += doc/manager-api.txt \
|
|
|
|
doc/adapter-api.txt doc/device-api.txt \
|
2010-07-06 21:33:08 +08:00
|
|
|
doc/service-api.txt doc/agent-api.txt doc/attribute-api.txt \
|
2009-08-23 15:40:59 +08:00
|
|
|
doc/serial-api.txt doc/network-api.txt \
|
2010-08-12 02:46:54 +08:00
|
|
|
doc/input-api.txt doc/audio-api.txt doc/control-api.txt \
|
2011-02-24 20:13:23 +08:00
|
|
|
doc/hfp-api.txt doc/health-api.txt doc/sap-api.txt \
|
2011-03-14 19:41:16 +08:00
|
|
|
doc/media-api.txt doc/assigned-numbers.txt
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
AM_YFLAGS = -d
|
|
|
|
|
2011-11-13 12:48:44 +08:00
|
|
|
AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @CAPNG_CFLAGS@
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2009-08-29 13:24:04 +08:00
|
|
|
INCLUDES = -I$(builddir)/lib -I$(builddir)/src -I$(srcdir)/src \
|
2010-07-23 06:28:28 +08:00
|
|
|
-I$(srcdir)/audio -I$(srcdir)/sbc -I$(srcdir)/gdbus \
|
2011-12-28 17:53:37 +08:00
|
|
|
-I$(srcdir)/attrib -I$(srcdir)/btio -I$(srcdir)/tools \
|
2012-02-28 02:52:14 +08:00
|
|
|
-I$(builddir)/tools -I$(srcdir)/monitor
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2010-07-26 18:19:56 +08:00
|
|
|
if MCAP
|
2010-09-15 17:22:39 +08:00
|
|
|
INCLUDES += -I$(builddir)/health
|
2010-07-26 18:19:56 +08:00
|
|
|
endif
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-10-18 19:33:32 +08:00
|
|
|
unit_objects =
|
|
|
|
|
2011-12-28 12:09:56 +08:00
|
|
|
if TEST
|
2011-10-18 19:33:32 +08:00
|
|
|
unit_tests = unit/test-eir
|
|
|
|
|
|
|
|
noinst_PROGRAMS += $(unit_tests)
|
|
|
|
|
|
|
|
unit_test_eir_SOURCES = unit/test-eir.c src/eir.c src/glib-helper.c
|
2011-10-25 05:37:34 +08:00
|
|
|
unit_test_eir_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@ @CHECK_LIBS@
|
2011-11-13 12:48:44 +08:00
|
|
|
unit_test_eir_CFLAGS = $(AM_CFLAGS) @CHECK_CFLAGS@
|
2011-10-18 19:33:32 +08:00
|
|
|
unit_objects += $(unit_test_eir_OBJECTS)
|
2011-12-28 12:09:56 +08:00
|
|
|
else
|
|
|
|
unit_tests =
|
|
|
|
endif
|
2011-10-18 19:33:32 +08:00
|
|
|
|
|
|
|
TESTS = $(unit_tests)
|
|
|
|
|
2004-07-28 15:09:49 +08:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
|
|
|
pkgconfig_DATA = bluez.pc
|
|
|
|
|
2011-07-02 11:35:11 +08:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles
|
2009-07-07 01:29:57 +08:00
|
|
|
|
2007-12-09 05:46:12 +08:00
|
|
|
DISTCLEANFILES = $(pkgconfig_DATA)
|
2004-07-21 21:30:34 +08:00
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = Makefile.in \
|
|
|
|
aclocal.m4 configure config.h.in config.sub config.guess \
|
2009-05-22 05:07:31 +08:00
|
|
|
ltmain.sh depcomp compile missing install-sh mkinstalldirs ylwrap
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
src/builtin.h: src/genbuiltin $(builtin_sources)
|
|
|
|
$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
|
|
|
|
|
|
|
|
audio/telephony.c: audio/@TELEPHONY_DRIVER@
|
2011-12-28 17:53:36 +08:00
|
|
|
$(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-03-16 20:10:20 +08:00
|
|
|
sap/sap.c: sap/@SAP_DRIVER@
|
|
|
|
$(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
scripts/%.rules:
|
|
|
|
$(AM_V_GEN)cp $(subst 97-,,$@) $@
|
|
|
|
|
2009-08-25 01:57:50 +08:00
|
|
|
$(lib_libbluetooth_la_OBJECTS): $(local_headers)
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
lib/bluetooth/%.h: lib/%.h
|
2009-08-25 03:51:50 +08:00
|
|
|
$(AM_V_at)$(MKDIR_P) lib/bluetooth
|
2011-12-28 17:53:36 +08:00
|
|
|
$(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2010-09-03 19:20:08 +08:00
|
|
|
clean-local:
|
|
|
|
$(RM) -r lib/bluetooth
|