2020-09-22 03:00:38 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2009-08-17 05:52:28 +08:00
|
|
|
AM_MAKEFLAGS = --no-print-directory
|
2018-11-25 17:20:08 +08:00
|
|
|
AM_CPPFLAGS =
|
2009-08-17 05:52:28 +08:00
|
|
|
|
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 =
|
|
|
|
|
|
|
|
CLEANFILES =
|
|
|
|
|
|
|
|
EXTRA_DIST =
|
|
|
|
|
2024-02-17 07:11:07 +08:00
|
|
|
pkglibexecdir = @PKGLIBEXECDIR@
|
2012-12-12 04:46:00 +08:00
|
|
|
|
2019-04-12 22:07:41 +08:00
|
|
|
pkglibexec_PROGRAMS =
|
2012-12-12 04:46:00 +08:00
|
|
|
|
2018-11-25 17:20:06 +08:00
|
|
|
pkgincludedir = $(includedir)/bluetooth
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2018-11-25 17:20:05 +08:00
|
|
|
pkginclude_HEADERS =
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2021-12-21 07:49:45 +08:00
|
|
|
AM_CFLAGS = $(MISC_CFLAGS) $(WARNING_CFLAGS) $(UDEV_CFLAGS) $(LIBEBOOK_CFLAGS) \
|
2021-10-27 01:54:12 +08:00
|
|
|
$(LIBEDATASERVER_CFLAGS) $(ell_cflags)
|
2012-05-09 20:06:17 +08:00
|
|
|
AM_LDFLAGS = $(MISC_LDFLAGS)
|
|
|
|
|
2022-01-26 19:36:35 +08:00
|
|
|
confdir = $(sysconfdir)/bluetooth
|
|
|
|
statedir = $(localstatedir)/lib/bluetooth
|
|
|
|
|
2024-02-17 07:11:05 +08:00
|
|
|
bluetoothd-fix-permissions:
|
2024-02-13 04:02:44 +08:00
|
|
|
install -dm555 $(DESTDIR)$(confdir)
|
|
|
|
install -dm700 $(DESTDIR)$(statedir)
|
|
|
|
|
2011-07-02 11:35:10 +08:00
|
|
|
if DATAFILES
|
2018-11-25 17:20:06 +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
|
|
|
|
2024-11-05 20:04:17 +08:00
|
|
|
if OBEX
|
|
|
|
dbus_DATA += obexd/src/obex.conf
|
|
|
|
endif
|
|
|
|
|
2024-02-13 04:02:44 +08:00
|
|
|
conf_DATA = src/main.conf
|
|
|
|
conf_DATA += profiles/input/input.conf
|
|
|
|
conf_DATA += profiles/network/network.conf
|
2009-08-25 03:42:37 +08:00
|
|
|
state_DATA =
|
2012-12-11 21:52:23 +08:00
|
|
|
endif
|
2011-07-02 11:35:12 +08:00
|
|
|
|
|
|
|
if SYSTEMD
|
2018-11-25 17:20:06 +08:00
|
|
|
systemdsystemunitdir = $(SYSTEMD_SYSTEMUNITDIR)
|
2012-12-11 21:52:23 +08:00
|
|
|
systemdsystemunit_DATA = src/bluetooth.service
|
2012-12-12 00:55:24 +08:00
|
|
|
|
2024-09-03 22:33:15 +08:00
|
|
|
systemduserunitdir = $(SYSTEMD_USERUNITDIR)
|
|
|
|
systemduserunit_DATA =
|
|
|
|
|
2018-11-25 17:20:06 +08:00
|
|
|
dbussystembusdir = $(DBUS_SYSTEMBUSDIR)
|
2012-12-12 00:55:24 +08:00
|
|
|
dbussystembus_DATA = src/org.bluez.service
|
2009-08-25 03:42:37 +08:00
|
|
|
endif
|
|
|
|
|
2024-01-25 00:20:09 +08:00
|
|
|
EXTRA_DIST += src/org.bluez.service
|
2012-12-09 18:19:53 +08:00
|
|
|
|
2011-08-22 21:00:21 +08:00
|
|
|
plugindir = $(libdir)/bluetooth/plugins
|
|
|
|
|
|
|
|
build_plugindir = $(plugindir)
|
2011-08-15 05:39:14 +08:00
|
|
|
|
2021-05-04 13:02:04 +08:00
|
|
|
if MANPAGES
|
|
|
|
man_MANS =
|
|
|
|
endif
|
|
|
|
manual_pages =
|
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
|
|
|
|
|
2019-07-29 18:09:24 +08:00
|
|
|
extra_headers = lib/mgmt.h lib/uuid.h lib/a2mp.h lib/amp.h lib/iso.h
|
2013-01-10 12:32:12 +08:00
|
|
|
extra_sources = lib/uuid.c
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
local_headers = $(foreach file,$(lib_headers), lib/bluetooth/$(notdir $(file)))
|
|
|
|
|
2018-12-04 23:59:01 +08:00
|
|
|
BUILT_SOURCES = $(local_headers) $(ell_built_sources) src/builtin.h
|
2011-07-09 23:10:53 +08:00
|
|
|
|
2012-12-11 05:34:47 +08:00
|
|
|
if LIBRARY
|
2018-11-25 17:20:05 +08:00
|
|
|
pkginclude_HEADERS += $(lib_headers)
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
lib_LTLIBRARIES += lib/libbluetooth.la
|
|
|
|
|
2013-01-10 12:32:12 +08:00
|
|
|
lib_libbluetooth_la_SOURCES = $(lib_headers) $(lib_sources)
|
2024-09-09 16:43:38 +08:00
|
|
|
lib_libbluetooth_la_LDFLAGS = $(AM_LDFLAGS) -version-info 22:15:19
|
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
|
|
|
|
|
2018-12-04 23:59:01 +08:00
|
|
|
if EXTERNAL_ELL
|
|
|
|
ell_cflags = @ELL_CFLAGS@
|
|
|
|
ell_ldadd = @ELL_LIBS@
|
2021-04-02 13:26:29 +08:00
|
|
|
ell_built_sources = ell/shared
|
2018-12-04 23:59:01 +08:00
|
|
|
else
|
|
|
|
ell_cflags =
|
|
|
|
ell_ldadd = ell/libell-internal.la
|
2021-04-02 13:26:29 +08:00
|
|
|
ell_built_sources = ell/shared ell/internal ell/ell.h
|
2018-12-04 23:59:01 +08:00
|
|
|
|
|
|
|
noinst_LTLIBRARIES += ell/libell-internal.la
|
|
|
|
|
|
|
|
ell_headers = ell/util.h \
|
|
|
|
ell/log.h \
|
|
|
|
ell/queue.h \
|
|
|
|
ell/hashmap.h \
|
|
|
|
ell/random.h \
|
|
|
|
ell/signal.h \
|
2021-03-20 04:38:25 +08:00
|
|
|
ell/time.h \
|
|
|
|
ell/time-private.h \
|
2018-12-04 23:59:01 +08:00
|
|
|
ell/timeout.h \
|
2019-05-30 01:28:18 +08:00
|
|
|
ell/cipher.h \
|
|
|
|
ell/checksum.h \
|
2018-12-04 23:59:01 +08:00
|
|
|
ell/io.h \
|
|
|
|
ell/idle.h \
|
|
|
|
ell/main.h \
|
2019-12-05 03:15:16 +08:00
|
|
|
ell/settings.h \
|
2018-12-04 23:59:01 +08:00
|
|
|
ell/strv.h \
|
|
|
|
ell/string.h \
|
2019-10-04 04:44:05 +08:00
|
|
|
ell/utf8.h \
|
2018-12-04 23:59:01 +08:00
|
|
|
ell/dbus.h \
|
|
|
|
ell/dbus-service.h \
|
2019-12-05 03:15:16 +08:00
|
|
|
ell/dbus-client.h \
|
|
|
|
ell/key.h \
|
|
|
|
ell/cert.h \
|
|
|
|
ell/pem.h \
|
|
|
|
ell/base64.h \
|
|
|
|
ell/asn1-private.h \
|
|
|
|
ell/cert-private.h \
|
2021-02-13 05:42:42 +08:00
|
|
|
ell/pem-private.h \
|
2021-03-17 04:56:49 +08:00
|
|
|
ell/uuid.h \
|
2021-03-20 04:38:25 +08:00
|
|
|
ell/useful.h \
|
|
|
|
ell/main-private.h \
|
2021-04-29 06:56:50 +08:00
|
|
|
ell/tester.h \
|
|
|
|
ell/tls.h \
|
|
|
|
ell/tls-private.h \
|
|
|
|
ell/ecc.h \
|
|
|
|
ell/ecc-private.h \
|
2021-10-17 02:00:41 +08:00
|
|
|
ell/cleanup.h \
|
2021-04-29 06:56:50 +08:00
|
|
|
ell/ecdh.h
|
2018-12-04 23:59:01 +08:00
|
|
|
|
|
|
|
ell_sources = ell/private.h ell/missing.h \
|
|
|
|
ell/util.c \
|
|
|
|
ell/log.c \
|
|
|
|
ell/queue.c \
|
|
|
|
ell/hashmap.c \
|
|
|
|
ell/random.c \
|
|
|
|
ell/signal.c \
|
2021-03-20 04:38:25 +08:00
|
|
|
ell/time.c \
|
2018-12-04 23:59:01 +08:00
|
|
|
ell/timeout.c \
|
|
|
|
ell/io.c \
|
|
|
|
ell/idle.c \
|
|
|
|
ell/main.c \
|
2019-12-05 03:15:16 +08:00
|
|
|
ell/settings.c \
|
2018-12-04 23:59:01 +08:00
|
|
|
ell/strv.c \
|
|
|
|
ell/string.c \
|
2019-05-30 01:28:18 +08:00
|
|
|
ell/cipher.c \
|
|
|
|
ell/checksum.c \
|
2019-12-05 03:15:16 +08:00
|
|
|
ell/pem.c \
|
|
|
|
ell/cert.c \
|
2021-01-15 05:09:24 +08:00
|
|
|
ell/cert-crypto.c \
|
2019-12-05 03:15:16 +08:00
|
|
|
ell/key.c \
|
|
|
|
ell/base64.c \
|
2019-10-04 04:44:05 +08:00
|
|
|
ell/utf8.c \
|
2018-12-04 23:59:01 +08:00
|
|
|
ell/dbus-private.h \
|
|
|
|
ell/dbus.c \
|
|
|
|
ell/dbus-message.c \
|
|
|
|
ell/dbus-util.c \
|
|
|
|
ell/dbus-service.c \
|
|
|
|
ell/dbus-client.c \
|
|
|
|
ell/dbus-name-cache.c \
|
|
|
|
ell/dbus-filter.c \
|
|
|
|
ell/gvariant-private.h \
|
|
|
|
ell/gvariant-util.c \
|
|
|
|
ell/siphash-private.h \
|
2021-02-13 05:42:42 +08:00
|
|
|
ell/siphash.c \
|
2021-03-20 04:38:25 +08:00
|
|
|
ell/uuid.c \
|
2021-04-29 06:56:50 +08:00
|
|
|
ell/tester.c \
|
|
|
|
ell/tls.c \
|
|
|
|
ell/tls-extensions.c \
|
|
|
|
ell/tls-suites.c \
|
|
|
|
ell/tls-record.c \
|
|
|
|
ell/ecc.c \
|
|
|
|
ell/ecc-external.c \
|
|
|
|
ell/ecdh.c
|
2018-12-04 23:59:01 +08:00
|
|
|
|
2021-04-02 13:26:29 +08:00
|
|
|
ell_shared = ell/useful.h
|
|
|
|
|
|
|
|
ell_libell_internal_la_SOURCES = $(ell_headers) $(ell_sources) $(ell_shared)
|
2018-12-04 23:59:01 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
CLEANFILES += $(ell_built_sources)
|
|
|
|
|
2018-05-17 02:36:07 +08:00
|
|
|
noinst_LTLIBRARIES += src/libshared-glib.la src/libshared-mainloop.la
|
2014-09-25 19:01:43 +08:00
|
|
|
|
2019-08-11 15:00:45 +08:00
|
|
|
if LIBSHARED_ELL
|
|
|
|
noinst_LTLIBRARIES += src/libshared-ell.la
|
|
|
|
endif
|
|
|
|
|
2014-09-25 19:01:43 +08:00
|
|
|
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 \
|
2021-03-20 04:38:25 +08:00
|
|
|
src/shared/tester.h\
|
2014-09-25 19:01:43 +08:00
|
|
|
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 \
|
2016-04-28 02:02:22 +08:00
|
|
|
src/shared/gap.h src/shared/gap.c \
|
2018-11-07 20:26:50 +08:00
|
|
|
src/shared/log.h src/shared/log.c \
|
2020-08-05 08:04:21 +08:00
|
|
|
src/shared/bap.h src/shared/bap.c src/shared/ascs.h \
|
2023-10-18 08:09:29 +08:00
|
|
|
src/shared/bap-debug.h src/shared/bap-debug.c \
|
2022-10-18 12:38:29 +08:00
|
|
|
src/shared/mcs.h src/shared/mcp.h src/shared/mcp.c \
|
2022-09-19 16:07:20 +08:00
|
|
|
src/shared/vcp.c src/shared/vcp.h \
|
2023-09-05 15:09:10 +08:00
|
|
|
src/shared/micp.c src/shared/micp.h \
|
2022-11-22 18:12:29 +08:00
|
|
|
src/shared/csip.c src/shared/csip.h \
|
2023-05-05 16:29:42 +08:00
|
|
|
src/shared/bass.h src/shared/bass.c \
|
2024-02-14 05:57:03 +08:00
|
|
|
src/shared/ccp.h src/shared/ccp.c \
|
2024-03-14 21:40:53 +08:00
|
|
|
src/shared/lc3.h src/shared/tty.h \
|
2024-06-13 00:20:39 +08:00
|
|
|
src/shared/bap-defs.h \
|
|
|
|
src/shared/asha.h src/shared/asha.c
|
2018-04-20 21:01:04 +08:00
|
|
|
|
|
|
|
if READLINE
|
|
|
|
shared_sources += src/shared/shell.c src/shared/shell.h
|
|
|
|
endif
|
2014-09-25 19:01:43 +08:00
|
|
|
|
|
|
|
src_libshared_glib_la_SOURCES = $(shared_sources) \
|
|
|
|
src/shared/io-glib.c \
|
2018-02-21 19:24:41 +08:00
|
|
|
src/shared/timeout-glib.c \
|
2018-11-26 21:54:00 +08:00
|
|
|
src/shared/mainloop-glib.c \
|
|
|
|
src/shared/mainloop-notify.h \
|
2021-03-20 04:38:25 +08:00
|
|
|
src/shared/mainloop-notify.c \
|
|
|
|
src/shared/tester.c
|
2021-12-21 07:49:45 +08:00
|
|
|
src_libshared_glib_la_LDFLAGS = $(AM_LDFLAGS)
|
|
|
|
src_libshared_glib_la_CFLAGS = $(AM_CFLAGS)
|
2014-09-25 19:01:43 +08:00
|
|
|
|
|
|
|
src_libshared_mainloop_la_SOURCES = $(shared_sources) \
|
|
|
|
src/shared/io-mainloop.c \
|
|
|
|
src/shared/timeout-mainloop.c \
|
2018-11-26 21:54:00 +08:00
|
|
|
src/shared/mainloop.h src/shared/mainloop.c \
|
|
|
|
src/shared/mainloop-notify.h \
|
|
|
|
src/shared/mainloop-notify.c
|
2021-12-21 07:49:45 +08:00
|
|
|
src_libshared_mainloop_la_LDFLAGS = $(AM_LDFLAGS)
|
|
|
|
src_libshared_mainloop_la_CFLAGS = $(AM_CFLAGS)
|
2014-09-25 19:01:43 +08:00
|
|
|
|
2018-12-04 23:59:01 +08:00
|
|
|
if LIBSHARED_ELL
|
2018-05-16 09:58:55 +08:00
|
|
|
src_libshared_ell_la_SOURCES = $(shared_sources) \
|
2019-08-11 15:00:45 +08:00
|
|
|
src/shared/io-ell.c \
|
|
|
|
src/shared/timeout-ell.c \
|
|
|
|
src/shared/mainloop.h \
|
|
|
|
src/shared/mainloop-ell.c
|
2021-12-21 07:49:45 +08:00
|
|
|
src_libshared_ell_la_LDFLAGS = $(AM_LDFLAGS)
|
|
|
|
src_libshared_ell_la_CFLAGS = $(AM_CFLAGS)
|
2018-05-17 02:36:07 +08:00
|
|
|
endif
|
2018-05-16 09:58:55 +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 \
|
2022-01-07 03:29:55 +08:00
|
|
|
attrib/gattrib.h attrib/gattrib.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 =
|
2018-11-25 17:20:11 +08:00
|
|
|
builtin_cppflags =
|
2017-01-04 01:30:06 +08:00
|
|
|
builtin_ldadd =
|
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
|
|
|
|
2019-04-12 22:07:41 +08:00
|
|
|
pkglibexec_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) \
|
2010-05-21 20:26:15 +08:00
|
|
|
src/main.c src/log.h src/log.c \
|
2015-11-08 21:44:24 +08:00
|
|
|
src/backtrace.h src/backtrace.c \
|
2020-10-29 05:53:36 +08:00
|
|
|
src/rfkill.c src/btd.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 \
|
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 \
|
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 \
|
2016-09-26 21:46:09 +08:00
|
|
|
src/device.h src/device.c \
|
2009-08-23 15:40:59 +08:00
|
|
|
src/dbus-common.c src/dbus-common.h \
|
2020-09-12 14:51:21 +08:00
|
|
|
src/eir.h src/eir.c \
|
2020-12-01 05:55:56 +08:00
|
|
|
src/adv_monitor.h src/adv_monitor.c \
|
2022-05-12 06:33:27 +08:00
|
|
|
src/battery.h src/battery.c \
|
2023-03-03 09:10:07 +08:00
|
|
|
src/settings.h src/settings.c \
|
|
|
|
src/set.h src/set.c
|
2014-09-25 19:01:43 +08:00
|
|
|
src_bluetoothd_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
gdbus/libgdbus-internal.la \
|
|
|
|
src/libshared-glib.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
$(BACKTRACE_LIBS) $(GLIB_LIBS) $(DBUS_LIBS) -ldl -lrt \
|
2017-01-04 01:30:06 +08:00
|
|
|
$(builtin_ldadd)
|
2024-01-29 22:44:20 +08:00
|
|
|
|
|
|
|
if EXTERNAL_PLUGINS
|
|
|
|
src_bluetoothd_SOURCES += src/bluetooth.ver
|
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
|
2024-01-29 22:44:20 +08:00
|
|
|
endif
|
2010-10-06 20:11:53 +08:00
|
|
|
|
2018-11-25 17:20:08 +08:00
|
|
|
src_bluetoothd_CPPFLAGS = $(AM_CPPFLAGS) -DBLUETOOTH_PLUGIN_BUILTIN \
|
2018-11-25 17:20:11 +08:00
|
|
|
-DPLUGINDIR=\""$(build_plugindir)"\" \
|
2018-11-25 17:20:12 +08:00
|
|
|
$(BACKTRACE_CFLAGS) $(builtin_cppflags)
|
2011-11-13 12:48:44 +08:00
|
|
|
src_bluetoothd_SHORTNAME = bluetoothd
|
|
|
|
|
2024-01-25 00:20:06 +08:00
|
|
|
builtin_files = src/builtin.h
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
nodist_src_bluetoothd_SOURCES = $(builtin_files)
|
|
|
|
|
2024-01-25 00:20:09 +08:00
|
|
|
CLEANFILES += $(builtin_files)
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2021-05-04 13:02:04 +08:00
|
|
|
if MANPAGES
|
|
|
|
man_MANS += src/bluetoothd.8
|
2024-10-19 03:36:55 +08:00
|
|
|
man_MANS += doc/hci.7 doc/l2cap.7 doc/rfcomm.7
|
2023-10-05 06:46:32 +08:00
|
|
|
man_MANS += doc/org.bluez.Adapter.5 doc/org.bluez.Device.5 \
|
2023-10-05 07:20:18 +08:00
|
|
|
doc/org.bluez.DeviceSet.5 doc/org.bluez.AgentManager.5 \
|
2023-10-06 03:05:19 +08:00
|
|
|
doc/org.bluez.Agent.5 doc/org.bluez.ProfileManager.5 \
|
2023-10-06 07:58:17 +08:00
|
|
|
doc/org.bluez.Profile.5 doc/org.bluez.NetworkServer.5 \
|
2023-10-10 04:41:01 +08:00
|
|
|
doc/org.bluez.Network.5 doc/org.bluez.Input.5 \
|
|
|
|
doc/org.bluez.BatteryProviderManager.5 \
|
2023-10-10 05:40:55 +08:00
|
|
|
doc/org.bluez.BatteryProvider.5 doc/org.bluez.Battery.5 \
|
|
|
|
doc/org.bluez.AdminPolicySet.5 \
|
|
|
|
doc/org.bluez.AdminPolicyStatus.5
|
2023-09-28 05:53:48 +08:00
|
|
|
man_MANS += doc/org.bluez.Media.5 doc/org.bluez.MediaControl.5 \
|
|
|
|
doc/org.bluez.MediaPlayer.5 doc/org.bluez.MediaFolder.5 \
|
|
|
|
doc/org.bluez.MediaItem.5 doc/org.bluez.MediaEndpoint.5 \
|
2024-07-03 22:58:39 +08:00
|
|
|
doc/org.bluez.MediaTransport.5 doc/org.bluez.MediaAssistant.5
|
2023-10-07 08:51:04 +08:00
|
|
|
man_MANS += doc/org.bluez.GattManager.5 doc/org.bluez.GattProfile.5 \
|
|
|
|
doc/org.bluez.GattService.5 \
|
|
|
|
doc/org.bluez.GattCharacteristic.5 \
|
|
|
|
doc/org.bluez.GattDescriptor.5 \
|
|
|
|
doc/org.bluez.LEAdvertisingManager.5 \
|
2023-10-10 02:25:40 +08:00
|
|
|
doc/org.bluez.LEAdvertisement.5 \
|
|
|
|
doc/org.bluez.AdvertisementMonitorManager.5 \
|
|
|
|
doc/org.bluez.AdvertisementMonitor.5
|
2023-10-13 04:20:44 +08:00
|
|
|
man_MANS += doc/org.bluez.obex.Client.5 doc/org.bluez.obex.Session.5 \
|
|
|
|
doc/org.bluez.obex.Transfer.5 \
|
|
|
|
doc/org.bluez.obex.ObjectPush.5 \
|
|
|
|
doc/org.bluez.obex.FileTransfer.5 \
|
|
|
|
doc/org.bluez.obex.Synchronization.5 \
|
|
|
|
doc/org.bluez.obex.PhonebookAccess.5 \
|
|
|
|
doc/org.bluez.obex.MessageAccess.5 \
|
|
|
|
doc/org.bluez.obex.Message.5 \
|
2024-09-17 15:42:17 +08:00
|
|
|
doc/org.bluez.obex.AgentManager.5 doc/org.bluez.obex.Agent.5 \
|
|
|
|
doc/org.bluez.obex.Image.5
|
2021-05-04 13:02:04 +08:00
|
|
|
endif
|
2021-05-04 13:02:06 +08:00
|
|
|
manual_pages += src/bluetoothd.8
|
2024-10-22 04:30:48 +08:00
|
|
|
manual_pages += doc/hci.7 doc/l2cap.7 doc/rfcomm.7
|
2023-10-05 06:46:32 +08:00
|
|
|
manual_pages += doc/org.bluez.Adapter.5 doc/org.bluez.Device.5 \
|
2023-10-05 07:20:18 +08:00
|
|
|
doc/org.bluez.DeviceSet.5 doc/org.bluez.AgentManager.5 \
|
2023-10-06 03:05:19 +08:00
|
|
|
doc/org.bluez.Agent.5 doc/org.bluez.ProfileManager.5 \
|
2023-10-06 07:58:17 +08:00
|
|
|
doc/org.bluez.Profile.5 doc/org.bluez.NetworkServer.5 \
|
2023-10-10 04:41:01 +08:00
|
|
|
doc/org.bluez.Network.5 doc/org.bluez.Input.5\
|
|
|
|
doc/org.bluez.BatteryProviderManager.5 \
|
2023-10-10 05:40:55 +08:00
|
|
|
doc/org.bluez.BatteryProvider.5 doc/org.bluez.Battery.5 \
|
|
|
|
doc/org.bluez.AdminPolicySet.5 \
|
|
|
|
doc/org.bluez.AdminPolicyStatus.5
|
2023-09-28 05:53:48 +08:00
|
|
|
manual_pages += doc/org.bluez.Media.5 doc/org.bluez.MediaControl.5 \
|
|
|
|
doc/org.bluez.MediaPlayer.5 doc/org.bluez.MediaFolder.5 \
|
|
|
|
doc/org.bluez.MediaItem.5 doc/org.bluez.MediaEndpoint.5 \
|
2024-07-03 22:58:39 +08:00
|
|
|
doc/org.bluez.MediaTransport.5 doc/org.bluez.MediaAssistant.5
|
2023-10-07 08:51:04 +08:00
|
|
|
manual_pages += doc/org.bluez.GattManager.5 doc/org.bluez.GattProfile.5 \
|
|
|
|
doc/org.bluez.GattService.5 \
|
|
|
|
doc/org.bluez.GattCharacteristic.5 \
|
|
|
|
doc/org.bluez.GattDescriptor.5 \
|
|
|
|
doc/org.bluez.LEAdvertisingManager.5 \
|
2023-10-10 02:25:40 +08:00
|
|
|
doc/org.bluez.LEAdvertisement.5 \
|
|
|
|
doc/org.bluez.AdvertisementMonitorManager.5 \
|
|
|
|
doc/org.bluez.AdvertisementMonitor.5
|
2023-10-13 04:20:44 +08:00
|
|
|
manual_pages += doc/org.bluez.obex.Client.5 doc/org.bluez.obex.Session.5 \
|
|
|
|
doc/org.bluez.obex.Transfer.5 \
|
|
|
|
doc/org.bluez.obex.ObjectPush.5 \
|
|
|
|
doc/org.bluez.obex.FileTransfer.5 \
|
|
|
|
doc/org.bluez.obex.Synchronization.5 \
|
|
|
|
doc/org.bluez.obex.PhonebookAccess.5 \
|
|
|
|
doc/org.bluez.obex.MessageAccess.5 \
|
|
|
|
doc/org.bluez.obex.Message.5 \
|
2024-09-17 15:42:17 +08:00
|
|
|
doc/org.bluez.obex.AgentManager.5 doc/org.bluez.obex.Agent.5 \
|
|
|
|
doc/org.bluez.obex.Image.5
|
2009-08-23 15:40:59 +08:00
|
|
|
|
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 \
|
2024-11-05 20:04:17 +08:00
|
|
|
profiles/input/input.conf obexd/src/obex.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
|
2018-07-15 03:59:03 +08:00
|
|
|
include Makefile.mesh
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2024-03-04 22:21:57 +08:00
|
|
|
if SYSTEMD
|
|
|
|
install-data-hook: obexd-add-service-symlink
|
|
|
|
else
|
2024-02-17 07:11:05 +08:00
|
|
|
install-data-hook: bluetoothd-fix-permissions obexd-add-service-symlink
|
2024-03-04 22:21:57 +08:00
|
|
|
endif
|
|
|
|
|
2024-02-17 07:11:05 +08:00
|
|
|
uninstall-hook: obexd-remove-service-symlink
|
|
|
|
|
2012-12-19 22:03:45 +08:00
|
|
|
if HID2HCI
|
2018-11-25 17:20:06 +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 \
|
2023-08-16 08:11:02 +08:00
|
|
|
doc/test-runner.rst \
|
2015-04-05 04:30:10 +08:00
|
|
|
doc/settings-storage.txt
|
2012-12-21 16:41:43 +08:00
|
|
|
|
|
|
|
EXTRA_DIST += doc/mgmt-api.txt \
|
2023-10-06 07:58:17 +08:00
|
|
|
doc/health-api.txt \
|
2023-10-06 08:13:34 +08:00
|
|
|
doc/sap-api.txt
|
2023-09-28 05:53:48 +08:00
|
|
|
|
2024-10-19 03:36:55 +08:00
|
|
|
EXTRA_DIST += doc/hci.rst doc/l2cap.rst doc/rfcomm.rst
|
2024-05-16 03:26:55 +08:00
|
|
|
|
2023-10-05 06:46:32 +08:00
|
|
|
EXTRA_DIST += doc/org.bluez.Adapter.rst doc/org.bluez.Device.rst \
|
2023-10-10 04:41:01 +08:00
|
|
|
doc/org.bluez.DeviceSet.rst doc/org.bluez.AgentManager.rst \
|
|
|
|
doc/org.bluez.Agent.rst doc/org.bluez.ProfileManager.rst \
|
|
|
|
doc/org.bluez.Profile.rst doc/org.bluez.NetworkServer.rst \
|
|
|
|
doc/org.bluez.Network.rst doc/org.bluez.Input.rst \
|
|
|
|
doc/org.bluez.BatteryProviderManager.rst \
|
2023-10-10 05:40:55 +08:00
|
|
|
doc/org.bluez.BatteryProvider.rst doc/org.bluez.Battery.rst \
|
|
|
|
doc/org.bluez.AdminPolicySet.rst \
|
|
|
|
doc/org.bluez.AdminPolicyStatus.rst
|
2023-09-29 08:51:07 +08:00
|
|
|
|
2023-09-28 05:53:48 +08:00
|
|
|
EXTRA_DIST += doc/org.bluez.Media.rst doc/org.bluez.MediaControl.rst \
|
|
|
|
doc/org.bluez.MediaPlayer.rst doc/org.bluez.MediaFolder.rst \
|
|
|
|
doc/org.bluez.MediaItem.rst doc/org.bluez.MediaEndpoint.rst \
|
2024-07-03 22:58:39 +08:00
|
|
|
doc/org.bluez.MediaTransport.rst doc/org.bluez.MediaAssistant.rst
|
2012-12-21 16:41:43 +08:00
|
|
|
|
2023-10-07 08:51:04 +08:00
|
|
|
EXTRA_DIST += doc/org.bluez.GattManager.rst doc/org.bluez.GattProfile.rst\
|
|
|
|
doc/org.bluez.GattService.rst \
|
|
|
|
doc/org.bluez.GattCharacteristic.rst \
|
|
|
|
doc/org.bluez.GattDescriptor.rst \
|
|
|
|
doc/org.bluez.LEAdvertisingManager.rst \
|
2023-10-10 02:25:40 +08:00
|
|
|
doc/org.bluez.LEAdvertisement.rst \
|
|
|
|
doc/org.bluez.AdvertisementMonitorManager.rst \
|
|
|
|
doc/org.bluez.AdvertisementMonitor.rst
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2023-10-13 04:20:44 +08:00
|
|
|
EXTRA_DIST += doc/org.bluez.obex.Client.rst doc/org.bluez.obex.Session.rst \
|
|
|
|
doc/org.bluez.obex.Transfer.rst \
|
|
|
|
doc/org.bluez.obex.ObjectPush.rst \
|
|
|
|
doc/org.bluez.obex.FileTransfer.rst \
|
|
|
|
doc/org.bluez.obex.Synchronization.rst \
|
|
|
|
doc/org.bluez.obex.PhonebookAccess.rst \
|
|
|
|
doc/org.bluez.obex.MessageAccess.rst \
|
|
|
|
doc/org.bluez.obex.Message.rst \
|
2024-09-17 15:42:17 +08:00
|
|
|
doc/org.bluez.obex.AgentManager.rst doc/org.bluez.obex.Agent.rst \
|
|
|
|
doc/org.bluez.obex.Image.rst
|
2012-12-22 00:59:04 +08:00
|
|
|
|
2015-08-03 13:56:31 +08:00
|
|
|
EXTRA_DIST += doc/pics-opp.txt doc/pixit-opp.txt \
|
|
|
|
doc/pts-opp.txt
|
|
|
|
|
2016-05-23 15:09:57 +08:00
|
|
|
EXTRA_DIST += doc/btsnoop.txt
|
|
|
|
|
2012-12-22 04:15:31 +08:00
|
|
|
EXTRA_DIST += tools/magic.btsnoop
|
|
|
|
|
2018-11-25 17:20:08 +08:00
|
|
|
AM_CPPFLAGS += $(DBUS_CFLAGS) $(GLIB_CFLAGS) -I$(builddir)/lib
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2022-08-05 06:24:14 +08:00
|
|
|
unit_tests += unit/test-tester
|
|
|
|
|
|
|
|
unit_test_tester_SOURCES = unit/test-tester.c
|
|
|
|
unit_test_tester_LDADD = src/libshared-glib.la lib/libbluetooth-internal.la \
|
|
|
|
$(GLIB_LIBS)
|
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 \
|
2018-11-25 17:20:06 +08:00
|
|
|
$(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
|
2015-05-19 23:01:04 +08:00
|
|
|
unit_test_uuid_LDADD = src/libshared-glib.la lib/libbluetooth-internal.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
$(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
|
2018-11-25 17:20:06 +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
|
2018-11-25 17:20: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
|
2018-11-25 17:20:06 +08:00
|
|
|
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
|
2018-11-25 17:20:06 +08:00
|
|
|
unit_test_ecc_LDADD = src/libshared-glib.la $(GLIB_LIBS)
|
2014-04-17 06:41:54 +08:00
|
|
|
|
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
|
2018-11-25 17:20:06 +08:00
|
|
|
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
|
2018-11-25 17:20:06 +08:00
|
|
|
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
|
2018-11-25 17:20:06 +08:00
|
|
|
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
|
2018-11-25 17:20:06 +08:00
|
|
|
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 \
|
2018-11-25 17:20:06 +08:00
|
|
|
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
|
2018-11-25 17:20:06 +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
|
2018-11-25 17:20:06 +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 \
|
2018-11-25 17:20:06 +08:00
|
|
|
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
|
2018-11-25 17:20:06 +08:00
|
|
|
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 \
|
2018-11-25 17:20:06 +08:00
|
|
|
src/libshared-glib.la $(GLIB_LIBS) $(DBUS_LIBS)
|
2012-12-17 06:03:16 +08:00
|
|
|
|
2021-05-06 11:42:55 +08:00
|
|
|
if OBEX
|
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
|
2022-01-07 04:50:33 +08:00
|
|
|
unit_test_gobex_LDADD = src/libshared-glib.la $(GLIB_LIBS)
|
2012-12-01 22:08:06 +08:00
|
|
|
|
|
|
|
unit_test_gobex_packet_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-packet.c
|
2022-01-07 04:50:33 +08:00
|
|
|
unit_test_gobex_packet_LDADD = src/libshared-glib.la $(GLIB_LIBS)
|
2012-12-01 22:08:06 +08:00
|
|
|
|
|
|
|
unit_test_gobex_header_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-header.c
|
2022-01-07 04:50:33 +08:00
|
|
|
unit_test_gobex_header_LDADD = src/libshared-glib.la $(GLIB_LIBS)
|
2012-12-01 22:08:06 +08:00
|
|
|
|
|
|
|
unit_test_gobex_transfer_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-transfer.c
|
2022-01-07 04:50:33 +08:00
|
|
|
unit_test_gobex_transfer_LDADD = src/libshared-glib.la $(GLIB_LIBS)
|
2012-12-01 22:08:06 +08:00
|
|
|
|
|
|
|
unit_test_gobex_apparam_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-apparam.c
|
2022-01-07 04:50:33 +08:00
|
|
|
unit_test_gobex_apparam_LDADD = src/libshared-glib.la $(GLIB_LIBS)
|
2021-05-06 11:42:55 +08:00
|
|
|
endif
|
2012-12-01 22:08:06 +08:00
|
|
|
|
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 \
|
2018-11-25 17:20:06 +08:00
|
|
|
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 \
|
2018-11-25 17:20:06 +08:00
|
|
|
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) \
|
2015-11-11 19:39:51 +08:00
|
|
|
profiles/input/hog-lib.h profiles/input/hog-lib.c \
|
2015-11-11 19:17:33 +08:00
|
|
|
profiles/scanparam/scpp.h profiles/scanparam/scpp.c \
|
2015-11-11 19:08:52 +08:00
|
|
|
profiles/battery/bas.h profiles/battery/bas.c \
|
2015-11-11 19:26:11 +08:00
|
|
|
profiles/deviceinfo/dis.h profiles/deviceinfo/dis.c \
|
2015-03-16 23:38:52 +08:00
|
|
|
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 \
|
2018-11-25 17:20:06 +08:00
|
|
|
lib/libbluetooth-internal.la $(GLIB_LIBS)
|
2015-03-16 23:38:52 +08:00
|
|
|
|
2014-11-01 02:14:54 +08:00
|
|
|
unit_tests += unit/test-gattrib
|
|
|
|
|
2018-05-29 21:32:09 +08:00
|
|
|
unit_test_gattrib_SOURCES = unit/test-gattrib.c attrib/gattrib.c \
|
|
|
|
$(btio_sources) src/log.h src/log.c
|
2023-01-06 05:59:20 +08:00
|
|
|
unit_test_gattrib_LDADD = src/libshared-glib.la \
|
|
|
|
lib/libbluetooth-internal.la \
|
|
|
|
$(GLIB_LIBS) $(DBUS_LIBS) -ldl -lrt
|
2014-11-01 02:14:54 +08:00
|
|
|
|
2022-11-04 05:59:51 +08:00
|
|
|
unit_tests += unit/test-bap
|
|
|
|
|
|
|
|
unit_test_bap_SOURCES = unit/test-bap.c
|
|
|
|
unit_test_bap_LDADD = src/libshared-glib.la \
|
2023-10-05 20:15:43 +08:00
|
|
|
lib/libbluetooth-internal.la $(GLIB_LIBS)
|
|
|
|
|
|
|
|
unit_tests += unit/test-micp
|
|
|
|
|
|
|
|
unit_test_micp_SOURCES = unit/test-micp.c
|
|
|
|
unit_test_micp_LDADD = src/libshared-glib.la \
|
2022-11-04 05:59:51 +08:00
|
|
|
lib/libbluetooth-internal.la $(GLIB_LIBS)
|
|
|
|
|
2023-05-29 16:46:50 +08:00
|
|
|
unit_tests += unit/test-bass
|
|
|
|
|
2023-06-29 16:07:35 +08:00
|
|
|
unit_test_bass_SOURCES = unit/test-bass.c $(btio_sources)
|
2023-05-29 16:46:50 +08:00
|
|
|
unit_test_bass_LDADD = src/libshared-glib.la \
|
|
|
|
lib/libbluetooth-internal.la $(GLIB_LIBS)
|
|
|
|
|
2023-10-10 19:05:49 +08:00
|
|
|
unit_tests += unit/test-vcp
|
|
|
|
|
|
|
|
unit_test_vcp_SOURCES = unit/test-vcp.c $(btio_sources)
|
|
|
|
unit_test_vcp_LDADD = src/libshared-glib.la \
|
|
|
|
lib/libbluetooth-internal.la $(GLIB_LIBS)
|
|
|
|
|
2017-01-04 01:30:07 +08:00
|
|
|
if MIDI
|
|
|
|
unit_tests += unit/test-midi
|
2018-11-25 17:20:08 +08:00
|
|
|
unit_test_midi_CPPFLAGS = $(AM_CPPFLAGS) $(ALSA_CFLAGS) -DMIDI_TEST
|
2017-01-04 01:30:07 +08:00
|
|
|
unit_test_midi_SOURCES = unit/test-midi.c \
|
|
|
|
profiles/midi/libmidi.h \
|
|
|
|
profiles/midi/libmidi.c
|
|
|
|
unit_test_midi_LDADD = src/libshared-glib.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
$(GLIB_LIBS) $(ALSA_LIBS)
|
2017-01-04 01:30:07 +08:00
|
|
|
endif
|
|
|
|
|
2019-10-16 16:57:23 +08:00
|
|
|
if MESH
|
2019-10-04 04:44:05 +08:00
|
|
|
unit_tests += unit/test-mesh-crypto
|
|
|
|
unit_test_mesh_crypto_CPPFLAGS = $(ell_cflags)
|
|
|
|
unit_test_mesh_crypto_SOURCES = unit/test-mesh-crypto.c \
|
2019-11-06 06:49:10 +08:00
|
|
|
mesh/crypto.h ell/internal ell/ell.h
|
|
|
|
unit_test_mesh_crypto_LDADD = $(ell_ldadd)
|
2019-10-16 16:57:23 +08:00
|
|
|
endif
|
2019-10-04 04:44:05 +08:00
|
|
|
|
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
|
|
|
|
|
2015-08-21 21:40:48 +08:00
|
|
|
if VALGRIND
|
|
|
|
LOG_COMPILER = valgrind --error-exitcode=1 --num-callers=30
|
|
|
|
LOG_FLAGS = --trace-children=yes --leak-check=full --show-reachable=no \
|
2015-09-04 08:27:26 +08:00
|
|
|
--suppressions=$(srcdir)/tools/valgrind.supp --quiet
|
2015-08-21 21:40:48 +08:00
|
|
|
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
|
|
|
|
2021-05-06 02:44:05 +08:00
|
|
|
EXTRA_DIST += $(manual_pages) $(patsubst %.1,%.rst, \
|
|
|
|
$(patsubst %.8,%.rst,$(manual_pages)))
|
2014-07-12 20:26:10 +08:00
|
|
|
|
2013-01-10 12:32:40 +08:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles --enable-library \
|
2017-08-21 19:40:51 +08:00
|
|
|
--enable-health \
|
|
|
|
--enable-midi \
|
|
|
|
--enable-manpages \
|
|
|
|
--enable-android \
|
2018-12-04 23:59:01 +08:00
|
|
|
--enable-mesh \
|
|
|
|
--enable-btpclient \
|
2017-08-21 19:40:51 +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
|
|
|
|
2021-05-04 13:02:05 +08:00
|
|
|
if RUN_RST2MAN
|
|
|
|
RST2MAN_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
|
|
|
|
$(RST2MAN) --strict --no-raw \
|
|
|
|
--no-generator --no-datestamp $< $@
|
|
|
|
else
|
|
|
|
RST2MAN_PROCESS = $(AM_V_GEN)test -f $@ || \
|
|
|
|
{ echo "Generated manual page $@ does not exist"; false; }
|
|
|
|
endif
|
|
|
|
|
|
|
|
%.1: %.rst Makefile
|
|
|
|
$(RST2MAN_PROCESS)
|
2014-07-12 20:26:10 +08:00
|
|
|
|
2023-09-28 05:53:48 +08:00
|
|
|
%.5: %.rst Makefile
|
|
|
|
$(RST2MAN_PROCESS)
|
|
|
|
|
2024-05-16 03:26:55 +08:00
|
|
|
%.7: %.rst Makefile
|
|
|
|
$(RST2MAN_PROCESS)
|
|
|
|
|
2021-05-04 13:02:06 +08:00
|
|
|
%.8: %.rst Makefile
|
|
|
|
$(RST2MAN_PROCESS)
|
|
|
|
|
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:
|
2019-10-08 18:01:56 +08:00
|
|
|
$(AM_V_at)$(MKDIR_P) tools
|
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
|
2017-08-24 06:58:39 +08:00
|
|
|
$(AM_V_GEN)$(LN_S) -f $(abspath $<) $@
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2021-04-02 13:26:29 +08:00
|
|
|
ell/shared: Makefile
|
2021-04-29 16:14:28 +08:00
|
|
|
$(AM_V_at)$(MKDIR_P) ell
|
2021-04-02 13:26:29 +08:00
|
|
|
$(AM_V_GEN)for f in $(ell_shared) ; do \
|
|
|
|
if [ ! -f $$f ] ; then \
|
|
|
|
$(LN_S) -t ell -f $(abs_srcdir)/../ell/$$f ; \
|
|
|
|
fi \
|
|
|
|
done > $@
|
|
|
|
|
2018-12-04 23:59:01 +08:00
|
|
|
ell/internal: Makefile
|
|
|
|
$(AM_V_at)$(MKDIR_P) ell
|
|
|
|
$(AM_V_GEN)for f in $(ell_headers) $(ell_sources) ; do \
|
|
|
|
if [ ! -f $$f ] ; then \
|
|
|
|
$(LN_S) -t ell -f $(abs_srcdir)/../ell/$$f ; \
|
|
|
|
fi \
|
|
|
|
done > $@
|
|
|
|
|
|
|
|
ell/ell.h: Makefile
|
|
|
|
$(AM_V_at)echo -n > $@
|
|
|
|
$(AM_V_GEN)for f in $(ell_headers) ; do \
|
|
|
|
echo "#include <$$f>" >> $@ ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
maintainer-clean-local:
|
|
|
|
-rm -rf ell
|
|
|
|
|
2013-12-11 17:01:25 +08:00
|
|
|
clean-coverage:
|
2024-02-17 07:11:09 +08:00
|
|
|
if COVERAGE
|
2013-12-11 17:01:25 +08:00
|
|
|
@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
|
2024-02-17 07:11:09 +08:00
|
|
|
endif
|
2013-12-11 17:01:25 +08:00
|
|
|
|
|
|
|
clean-local: clean-coverage
|
|
|
|
-find $(top_builddir) -name "*.gcno" -delete
|
|
|
|
-find $(top_builddir) -name "*.gcda" -delete
|
|
|
|
$(RM) -r lib/bluetooth
|