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 =
|
|
|
|
|
|
|
|
noinst_PROGRAMS =
|
|
|
|
|
|
|
|
dist_man_MANS =
|
|
|
|
|
|
|
|
dist_noinst_MANS =
|
|
|
|
|
|
|
|
CLEANFILES =
|
|
|
|
|
|
|
|
EXTRA_DIST =
|
|
|
|
|
2012-12-12 04:46:00 +08:00
|
|
|
libexecdir = @libexecdir@/bluetooth
|
|
|
|
|
|
|
|
libexec_PROGRAMS =
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
includedir = @includedir@/bluetooth
|
|
|
|
|
|
|
|
include_HEADERS =
|
|
|
|
|
2012-05-09 20:06:17 +08:00
|
|
|
AM_CFLAGS = $(WARNING_CFLAGS) $(MISC_CFLAGS)
|
|
|
|
AM_LDFLAGS = $(MISC_LDFLAGS)
|
|
|
|
|
2011-07-02 11:35:10 +08:00
|
|
|
if DATAFILES
|
2012-12-11 22:32:04 +08:00
|
|
|
dbusdir = @DBUS_CONFDIR@/dbus-1/system.d
|
2009-08-25 03:42:37 +08:00
|
|
|
dbus_DATA = src/bluetooth.conf
|
2012-12-11 22:32:04 +08:00
|
|
|
|
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 =
|
2012-12-11 21:52:23 +08:00
|
|
|
endif
|
2011-07-02 11:35:12 +08:00
|
|
|
|
|
|
|
if SYSTEMD
|
2012-12-11 21:52:23 +08:00
|
|
|
systemdsystemunitdir = @SYSTEMD_SYSTEMUNITDIR@
|
|
|
|
systemdsystemunit_DATA = src/bluetooth.service
|
2012-12-12 00:55:24 +08:00
|
|
|
|
|
|
|
dbussystembusdir = @DBUS_SYSTEMBUSDIR@
|
|
|
|
dbussystembus_DATA = src/org.bluez.service
|
2009-08-25 03:42:37 +08:00
|
|
|
endif
|
|
|
|
|
2012-12-19 04:44:47 +08:00
|
|
|
EXTRA_DIST += src/bluetooth.service.in src/org.bluez.service
|
2012-12-09 18:19:53 +08:00
|
|
|
|
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 =
|
|
|
|
|
2013-01-10 12:32:12 +08:00
|
|
|
lib_sources = lib/bluetooth.c lib/hci.c lib/sdp.c
|
|
|
|
lib_headers = lib/bluetooth.h lib/hci.h lib/hci_lib.h \
|
|
|
|
lib/sco.h lib/l2cap.h lib/sdp.h lib/sdp_lib.h \
|
|
|
|
lib/rfcomm.h lib/bnep.h lib/cmtp.h lib/hidp.h
|
|
|
|
|
|
|
|
extra_headers = lib/mgmt.h lib/uuid.h lib/a2mp.h lib/amp.h
|
|
|
|
extra_sources = lib/uuid.c
|
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
|
|
|
|
2012-12-11 05:34:47 +08:00
|
|
|
if LIBRARY
|
2009-08-23 15:40:59 +08:00
|
|
|
include_HEADERS += $(lib_headers)
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += lib/libbluetooth.la
|
|
|
|
|
2013-01-10 12:32:12 +08:00
|
|
|
lib_libbluetooth_la_SOURCES = $(lib_headers) $(lib_sources)
|
2015-04-01 04:58:22 +08:00
|
|
|
lib_libbluetooth_la_LDFLAGS = $(AM_LDFLAGS) -version-info 21:3:18
|
2009-08-23 15:40:59 +08:00
|
|
|
lib_libbluetooth_la_DEPENDENCIES = $(local_headers)
|
2012-12-11 05:34:47 +08:00
|
|
|
endif
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
noinst_LTLIBRARIES += lib/libbluetooth-internal.la
|
2011-08-29 07:07:43 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
lib_libbluetooth_internal_la_SOURCES = $(lib_headers) $(lib_sources) \
|
2013-01-10 12:32:12 +08:00
|
|
|
$(extra_headers) $(extra_sources)
|
2011-08-29 07:07:43 +08:00
|
|
|
|
2013-07-18 22:37:19 +08:00
|
|
|
noinst_LTLIBRARIES += gdbus/libgdbus-internal.la
|
|
|
|
|
|
|
|
gdbus_libgdbus_internal_la_SOURCES = gdbus/gdbus.h \
|
|
|
|
gdbus/mainloop.c gdbus/watch.c \
|
|
|
|
gdbus/object.c gdbus/client.c gdbus/polkit.c
|
|
|
|
|
2014-09-25 19:01:43 +08:00
|
|
|
noinst_LTLIBRARIES += src/libshared-glib.la src/libshared-mainloop.la
|
|
|
|
|
|
|
|
shared_sources = src/shared/io.h src/shared/timeout.h \
|
|
|
|
src/shared/queue.h src/shared/queue.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/shared/mgmt.h src/shared/mgmt.c \
|
|
|
|
src/shared/crypto.h src/shared/crypto.c \
|
2014-04-17 06:41:54 +08:00
|
|
|
src/shared/ecc.h src/shared/ecc.c \
|
2014-09-25 19:01:43 +08:00
|
|
|
src/shared/ringbuf.h src/shared/ringbuf.c \
|
|
|
|
src/shared/tester.h src/shared/tester.c \
|
|
|
|
src/shared/hci.h src/shared/hci.c \
|
2014-09-25 23:00:13 +08:00
|
|
|
src/shared/hci-crypto.h src/shared/hci-crypto.c \
|
2014-09-25 19:01:43 +08:00
|
|
|
src/shared/hfp.h src/shared/hfp.c \
|
|
|
|
src/shared/uhid.h src/shared/uhid.c \
|
|
|
|
src/shared/pcap.h src/shared/pcap.c \
|
|
|
|
src/shared/btsnoop.h src/shared/btsnoop.c \
|
2015-04-04 06:02:01 +08:00
|
|
|
src/shared/ad.h src/shared/ad.c \
|
2014-09-25 19:01:43 +08:00
|
|
|
src/shared/att-types.h \
|
|
|
|
src/shared/att.h src/shared/att.c \
|
|
|
|
src/shared/gatt-helpers.h src/shared/gatt-helpers.c \
|
|
|
|
src/shared/gatt-client.h src/shared/gatt-client.c \
|
2014-10-14 05:10:00 +08:00
|
|
|
src/shared/gatt-server.h src/shared/gatt-server.c \
|
2014-09-25 21:11:12 +08:00
|
|
|
src/shared/gatt-db.h src/shared/gatt-db.c \
|
|
|
|
src/shared/gap.h src/shared/gap.c
|
2014-09-25 19:01:43 +08:00
|
|
|
|
|
|
|
src_libshared_glib_la_SOURCES = $(shared_sources) \
|
|
|
|
src/shared/io-glib.c \
|
|
|
|
src/shared/timeout-glib.c
|
|
|
|
|
|
|
|
src_libshared_mainloop_la_SOURCES = $(shared_sources) \
|
|
|
|
src/shared/io-mainloop.c \
|
|
|
|
src/shared/timeout-mainloop.c \
|
2015-02-12 18:32:07 +08:00
|
|
|
src/shared/mainloop.h src/shared/mainloop.c
|
2014-09-25 19:01:43 +08:00
|
|
|
|
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 \
|
2012-12-13 20:08:04 +08:00
|
|
|
attrib/gattrib.h attrib/gattrib.c \
|
2014-09-25 19:01:43 +08:00
|
|
|
attrib/gatt-service.h attrib/gatt-service.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
|
|
|
|
|
2012-12-01 22:08:06 +08:00
|
|
|
gobex_sources = gobex/gobex.h gobex/gobex.c \
|
|
|
|
gobex/gobex-defs.h gobex/gobex-defs.c \
|
|
|
|
gobex/gobex-packet.c gobex/gobex-packet.h \
|
|
|
|
gobex/gobex-header.c gobex/gobex-header.h \
|
|
|
|
gobex/gobex-transfer.c gobex/gobex-debug.h \
|
|
|
|
gobex/gobex-apparam.c gobex/gobex-apparam.h
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
builtin_modules =
|
|
|
|
builtin_sources =
|
|
|
|
builtin_nodist =
|
2010-07-26 18:19:56 +08:00
|
|
|
|
2012-12-09 17:05:17 +08:00
|
|
|
include Makefile.plugins
|
2009-08-23 15:40:59 +08:00
|
|
|
|
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
|
2012-05-09 20:06:17 +08:00
|
|
|
plugins_external_dummy_la_LDFLAGS = $(AM_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
|
|
|
|
|
2012-12-09 18:19:53 +08:00
|
|
|
libexec_PROGRAMS += src/bluetoothd
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
src_bluetoothd_SOURCES = $(builtin_sources) \
|
2010-09-13 16:17:31 +08:00
|
|
|
$(attrib_sources) $(btio_sources) \
|
2012-12-09 17:00:40 +08:00
|
|
|
src/bluetooth.ver \
|
2010-05-21 20:26:15 +08:00
|
|
|
src/main.c src/log.h src/log.c \
|
2012-12-10 06:58:51 +08:00
|
|
|
src/systemd.h src/systemd.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 \
|
2015-02-12 11:17:33 +08:00
|
|
|
src/gatt-database.h src/gatt-database.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 \
|
2012-04-17 00:22:24 +08:00
|
|
|
src/textfile.h src/textfile.c \
|
2014-01-21 20:12:00 +08:00
|
|
|
src/uuid-helper.h src/uuid-helper.c \
|
2012-12-09 07:42:26 +08:00
|
|
|
src/uinput.h \
|
2009-08-23 15:40:59 +08:00
|
|
|
src/plugin.h src/plugin.c \
|
|
|
|
src/storage.h src/storage.c \
|
2015-03-27 06:08:31 +08:00
|
|
|
src/advertising.h src/advertising.c \
|
2009-08-23 15:40:59 +08:00
|
|
|
src/agent.h src/agent.c \
|
|
|
|
src/error.h src/error.c \
|
|
|
|
src/adapter.h src/adapter.c \
|
2012-09-10 20:32:22 +08:00
|
|
|
src/profile.h src/profile.c \
|
2013-04-26 14:17:07 +08:00
|
|
|
src/service.h src/service.c \
|
2014-12-20 05:35:49 +08:00
|
|
|
src/gatt-client.h src/gatt-client.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 \
|
2014-09-25 19:01:43 +08:00
|
|
|
src/eir.h src/eir.c
|
|
|
|
src_bluetoothd_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
gdbus/libgdbus-internal.la \
|
|
|
|
src/libshared-glib.la \
|
2013-07-03 20:29:20 +08:00
|
|
|
@GLIB_LIBS@ @DBUS_LIBS@ -ldl -lrt
|
2012-05-09 20:06:17 +08:00
|
|
|
src_bluetoothd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic \
|
2010-10-06 20:11:53 +08:00
|
|
|
-Wl,--version-script=$(srcdir)/src/bluetooth.ver
|
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
src_bluetoothd_DEPENDENCIES = lib/libbluetooth-internal.la \
|
2014-09-25 19:01:43 +08:00
|
|
|
gdbus/libgdbus-internal.la \
|
|
|
|
src/libshared-glib.la \
|
|
|
|
src/bluetooth.service
|
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)
|
|
|
|
|
2012-12-10 07:05:50 +08:00
|
|
|
CLEANFILES += $(builtin_files) src/bluetooth.service
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
man_MANS = src/bluetoothd.8
|
|
|
|
|
2012-12-19 04:44:47 +08:00
|
|
|
EXTRA_DIST += src/genbuiltin src/bluetooth.conf \
|
2012-07-10 22:03:03 +08:00
|
|
|
src/main.conf profiles/network/network.conf \
|
2013-07-26 02:25:46 +08:00
|
|
|
profiles/input/input.conf profiles/proximity/proximity.conf
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-12 05:28:15 +08:00
|
|
|
test_scripts =
|
2014-02-12 02:32:32 +08:00
|
|
|
unit_tests =
|
2012-12-12 05:28:15 +08:00
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
include Makefile.tools
|
2012-12-05 06:38:48 +08:00
|
|
|
include Makefile.obexd
|
2013-10-29 00:37:06 +08:00
|
|
|
include android/Makefile.am
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-19 22:03:45 +08:00
|
|
|
if HID2HCI
|
2011-04-29 06:32:25 +08:00
|
|
|
rulesdir = @UDEV_DIR@/rules.d
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-19 22:03:45 +08:00
|
|
|
rules_DATA = tools/97-hid2hci.rules
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-19 22:03:45 +08:00
|
|
|
CLEANFILES += $(rules_DATA)
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
2012-12-11 05:56:05 +08:00
|
|
|
EXTRA_DIST += tools/hid2hci.rules
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-12 05:28:15 +08:00
|
|
|
if TEST
|
|
|
|
testdir = $(pkglibdir)/test
|
|
|
|
test_SCRIPTS = $(test_scripts)
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DIST += $(test_scripts)
|
|
|
|
|
2014-01-12 13:15:41 +08:00
|
|
|
EXTRA_DIST += doc/assigned-numbers.txt doc/supported-features.txt \
|
2015-04-05 04:30:10 +08:00
|
|
|
doc/test-coverage.txt \
|
|
|
|
doc/test-runner.txt \
|
|
|
|
doc/settings-storage.txt
|
2012-12-21 16:41:43 +08:00
|
|
|
|
|
|
|
EXTRA_DIST += doc/mgmt-api.txt \
|
|
|
|
doc/adapter-api.txt doc/device-api.txt \
|
|
|
|
doc/agent-api.txt doc/profile-api.txt \
|
|
|
|
doc/network-api.txt doc/media-api.txt \
|
2015-03-18 17:07:31 +08:00
|
|
|
doc/health-api.txt doc/sap-api.txt \
|
|
|
|
doc/input-api.txt
|
2012-12-21 16:41:43 +08:00
|
|
|
|
|
|
|
EXTRA_DIST += doc/alert-api.txt \
|
2012-12-20 07:18:30 +08:00
|
|
|
doc/proximity-api.txt doc/heartrate-api.txt \
|
2015-03-18 17:07:31 +08:00
|
|
|
doc/thermometer-api.txt doc/cyclingspeed-api.txt \
|
2015-03-23 01:50:47 +08:00
|
|
|
doc/gatt-api.txt doc/advertising-api.txt
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-22 00:59:04 +08:00
|
|
|
EXTRA_DIST += doc/obex-api.txt doc/obex-agent-api.txt
|
|
|
|
|
2012-12-22 04:15:31 +08:00
|
|
|
EXTRA_DIST += tools/magic.btsnoop
|
|
|
|
|
2012-05-29 14:19:30 +08:00
|
|
|
AM_CFLAGS += @DBUS_CFLAGS@ @GLIB_CFLAGS@
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2015-03-01 16:35:28 +08:00
|
|
|
AM_CPPFLAGS = -I$(builddir)/lib
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-11-13 05:03:41 +08:00
|
|
|
|
2014-10-03 16:06:59 +08:00
|
|
|
unit_tests += unit/test-eir
|
2011-10-18 19:33:32 +08:00
|
|
|
|
2014-01-21 20:12:00 +08:00
|
|
|
unit_test_eir_SOURCES = unit/test-eir.c src/eir.c src/uuid-helper.c
|
2015-02-13 17:27:13 +08:00
|
|
|
unit_test_eir_LDADD = src/libshared-glib.la lib/libbluetooth-internal.la \
|
|
|
|
@GLIB_LIBS@
|
2011-10-18 19:33:32 +08:00
|
|
|
|
2014-10-03 16:06:59 +08:00
|
|
|
unit_tests += unit/test-uuid
|
|
|
|
|
2012-12-09 19:46:11 +08:00
|
|
|
unit_test_uuid_SOURCES = unit/test-uuid.c
|
2013-07-03 20:29:19 +08:00
|
|
|
unit_test_uuid_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
|
2012-12-09 19:46:11 +08:00
|
|
|
|
2014-10-03 16:06:59 +08:00
|
|
|
unit_tests += unit/test-textfile
|
|
|
|
|
2012-12-09 20:15:27 +08:00
|
|
|
unit_test_textfile_SOURCES = unit/test-textfile.c src/textfile.h src/textfile.c
|
2015-05-19 23:01:01 +08:00
|
|
|
unit_test_textfile_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
2012-12-09 20:15:27 +08:00
|
|
|
|
2014-10-03 16:06:59 +08:00
|
|
|
unit_tests += unit/test-crc
|
|
|
|
|
2013-08-22 14:06:02 +08:00
|
|
|
unit_test_crc_SOURCES = unit/test-crc.c monitor/crc.h monitor/crc.c
|
2015-02-13 16:48:06 +08:00
|
|
|
unit_test_crc_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
2013-08-22 14:06:02 +08:00
|
|
|
|
2014-10-03 16:06:59 +08:00
|
|
|
unit_tests += unit/test-crypto
|
|
|
|
|
2014-09-25 19:01:43 +08:00
|
|
|
unit_test_crypto_SOURCES = unit/test-crypto.c
|
|
|
|
unit_test_crypto_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
2014-05-15 14:15:32 +08:00
|
|
|
|
2014-04-17 06:41:54 +08:00
|
|
|
unit_tests += unit/test-ecc
|
|
|
|
|
|
|
|
unit_test_ecc_SOURCES = unit/test-ecc.c
|
|
|
|
unit_test_ecc_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
|
|
|
|
2014-01-26 03:30:52 +08:00
|
|
|
unit_tests += unit/test-ringbuf unit/test-queue
|
2014-01-26 03:08:25 +08:00
|
|
|
|
2014-09-25 19:01:43 +08:00
|
|
|
unit_test_ringbuf_SOURCES = unit/test-ringbuf.c
|
|
|
|
unit_test_ringbuf_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
2014-01-26 03:08:25 +08:00
|
|
|
|
2014-09-25 19:01:43 +08:00
|
|
|
unit_test_queue_SOURCES = unit/test-queue.c
|
|
|
|
unit_test_queue_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
2014-01-26 03:30:52 +08:00
|
|
|
|
2013-01-04 07:51:30 +08:00
|
|
|
unit_tests += unit/test-mgmt
|
|
|
|
|
2014-09-25 19:01:43 +08:00
|
|
|
unit_test_mgmt_SOURCES = unit/test-mgmt.c
|
|
|
|
unit_test_mgmt_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
2013-01-04 07:51:30 +08:00
|
|
|
|
2014-05-16 17:39:29 +08:00
|
|
|
unit_tests += unit/test-uhid
|
|
|
|
|
2014-09-25 19:01:43 +08:00
|
|
|
unit_test_uhid_SOURCES = unit/test-uhid.c
|
|
|
|
unit_test_uhid_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
2014-05-16 17:39:29 +08:00
|
|
|
|
2013-01-04 13:26:54 +08:00
|
|
|
unit_tests += unit/test-sdp
|
|
|
|
|
|
|
|
unit_test_sdp_SOURCES = unit/test-sdp.c \
|
|
|
|
src/sdpd.h src/sdpd-database.c \
|
2014-03-14 17:59:26 +08:00
|
|
|
src/log.h src/log.c \
|
2013-01-04 13:26:54 +08:00
|
|
|
src/sdpd-service.c src/sdpd-request.c
|
2014-09-25 19:01:43 +08:00
|
|
|
unit_test_sdp_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
src/libshared-glib.la @GLIB_LIBS@
|
2013-01-04 13:26:54 +08:00
|
|
|
|
2013-11-20 23:42:48 +08:00
|
|
|
unit_tests += unit/test-avdtp
|
|
|
|
|
|
|
|
unit_test_avdtp_SOURCES = unit/test-avdtp.c \
|
|
|
|
src/log.h src/log.c \
|
|
|
|
android/avdtp.c android/avdtp.h
|
2014-09-25 19:01:43 +08:00
|
|
|
unit_test_avdtp_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
2013-11-20 23:42:48 +08:00
|
|
|
|
2014-01-29 20:41:12 +08:00
|
|
|
unit_tests += unit/test-avctp
|
|
|
|
|
|
|
|
unit_test_avctp_SOURCES = unit/test-avctp.c \
|
|
|
|
src/log.h src/log.c \
|
|
|
|
android/avctp.c android/avctp.h
|
2014-09-25 19:01:43 +08:00
|
|
|
unit_test_avctp_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
2014-01-29 20:41:12 +08:00
|
|
|
|
2014-02-21 23:23:45 +08:00
|
|
|
unit_tests += unit/test-avrcp
|
|
|
|
|
|
|
|
unit_test_avrcp_SOURCES = unit/test-avrcp.c \
|
|
|
|
src/log.h src/log.c \
|
|
|
|
android/avctp.c android/avctp.h \
|
|
|
|
android/avrcp-lib.c android/avrcp-lib.h
|
2014-09-25 19:01:43 +08:00
|
|
|
unit_test_avrcp_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
src/libshared-glib.la @GLIB_LIBS@
|
2014-02-21 23:23:45 +08:00
|
|
|
|
2014-03-06 03:22:47 +08:00
|
|
|
unit_tests += unit/test-hfp
|
|
|
|
|
2014-09-25 19:01:43 +08:00
|
|
|
unit_test_hfp_SOURCES = unit/test-hfp.c
|
|
|
|
unit_test_hfp_LDADD = src/libshared-glib.la @GLIB_LIBS@
|
2014-03-06 03:22:47 +08:00
|
|
|
|
2012-12-17 06:03:16 +08:00
|
|
|
unit_tests += unit/test-gdbus-client
|
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
unit_test_gdbus_client_SOURCES = unit/test-gdbus-client.c
|
|
|
|
unit_test_gdbus_client_LDADD = gdbus/libgdbus-internal.la \
|
2015-02-13 20:24:15 +08:00
|
|
|
src/libshared-glib.la @GLIB_LIBS@ @DBUS_LIBS@
|
2012-12-17 06:03:16 +08:00
|
|
|
|
2012-12-01 22:08:06 +08:00
|
|
|
unit_tests += unit/test-gobex-header unit/test-gobex-packet unit/test-gobex \
|
|
|
|
unit/test-gobex-transfer unit/test-gobex-apparam
|
|
|
|
|
|
|
|
unit_test_gobex_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex.c
|
|
|
|
unit_test_gobex_LDADD = @GLIB_LIBS@
|
|
|
|
|
|
|
|
unit_test_gobex_packet_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-packet.c
|
|
|
|
unit_test_gobex_packet_LDADD = @GLIB_LIBS@
|
|
|
|
|
|
|
|
unit_test_gobex_header_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-header.c
|
|
|
|
unit_test_gobex_header_LDADD = @GLIB_LIBS@
|
|
|
|
|
|
|
|
unit_test_gobex_transfer_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-transfer.c
|
|
|
|
unit_test_gobex_transfer_LDADD = @GLIB_LIBS@
|
|
|
|
|
|
|
|
unit_test_gobex_apparam_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-apparam.c
|
|
|
|
unit_test_gobex_apparam_LDADD = @GLIB_LIBS@
|
|
|
|
|
2013-02-15 23:07:44 +08:00
|
|
|
unit_tests += unit/test-lib
|
|
|
|
|
|
|
|
unit_test_lib_SOURCES = unit/test-lib.c
|
2015-05-19 23:01:03 +08:00
|
|
|
unit_test_lib_LDADD = src/libshared-glib.la \
|
|
|
|
lib/libbluetooth-internal.la @GLIB_LIBS@
|
2013-02-15 23:07:44 +08:00
|
|
|
|
2014-10-01 19:03:11 +08:00
|
|
|
unit_tests += unit/test-gatt
|
|
|
|
|
|
|
|
unit_test_gatt_SOURCES = unit/test-gatt.c
|
2014-10-03 16:06:59 +08:00
|
|
|
unit_test_gatt_LDADD = src/libshared-glib.la \
|
|
|
|
lib/libbluetooth-internal.la @GLIB_LIBS@
|
2014-10-01 19:03:11 +08:00
|
|
|
|
2015-03-16 23:38:52 +08:00
|
|
|
unit_tests += unit/test-hog
|
|
|
|
|
|
|
|
unit_test_hog_SOURCES = unit/test-hog.c \
|
|
|
|
$(btio_sources) \
|
|
|
|
android/hog.h android/hog.c \
|
|
|
|
android/scpp.h android/scpp.c \
|
|
|
|
android/bas.h android/bas.c \
|
|
|
|
android/dis.h android/dis.c \
|
|
|
|
src/log.h src/log.c \
|
|
|
|
attrib/att.h attrib/att.c \
|
|
|
|
attrib/gatt.h attrib/gatt.c \
|
|
|
|
attrib/gattrib.h attrib/gattrib.c
|
|
|
|
unit_test_hog_LDADD = src/libshared-glib.la \
|
|
|
|
lib/libbluetooth-internal.la @GLIB_LIBS@
|
|
|
|
|
2014-11-01 02:14:54 +08:00
|
|
|
unit_tests += unit/test-gattrib
|
|
|
|
|
|
|
|
unit_test_gattrib_SOURCES = unit/test-gattrib.c attrib/gattrib.c $(btio_sources) src/log.h src/log.c
|
|
|
|
unit_test_gattrib_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
src/libshared-glib.la \
|
|
|
|
@GLIB_LIBS@ @DBUS_LIBS@ -ldl -lrt
|
|
|
|
|
2014-10-03 18:54:29 +08:00
|
|
|
if MAINTAINER_MODE
|
2012-12-01 22:08:06 +08:00
|
|
|
noinst_PROGRAMS += $(unit_tests)
|
2014-10-03 18:54:29 +08:00
|
|
|
endif
|
2012-12-01 22:08:06 +08:00
|
|
|
|
2011-10-18 19:33:32 +08:00
|
|
|
TESTS = $(unit_tests)
|
2015-04-02 04:04:41 +08:00
|
|
|
AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69
|
2011-10-18 19:33:32 +08:00
|
|
|
|
2015-05-05 17:27:09 +08:00
|
|
|
if DBUS_RUN_SESSION
|
|
|
|
AM_TESTS_ENVIRONMENT += dbus-run-session --
|
|
|
|
endif
|
|
|
|
|
2004-07-28 15:09:49 +08:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
2012-12-11 05:34:47 +08:00
|
|
|
if LIBRARY
|
2012-12-20 01:24:43 +08:00
|
|
|
pkgconfig_DATA = lib/bluez.pc
|
2012-12-11 05:34:47 +08:00
|
|
|
endif
|
2004-07-28 15:09:49 +08:00
|
|
|
|
2014-07-12 20:26:10 +08:00
|
|
|
manual_pages = doc/btmon.1
|
|
|
|
|
2014-07-13 05:44:22 +08:00
|
|
|
if MANPAGES
|
2014-07-13 06:06:57 +08:00
|
|
|
dist_noinst_MANS += $(manual_pages)
|
2014-07-13 05:44:22 +08:00
|
|
|
endif
|
2014-07-12 20:26:10 +08:00
|
|
|
|
|
|
|
EXTRA_DIST += $(manual_pages:.1=.txt)
|
|
|
|
|
2013-01-10 12:32:40 +08:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles --enable-library \
|
2015-05-17 07:08:37 +08:00
|
|
|
--enable-manpages --enable-android \
|
2014-01-24 01:40:00 +08:00
|
|
|
--disable-systemd --disable-udev
|
2009-07-07 01:29:57 +08:00
|
|
|
|
2014-10-03 18:54:29 +08:00
|
|
|
DISTCLEANFILES = $(pkgconfig_DATA) $(unit_tests) $(manual_pages)
|
2004-07-21 21:30:34 +08:00
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = Makefile.in \
|
|
|
|
aclocal.m4 configure config.h.in config.sub config.guess \
|
2013-09-03 02:47:27 +08:00
|
|
|
ltmain.sh depcomp compile missing install-sh mkinstalldirs test-driver
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-09 18:19:53 +08:00
|
|
|
SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
|
|
|
|
$(SED) -e 's,@libexecdir\@,$(libexecdir),g' \
|
|
|
|
< $< > $@
|
|
|
|
|
|
|
|
%.service: %.service.in Makefile
|
|
|
|
$(SED_PROCESS)
|
|
|
|
|
2014-07-12 20:26:10 +08:00
|
|
|
%.1: %.txt
|
|
|
|
$(AM_V_GEN)a2x --doctype manpage --format manpage $(srcdir)/$<
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
src/builtin.h: src/genbuiltin $(builtin_sources)
|
|
|
|
$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
|
|
|
|
|
2012-12-11 05:56:05 +08:00
|
|
|
tools/%.rules:
|
2012-12-22 00:25:03 +08:00
|
|
|
$(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
|
2009-08-23 15:40:59 +08:00
|
|
|
|
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
|
2013-11-28 19:10:55 +08:00
|
|
|
$(AM_V_GEN)$(LN_S) -f "$(abs_top_builddir)"/$< $@
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2013-12-11 17:01:25 +08:00
|
|
|
if COVERAGE
|
|
|
|
clean-coverage:
|
|
|
|
@lcov --directory $(top_builddir) --zerocounters
|
|
|
|
$(RM) -r coverage $(top_builddir)/coverage.info
|
|
|
|
|
|
|
|
coverage: check
|
|
|
|
@lcov --compat-libtool --directory $(top_builddir) --capture \
|
|
|
|
--output-file $(top_builddir)/coverage.info
|
|
|
|
$(AM_V_at)$(MKDIR_P) coverage
|
|
|
|
@genhtml -o coverage/ $(top_builddir)/coverage.info
|
|
|
|
|
|
|
|
clean-local: clean-coverage
|
|
|
|
-find $(top_builddir) -name "*.gcno" -delete
|
|
|
|
-find $(top_builddir) -name "*.gcda" -delete
|
|
|
|
$(RM) -r lib/bluetooth
|
|
|
|
|
|
|
|
else
|
2010-09-03 19:20:08 +08:00
|
|
|
clean-local:
|
2013-12-11 17:01:25 +08:00
|
|
|
-find $(top_builddir) -name "*.gcno" -delete
|
|
|
|
-find $(top_builddir) -name "*.gcda" -delete
|
2010-09-03 19:20:08 +08:00
|
|
|
$(RM) -r lib/bluetooth
|
2013-12-11 17:01:25 +08:00
|
|
|
endif
|