2020-09-22 03:00:38 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2012-12-12 05:19:13 +08:00
|
|
|
if CLIENT
|
2012-12-13 06:24:27 +08:00
|
|
|
bin_PROGRAMS += client/bluetoothctl
|
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
client_bluetoothctl_SOURCES = client/main.c \
|
2022-12-01 08:04:05 +08:00
|
|
|
client/print.h client/print.c \
|
2012-12-18 11:17:45 +08:00
|
|
|
client/display.h client/display.c \
|
2012-12-23 11:11:46 +08:00
|
|
|
client/agent.h client/agent.c \
|
2016-08-09 19:32:46 +08:00
|
|
|
client/advertising.h \
|
|
|
|
client/advertising.c \
|
2020-09-16 15:16:49 +08:00
|
|
|
client/adv_monitor.h \
|
|
|
|
client/adv_monitor.c \
|
2021-08-11 15:08:56 +08:00
|
|
|
client/gatt.h client/gatt.c \
|
2022-03-29 05:18:07 +08:00
|
|
|
client/admin.h client/admin.c \
|
2023-07-15 06:14:02 +08:00
|
|
|
client/player.h client/player.c \
|
|
|
|
client/mgmt.h client/mgmt.c
|
|
|
|
client_bluetoothctl_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
gdbus/libgdbus-internal.la src/libshared-glib.la \
|
|
|
|
$(GLIB_LIBS) $(DBUS_LIBS) -lreadline
|
2012-12-12 05:19:13 +08:00
|
|
|
endif
|
|
|
|
|
2019-08-17 14:34:52 +08:00
|
|
|
if ZSH_COMPLETIONS
|
|
|
|
zshcompletiondir=$(ZSH_COMPLETIONDIR)
|
|
|
|
dist_zshcompletion_DATA = completion/zsh/_bluetoothctl
|
|
|
|
endif
|
|
|
|
|
2012-12-13 06:19:43 +08:00
|
|
|
if MONITOR
|
|
|
|
bin_PROGRAMS += monitor/btmon
|
|
|
|
|
|
|
|
monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \
|
2014-02-12 03:53:00 +08:00
|
|
|
monitor/display.h monitor/display.c \
|
|
|
|
monitor/hcidump.h monitor/hcidump.c \
|
|
|
|
monitor/ellisys.h monitor/ellisys.c \
|
|
|
|
monitor/control.h monitor/control.c \
|
|
|
|
monitor/packet.h monitor/packet.c \
|
|
|
|
monitor/vendor.h monitor/vendor.c \
|
|
|
|
monitor/lmp.h monitor/lmp.c \
|
|
|
|
monitor/crc.h monitor/crc.c \
|
|
|
|
monitor/ll.h monitor/ll.c \
|
|
|
|
monitor/l2cap.h monitor/l2cap.c \
|
|
|
|
monitor/sdp.h monitor/sdp.c \
|
2014-07-28 22:24:29 +08:00
|
|
|
monitor/avctp.h monitor/avctp.c \
|
2015-11-23 04:20:14 +08:00
|
|
|
monitor/avdtp.h monitor/avdtp.c \
|
2015-11-23 04:20:30 +08:00
|
|
|
monitor/a2dp.h monitor/a2dp.c \
|
2014-11-07 23:43:35 +08:00
|
|
|
monitor/rfcomm.h monitor/rfcomm.c \
|
2015-04-02 19:32:05 +08:00
|
|
|
monitor/bnep.h monitor/bnep.c \
|
2014-02-12 03:53:00 +08:00
|
|
|
monitor/hwdb.h monitor/hwdb.c \
|
2014-02-17 16:21:59 +08:00
|
|
|
monitor/keys.h monitor/keys.c \
|
2015-10-08 04:42:29 +08:00
|
|
|
monitor/analyze.h monitor/analyze.c \
|
2015-10-10 04:39:00 +08:00
|
|
|
monitor/intel.h monitor/intel.c \
|
2016-05-03 14:11:04 +08:00
|
|
|
monitor/broadcom.h monitor/broadcom.c \
|
2021-03-20 01:43:02 +08:00
|
|
|
monitor/msft.h monitor/msft.c \
|
2018-02-20 22:52:49 +08:00
|
|
|
monitor/jlink.h monitor/jlink.c \
|
2022-05-17 08:50:38 +08:00
|
|
|
monitor/tty.h monitor/emulator.h \
|
2022-05-18 08:45:22 +08:00
|
|
|
monitor/att.h monitor/att.c \
|
|
|
|
src/log.h src/log.c \
|
|
|
|
src/textfile.h src/textfile.c \
|
|
|
|
src/settings.h src/settings.c
|
2014-09-25 19:01:43 +08:00
|
|
|
monitor_btmon_LDADD = lib/libbluetooth-internal.la \
|
2022-05-17 08:50:38 +08:00
|
|
|
src/libshared-mainloop.la \
|
|
|
|
$(GLIB_LIBS) $(UDEV_LIBS) -ldl
|
2021-05-04 13:02:04 +08:00
|
|
|
|
|
|
|
if MANPAGES
|
2021-05-04 13:02:05 +08:00
|
|
|
man_MANS += monitor/btmon.1
|
2021-05-04 13:02:04 +08:00
|
|
|
endif
|
2012-12-16 02:47:02 +08:00
|
|
|
endif
|
2021-05-04 13:02:05 +08:00
|
|
|
manual_pages += monitor/btmon.1
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2018-01-19 23:23:20 +08:00
|
|
|
if LOGGER
|
2019-04-12 22:07:41 +08:00
|
|
|
pkglibexec_PROGRAMS += tools/btmon-logger
|
2018-01-19 23:23:20 +08:00
|
|
|
|
2018-11-26 23:56:03 +08:00
|
|
|
tools_btmon_logger_SOURCES = tools/btmon-logger.c
|
2018-01-19 23:23:20 +08:00
|
|
|
tools_btmon_logger_LDADD = src/libshared-mainloop.la
|
|
|
|
tools_btmon_logger_DEPENDENCIES = src/libshared-mainloop.la \
|
|
|
|
tools/bluetooth-logger.service
|
|
|
|
|
|
|
|
if SYSTEMD
|
|
|
|
systemdsystemunit_DATA += tools/bluetooth-logger.service
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
CLEANFILES += tools/bluetooth-logger.service
|
|
|
|
EXTRA_DIST += tools/bluetooth-logger.service.in
|
|
|
|
|
2017-01-04 21:24:45 +08:00
|
|
|
if TESTING
|
2015-04-29 00:19:12 +08:00
|
|
|
noinst_PROGRAMS += emulator/btvirt emulator/b1ee emulator/hfp \
|
|
|
|
peripheral/btsensor tools/3dsp \
|
2013-05-20 01:19:05 +08:00
|
|
|
tools/mgmt-tester tools/gap-tester \
|
2013-11-05 17:33:27 +08:00
|
|
|
tools/l2cap-tester tools/sco-tester \
|
2014-01-10 17:18:11 +08:00
|
|
|
tools/smp-tester tools/hci-tester \
|
2015-04-29 02:21:11 +08:00
|
|
|
tools/rfcomm-tester tools/bnep-tester \
|
2022-09-01 07:59:32 +08:00
|
|
|
tools/userchan-tester tools/iso-tester \
|
2022-09-22 03:28:26 +08:00
|
|
|
tools/mesh-tester tools/ioctl-tester
|
2012-12-13 06:19:43 +08:00
|
|
|
|
|
|
|
emulator_btvirt_SOURCES = emulator/main.c monitor/bt.h \
|
2014-07-12 21:52:24 +08:00
|
|
|
emulator/serial.h emulator/serial.c \
|
2014-02-17 18:05:21 +08:00
|
|
|
emulator/server.h emulator/server.c \
|
|
|
|
emulator/vhci.h emulator/vhci.c \
|
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
|
|
|
emulator/smp.c \
|
2014-12-14 08:04:59 +08:00
|
|
|
emulator/phy.h emulator/phy.c \
|
2014-02-17 18:05:21 +08:00
|
|
|
emulator/amp.h emulator/amp.c \
|
|
|
|
emulator/le.h emulator/le.c
|
2014-09-25 19:01:43 +08:00
|
|
|
emulator_btvirt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
|
|
|
|
|
|
|
|
emulator_b1ee_SOURCES = emulator/b1ee.c
|
|
|
|
emulator_b1ee_LDADD = src/libshared-mainloop.la
|
|
|
|
|
|
|
|
emulator_hfp_SOURCES = emulator/hfp.c
|
|
|
|
emulator_hfp_LDADD = src/libshared-mainloop.la
|
|
|
|
|
2015-04-29 00:19:12 +08:00
|
|
|
peripheral_btsensor_SOURCES = peripheral/main.c \
|
|
|
|
peripheral/efivars.h peripheral/efivars.c \
|
|
|
|
peripheral/attach.h peripheral/attach.c \
|
|
|
|
peripheral/log.h peripheral/log.c \
|
|
|
|
peripheral/gap.h peripheral/gap.c \
|
|
|
|
peripheral/gatt.h peripheral/gatt.c
|
|
|
|
peripheral_btsensor_LDADD = src/libshared-mainloop.la \
|
|
|
|
lib/libbluetooth-internal.la
|
|
|
|
|
2014-09-25 19:01:43 +08:00
|
|
|
tools_3dsp_SOURCES = tools/3dsp.c monitor/bt.h
|
|
|
|
tools_3dsp_LDADD = src/libshared-mainloop.la
|
2013-12-28 11:36:04 +08:00
|
|
|
|
2013-01-02 04:35:09 +08:00
|
|
|
tools_mgmt_tester_SOURCES = tools/mgmt-tester.c monitor/bt.h \
|
2014-09-25 20:39:10 +08:00
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
2021-10-15 06:58:52 +08:00
|
|
|
emulator/vhci.h emulator/vhci.c \
|
2013-01-01 18:24:21 +08:00
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
2014-09-25 19:01:43 +08:00
|
|
|
emulator/smp.c
|
|
|
|
tools_mgmt_tester_LDADD = lib/libbluetooth-internal.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2022-09-01 07:59:32 +08:00
|
|
|
|
|
|
|
tools_mesh_tester_SOURCES = tools/mesh-tester.c monitor/bt.h \
|
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
|
|
|
emulator/vhci.h emulator/vhci.c \
|
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
|
|
|
emulator/smp.c
|
|
|
|
tools_mesh_tester_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2013-01-01 18:24:21 +08:00
|
|
|
|
2013-05-20 01:19:05 +08:00
|
|
|
tools_l2cap_tester_SOURCES = tools/l2cap-tester.c monitor/bt.h \
|
2014-09-25 20:39:10 +08:00
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
2021-10-15 06:58:52 +08:00
|
|
|
emulator/vhci.h emulator/vhci.c \
|
2013-05-20 01:19:05 +08:00
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
2014-09-25 19:01:43 +08:00
|
|
|
emulator/smp.c
|
|
|
|
tools_l2cap_tester_LDADD = lib/libbluetooth-internal.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2013-05-20 01:19:05 +08:00
|
|
|
|
2014-01-10 17:18:12 +08:00
|
|
|
tools_rfcomm_tester_SOURCES = tools/rfcomm-tester.c monitor/bt.h \
|
2014-09-25 20:39:10 +08:00
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
2021-10-15 06:58:52 +08:00
|
|
|
emulator/vhci.h emulator/vhci.c \
|
2014-01-10 17:18:12 +08:00
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
2014-09-25 19:01:43 +08:00
|
|
|
emulator/smp.c
|
|
|
|
tools_rfcomm_tester_LDADD = lib/libbluetooth-internal.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2014-01-10 17:18:11 +08:00
|
|
|
|
2015-04-05 05:00:17 +08:00
|
|
|
tools_bnep_tester_SOURCES = tools/bnep-tester.c monitor/bt.h \
|
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
2021-10-15 06:58:52 +08:00
|
|
|
emulator/vhci.h emulator/vhci.c \
|
2015-04-05 05:00:17 +08:00
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
|
|
|
emulator/smp.c
|
|
|
|
tools_bnep_tester_LDADD = lib/libbluetooth-internal.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2015-04-05 05:00:17 +08:00
|
|
|
|
2013-11-05 17:33:27 +08:00
|
|
|
tools_smp_tester_SOURCES = tools/smp-tester.c monitor/bt.h \
|
2014-09-25 20:39:10 +08:00
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
2021-10-15 06:58:52 +08:00
|
|
|
emulator/vhci.h emulator/vhci.c \
|
2013-11-05 17:33:27 +08:00
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
2014-09-25 19:01:43 +08:00
|
|
|
emulator/smp.c
|
|
|
|
tools_smp_tester_LDADD = lib/libbluetooth-internal.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2013-11-05 17:33:27 +08:00
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
tools_gap_tester_SOURCES = tools/gap-tester.c monitor/bt.h \
|
2014-09-25 20:39:10 +08:00
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
2021-10-15 06:58:52 +08:00
|
|
|
emulator/vhci.h emulator/vhci.c \
|
2012-12-28 16:08:34 +08:00
|
|
|
emulator/btdev.h emulator/btdev.c \
|
2013-01-02 04:35:09 +08:00
|
|
|
emulator/bthost.h emulator/bthost.c \
|
2014-09-25 19:01:43 +08:00
|
|
|
emulator/smp.c
|
2014-01-07 17:34:49 +08:00
|
|
|
tools_gap_tester_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
gdbus/libgdbus-internal.la \
|
2014-09-25 19:01:43 +08:00
|
|
|
src/libshared-glib.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
$(GLIB_LIBS) $(DBUS_LIBS)
|
2013-08-01 17:47:24 +08:00
|
|
|
|
|
|
|
tools_sco_tester_SOURCES = tools/sco-tester.c monitor/bt.h \
|
2014-09-25 20:39:10 +08:00
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
2021-10-15 06:58:52 +08:00
|
|
|
emulator/vhci.h emulator/vhci.c \
|
2013-08-01 17:47:24 +08:00
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
2014-09-25 19:01:43 +08:00
|
|
|
emulator/smp.c
|
|
|
|
tools_sco_tester_LDADD = lib/libbluetooth-internal.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2014-09-25 19:01:43 +08:00
|
|
|
|
|
|
|
tools_hci_tester_SOURCES = tools/hci-tester.c monitor/bt.h
|
2018-11-25 17:20:06 +08:00
|
|
|
tools_hci_tester_LDADD = src/libshared-glib.la $(GLIB_LIBS)
|
2015-04-29 02:21:11 +08:00
|
|
|
|
|
|
|
tools_userchan_tester_SOURCES = tools/userchan-tester.c monitor/bt.h \
|
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
2021-10-15 06:58:52 +08:00
|
|
|
emulator/vhci.h emulator/vhci.c \
|
2015-04-29 02:21:11 +08:00
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
|
|
|
emulator/smp.c
|
|
|
|
tools_userchan_tester_LDADD = lib/libbluetooth-internal.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2020-10-28 02:23:10 +08:00
|
|
|
|
|
|
|
tools_iso_tester_SOURCES = tools/iso-tester.c monitor/bt.h \
|
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
|
|
|
emulator/vhci.h emulator/vhci.c \
|
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
|
|
|
emulator/smp.c
|
|
|
|
tools_iso_tester_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2022-09-22 03:28:26 +08:00
|
|
|
|
|
|
|
tools_ioctl_tester_SOURCES = tools/ioctl-tester.c monitor/bt.h \
|
|
|
|
emulator/hciemu.h emulator/hciemu.c \
|
|
|
|
emulator/vhci.h emulator/vhci.c \
|
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
|
|
|
emulator/smp.c
|
|
|
|
tools_ioctl_tester_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2012-12-13 06:19:43 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
if TOOLS
|
2020-09-26 06:03:44 +08:00
|
|
|
bin_PROGRAMS += tools/rctest tools/l2test tools/l2ping tools/bluemoon \
|
2019-08-07 15:50:32 +08:00
|
|
|
tools/hex2hcd tools/mpris-proxy tools/btattach tools/isotest
|
2017-01-04 20:47:13 +08:00
|
|
|
|
|
|
|
noinst_PROGRAMS += tools/bdaddr tools/avinfo tools/avtest \
|
|
|
|
tools/scotest tools/amptest tools/hwdb \
|
|
|
|
tools/hcieventmask tools/hcisecfilter \
|
2017-09-14 17:32:43 +08:00
|
|
|
tools/btinfo tools/btconfig \
|
2017-01-04 20:47:13 +08:00
|
|
|
tools/btsnoop tools/btproxy \
|
|
|
|
tools/btiotest tools/bneptest tools/mcaptest \
|
2017-06-08 05:12:28 +08:00
|
|
|
tools/cltest tools/oobtest tools/advtest \
|
2018-01-06 04:46:38 +08:00
|
|
|
tools/seq2bseq tools/nokfw tools/rtlfw \
|
2018-06-05 03:06:56 +08:00
|
|
|
tools/bcmfw tools/create-image \
|
2017-01-04 20:47:13 +08:00
|
|
|
tools/eddystone tools/ibeacon \
|
|
|
|
tools/btgatt-client tools/btgatt-server \
|
|
|
|
tools/test-runner tools/check-selftest \
|
|
|
|
tools/gatt-service profiles/iap/iapd
|
|
|
|
|
|
|
|
tools_bdaddr_SOURCES = tools/bdaddr.c src/oui.h src/oui.c
|
2018-11-25 17:20:06 +08:00
|
|
|
tools_bdaddr_LDADD = lib/libbluetooth-internal.la $(UDEV_LIBS)
|
2017-01-04 20:47:13 +08:00
|
|
|
|
|
|
|
tools_avinfo_LDADD = lib/libbluetooth-internal.la
|
|
|
|
|
|
|
|
tools_avtest_LDADD = lib/libbluetooth-internal.la
|
|
|
|
|
|
|
|
tools_scotest_LDADD = lib/libbluetooth-internal.la
|
|
|
|
|
|
|
|
tools_amptest_LDADD = lib/libbluetooth-internal.la
|
|
|
|
|
|
|
|
tools_hwdb_LDADD = lib/libbluetooth-internal.la
|
|
|
|
|
|
|
|
tools_hcieventmask_LDADD = lib/libbluetooth-internal.la
|
|
|
|
|
|
|
|
tools_btinfo_SOURCES = tools/btinfo.c monitor/bt.h
|
|
|
|
tools_btinfo_LDADD = src/libshared-mainloop.la
|
|
|
|
|
|
|
|
tools_btattach_SOURCES = tools/btattach.c monitor/bt.h
|
|
|
|
tools_btattach_LDADD = src/libshared-mainloop.la
|
|
|
|
|
2017-08-21 18:30:28 +08:00
|
|
|
tools_btconfig_SOURCES = tools/btconfig.c
|
|
|
|
tools_btconfig_LDADD = src/libshared-mainloop.la
|
|
|
|
|
2017-01-04 20:47:13 +08:00
|
|
|
tools_btsnoop_SOURCES = tools/btsnoop.c
|
|
|
|
tools_btsnoop_LDADD = src/libshared-mainloop.la
|
|
|
|
|
|
|
|
tools_btproxy_SOURCES = tools/btproxy.c monitor/bt.h
|
|
|
|
tools_btproxy_LDADD = src/libshared-mainloop.la
|
|
|
|
|
|
|
|
tools_btiotest_SOURCES = tools/btiotest.c btio/btio.h btio/btio.c
|
2018-11-25 17:20:06 +08:00
|
|
|
tools_btiotest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
|
2017-01-04 20:47:13 +08:00
|
|
|
|
|
|
|
tools_mcaptest_SOURCES = tools/mcaptest.c \
|
|
|
|
btio/btio.h btio/btio.c \
|
|
|
|
src/log.c src/log.h \
|
|
|
|
profiles/health/mcap.h profiles/health/mcap.c
|
2018-11-25 17:20:06 +08:00
|
|
|
tools_mcaptest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS) \
|
2018-11-15 21:53:46 +08:00
|
|
|
src/libshared-mainloop.la -lrt
|
2017-01-04 20:47:13 +08:00
|
|
|
|
|
|
|
tools_bneptest_SOURCES = tools/bneptest.c \
|
|
|
|
btio/btio.h btio/btio.c \
|
|
|
|
src/log.h src/log.c \
|
|
|
|
profiles/network/bnep.h profiles/network/bnep.c
|
2018-11-25 17:20:06 +08:00
|
|
|
tools_bneptest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS) \
|
2018-11-15 21:53:46 +08:00
|
|
|
src/libshared-mainloop.la
|
2017-01-04 20:47:13 +08:00
|
|
|
|
|
|
|
tools_cltest_SOURCES = tools/cltest.c
|
|
|
|
tools_cltest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
|
|
|
|
|
|
|
|
tools_oobtest_SOURCES = tools/oobtest.c
|
|
|
|
tools_oobtest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
|
|
|
|
|
2017-06-08 05:12:28 +08:00
|
|
|
tools_advtest_SOURCES = tools/advtest.c
|
|
|
|
tools_advtest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
|
|
|
|
|
2017-01-04 20:47:13 +08:00
|
|
|
tools_seq2bseq_SOURCES = tools/seq2bseq.c
|
|
|
|
|
|
|
|
tools_nokfw_SOURCES = tools/nokfw.c
|
|
|
|
|
2018-01-06 04:46:38 +08:00
|
|
|
tools_rtlfw_SOURCES = tools/rtlfw.c
|
|
|
|
|
2017-01-04 20:47:13 +08:00
|
|
|
tools_create_image_SOURCES = tools/create-image.c
|
|
|
|
|
|
|
|
tools_eddystone_SOURCES = tools/eddystone.c monitor/bt.h
|
|
|
|
tools_eddystone_LDADD = src/libshared-mainloop.la
|
|
|
|
|
|
|
|
tools_ibeacon_SOURCES = tools/ibeacon.c monitor/bt.h
|
|
|
|
tools_ibeacon_LDADD = src/libshared-mainloop.la
|
|
|
|
|
|
|
|
tools_btgatt_client_SOURCES = tools/btgatt-client.c src/uuid-helper.c
|
|
|
|
tools_btgatt_client_LDADD = src/libshared-mainloop.la \
|
|
|
|
lib/libbluetooth-internal.la
|
|
|
|
|
|
|
|
tools_btgatt_server_SOURCES = tools/btgatt-server.c src/uuid-helper.c
|
|
|
|
tools_btgatt_server_LDADD = src/libshared-mainloop.la \
|
|
|
|
lib/libbluetooth-internal.la
|
2012-12-09 21:44:19 +08:00
|
|
|
|
2017-01-04 20:23:58 +08:00
|
|
|
tools_rctest_LDADD = lib/libbluetooth-internal.la
|
|
|
|
|
|
|
|
tools_l2test_LDADD = lib/libbluetooth-internal.la
|
|
|
|
|
|
|
|
tools_l2ping_LDADD = lib/libbluetooth-internal.la
|
|
|
|
|
|
|
|
tools_bluemoon_SOURCES = tools/bluemoon.c monitor/bt.h
|
|
|
|
tools_bluemoon_LDADD = src/libshared-mainloop.la
|
|
|
|
|
|
|
|
tools_hex2hcd_SOURCES = tools/hex2hcd.c
|
|
|
|
|
|
|
|
tools_mpris_proxy_SOURCES = tools/mpris-proxy.c
|
2018-11-25 17:20:06 +08:00
|
|
|
tools_mpris_proxy_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS)
|
2017-01-04 20:23:58 +08:00
|
|
|
|
2017-01-04 20:47:13 +08:00
|
|
|
tools_gatt_service_SOURCES = tools/gatt-service.c
|
2022-01-07 04:50:33 +08:00
|
|
|
tools_gatt_service_LDADD = gdbus/libgdbus-internal.la \
|
|
|
|
src/libshared-mainloop.la $(GLIB_LIBS) $(DBUS_LIBS)
|
2017-01-04 20:47:13 +08:00
|
|
|
|
2019-08-07 15:50:32 +08:00
|
|
|
tools_isotest_LDADD = lib/libbluetooth-internal.la
|
|
|
|
|
2017-01-04 20:47:13 +08:00
|
|
|
profiles_iap_iapd_SOURCES = profiles/iap/main.c
|
2018-11-25 17:20:06 +08:00
|
|
|
profiles_iap_iapd_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS)
|
2017-01-04 20:47:13 +08:00
|
|
|
|
2021-05-04 13:02:04 +08:00
|
|
|
if MANPAGES
|
2023-07-18 07:01:45 +08:00
|
|
|
man_MANS += tools/rctest.1 tools/l2ping.1 tools/btattach.1 tools/isotest.1 \
|
|
|
|
tools/btmgmt.1
|
2021-05-04 13:02:04 +08:00
|
|
|
endif
|
2017-01-04 20:23:58 +08:00
|
|
|
|
2018-06-22 14:31:59 +08:00
|
|
|
if MESH
|
2022-10-04 07:06:42 +08:00
|
|
|
|
|
|
|
if DEPRECATED
|
2018-06-22 14:31:59 +08:00
|
|
|
bin_PROGRAMS += tools/meshctl
|
|
|
|
|
|
|
|
tools_meshctl_SOURCES = tools/meshctl.c \
|
2018-06-22 14:32:00 +08:00
|
|
|
tools/mesh/agent.h tools/mesh/agent.c \
|
2019-11-02 02:57:21 +08:00
|
|
|
tools/mesh/config-model.h\
|
|
|
|
tools/mesh-gatt/mesh-net.h \
|
|
|
|
tools/mesh-gatt/node.h tools/mesh-gatt/node.c \
|
|
|
|
tools/mesh-gatt/gatt.h tools/mesh-gatt/gatt.c \
|
|
|
|
tools/mesh-gatt/crypto.h\
|
|
|
|
tools/mesh-gatt/crypto.c \
|
|
|
|
tools/mesh-gatt/keys.h \
|
|
|
|
tools/mesh-gatt/net.h tools/mesh-gatt/net.c \
|
|
|
|
tools/mesh-gatt/prov.h tools/mesh-gatt/prov.c \
|
|
|
|
tools/mesh-gatt/util.h tools/mesh-gatt/util.c \
|
|
|
|
tools/mesh-gatt/prov-db.h \
|
|
|
|
tools/mesh-gatt/prov-db.c \
|
|
|
|
tools/mesh-gatt/config-client.c \
|
|
|
|
tools/mesh-gatt/config-server.c \
|
|
|
|
tools/mesh-gatt/onoff-model.h \
|
|
|
|
tools/mesh-gatt/onoff-model.c
|
2018-06-22 14:31:59 +08:00
|
|
|
tools_meshctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
|
|
|
|
lib/libbluetooth-internal.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
$(GLIB_LIBS) $(DBUS_LIBS) -ljson-c -lreadline
|
2019-11-02 02:57:22 +08:00
|
|
|
|
2022-10-04 07:06:42 +08:00
|
|
|
EXTRA_DIST += tools/mesh-gatt/local_node.json tools/mesh-gatt/prov_db.json
|
|
|
|
endif
|
|
|
|
|
2019-11-02 02:57:22 +08:00
|
|
|
bin_PROGRAMS += tools/mesh-cfgclient
|
|
|
|
|
|
|
|
tools_mesh_cfgclient_SOURCES = tools/mesh-cfgclient.c \
|
|
|
|
tools/mesh/model.h tools/mesh/config-model.h \
|
|
|
|
tools/mesh/cfgcli.h tools/mesh/cfgcli.c \
|
|
|
|
tools/mesh/keys.h tools/mesh/keys.c \
|
|
|
|
tools/mesh/util.h tools/mesh/util.c \
|
2019-11-02 02:57:23 +08:00
|
|
|
tools/mesh/remote.h tools/mesh/remote.c \
|
2019-11-02 02:57:28 +08:00
|
|
|
tools/mesh/agent.h tools/mesh/agent.c \
|
|
|
|
tools/mesh/mesh-db.h tools/mesh/mesh-db.c \
|
|
|
|
mesh/util.h mesh/util.c \
|
2020-02-26 02:44:13 +08:00
|
|
|
mesh/crypto.h mesh/crypto.c
|
2019-11-02 02:57:23 +08:00
|
|
|
|
2019-11-02 02:57:22 +08:00
|
|
|
tools_mesh_cfgclient_LDADD = lib/libbluetooth-internal.la src/libshared-ell.la \
|
2019-11-02 02:57:28 +08:00
|
|
|
$(ell_ldadd) -ljson-c -lreadline
|
2021-03-20 04:38:25 +08:00
|
|
|
|
|
|
|
bin_PROGRAMS += tools/mesh-cfgtest
|
|
|
|
|
|
|
|
tools_mesh_cfgtest_SOURCES = tools/mesh-cfgtest.c
|
|
|
|
tools_mesh_cfgtest_LDADD = lib/libbluetooth-internal.la src/libshared-ell.la \
|
|
|
|
$(ell_ldadd)
|
2018-06-22 14:31:59 +08:00
|
|
|
endif
|
|
|
|
|
2017-01-04 20:23:58 +08:00
|
|
|
if DEPRECATED
|
|
|
|
bin_PROGRAMS += tools/hciattach tools/hciconfig tools/hcitool tools/hcidump \
|
|
|
|
tools/rfcomm tools/sdptool tools/ciptool
|
|
|
|
|
2009-08-23 16:07:21 +08:00
|
|
|
tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
|
|
|
|
tools/hciattach_st.c \
|
|
|
|
tools/hciattach_ti.c \
|
2010-08-18 17:29:28 +08:00
|
|
|
tools/hciattach_tialt.c \
|
2010-08-24 00:17:47 +08:00
|
|
|
tools/hciattach_ath3k.c \
|
2012-05-16 01:23:29 +08:00
|
|
|
tools/hciattach_qualcomm.c \
|
2014-04-05 00:26:08 +08:00
|
|
|
tools/hciattach_intel.c \
|
|
|
|
tools/hciattach_bcm43xx.c
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_hciattach_LDADD = lib/libbluetooth-internal.la
|
2009-08-23 16:07:21 +08:00
|
|
|
|
2020-09-26 06:03:44 +08:00
|
|
|
tools_hciconfig_SOURCES = tools/hciconfig.c
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_hciconfig_LDADD = lib/libbluetooth-internal.la
|
2009-08-23 16:07:21 +08:00
|
|
|
|
2012-12-09 22:10:51 +08:00
|
|
|
tools_hcitool_SOURCES = tools/hcitool.c src/oui.h src/oui.c
|
2018-11-25 17:20:06 +08:00
|
|
|
tools_hcitool_LDADD = lib/libbluetooth-internal.la $(UDEV_LIBS)
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-18 07:12:10 +08:00
|
|
|
tools_hcidump_SOURCES = tools/hcidump.c \
|
|
|
|
tools/parser/parser.h tools/parser/parser.c \
|
|
|
|
tools/parser/lmp.c \
|
|
|
|
tools/parser/hci.c \
|
|
|
|
tools/parser/l2cap.h tools/parser/l2cap.c \
|
|
|
|
tools/parser/amp.c \
|
|
|
|
tools/parser/smp.c \
|
|
|
|
tools/parser/att.c \
|
|
|
|
tools/parser/sdp.h tools/parser/sdp.c \
|
|
|
|
tools/parser/rfcomm.h tools/parser/rfcomm.c \
|
|
|
|
tools/parser/bnep.c \
|
|
|
|
tools/parser/cmtp.c \
|
|
|
|
tools/parser/hidp.c \
|
|
|
|
tools/parser/hcrp.c \
|
|
|
|
tools/parser/avdtp.c \
|
|
|
|
tools/parser/avctp.c \
|
|
|
|
tools/parser/avrcp.c \
|
|
|
|
tools/parser/sap.c \
|
|
|
|
tools/parser/obex.c \
|
|
|
|
tools/parser/capi.c \
|
|
|
|
tools/parser/ppp.c \
|
|
|
|
tools/parser/tcpip.c \
|
|
|
|
tools/parser/ericsson.c \
|
|
|
|
tools/parser/csr.c \
|
|
|
|
tools/parser/bpa.c
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2009-08-29 13:24:04 +08:00
|
|
|
tools_sdptool_SOURCES = tools/sdptool.c src/sdp-xml.h src/sdp-xml.c
|
2018-11-25 17:20:06 +08:00
|
|
|
tools_sdptool_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_ciptool_LDADD = lib/libbluetooth-internal.la
|
2017-01-04 20:23:58 +08:00
|
|
|
tools_hcidump_LDADD = lib/libbluetooth-internal.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2017-01-04 20:23:58 +08:00
|
|
|
tools_rfcomm_LDADD = lib/libbluetooth-internal.la
|
2014-06-17 16:19:14 +08:00
|
|
|
|
2021-05-04 13:02:04 +08:00
|
|
|
if MANPAGES
|
|
|
|
man_MANS += tools/hciattach.1 tools/hciconfig.1 \
|
2012-12-18 07:12:10 +08:00
|
|
|
tools/hcitool.1 tools/hcidump.1 \
|
2017-01-04 20:23:58 +08:00
|
|
|
tools/rfcomm.1 tools/sdptool.1 tools/ciptool.1
|
|
|
|
endif
|
2012-12-16 02:47:02 +08:00
|
|
|
endif
|
2021-05-04 13:02:04 +08:00
|
|
|
endif
|
2021-05-04 13:02:07 +08:00
|
|
|
manual_pages += tools/hciattach.1 tools/hciconfig.1 \
|
2021-05-04 13:02:04 +08:00
|
|
|
tools/hcitool.1 tools/hcidump.1 \
|
|
|
|
tools/rfcomm.1 tools/sdptool.1 tools/ciptool.1 \
|
|
|
|
tools/rctest.1 tools/l2ping.1 tools/btattach.1 \
|
2023-07-18 07:01:45 +08:00
|
|
|
tools/bdaddr.1 tools/isotest.1 tools/btmgmt.1
|
2012-12-16 02:47:02 +08:00
|
|
|
|
|
|
|
if HID2HCI
|
2018-11-25 17:20:06 +08:00
|
|
|
udevdir = $(UDEV_DIR)
|
2012-12-16 02:47:02 +08:00
|
|
|
|
|
|
|
udev_PROGRAMS = tools/hid2hci
|
|
|
|
|
2018-11-25 17:20:06 +08:00
|
|
|
tools_hid2hci_LDADD = $(UDEV_LIBS)
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2021-05-04 13:02:04 +08:00
|
|
|
if MANPAGES
|
|
|
|
man_MANS += tools/hid2hci.1
|
|
|
|
endif
|
2012-12-16 02:47:02 +08:00
|
|
|
endif
|
2021-05-04 13:02:07 +08:00
|
|
|
manual_pages += tools/hid2hci.1
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2011-03-31 23:59:10 +08:00
|
|
|
if READLINE
|
2017-04-28 14:43:21 +08:00
|
|
|
noinst_PROGRAMS += tools/btmgmt tools/obex-client-tool tools/obex-server-tool \
|
2013-08-12 20:13:22 +08:00
|
|
|
tools/bluetooth-player tools/obexctl
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2012-12-01 22:08:06 +08:00
|
|
|
tools_obex_client_tool_SOURCES = $(gobex_sources) $(btio_sources) \
|
|
|
|
tools/obex-client-tool.c
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_obex_client_tool_LDADD = lib/libbluetooth-internal.la \
|
2022-01-07 04:50:33 +08:00
|
|
|
src/libshared-glib.la $(GLIB_LIBS) -lreadline
|
2012-12-01 22:08:06 +08:00
|
|
|
|
|
|
|
tools_obex_server_tool_SOURCES = $(gobex_sources) $(btio_sources) \
|
|
|
|
tools/obex-server-tool.c
|
2022-01-07 04:50:33 +08:00
|
|
|
tools_obex_server_tool_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
src/libshared-glib.la $(GLIB_LIBS)
|
2013-08-12 19:57:33 +08:00
|
|
|
|
2022-12-01 08:04:05 +08:00
|
|
|
tools_bluetooth_player_SOURCES = tools/bluetooth-player.c client/print.c \
|
|
|
|
client/player.c
|
2013-08-12 19:57:33 +08:00
|
|
|
tools_bluetooth_player_LDADD = gdbus/libgdbus-internal.la \
|
2017-12-08 18:52:51 +08:00
|
|
|
src/libshared-glib.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
$(GLIB_LIBS) $(DBUS_LIBS) -lreadline
|
2013-08-12 20:13:22 +08:00
|
|
|
|
2017-12-08 18:52:50 +08:00
|
|
|
tools_obexctl_SOURCES = tools/obexctl.c
|
|
|
|
tools_obexctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
|
2022-02-17 17:56:48 +08:00
|
|
|
$(GLIB_LIBS) $(DBUS_LIBS) -lreadline
|
2015-07-30 01:51:22 +08:00
|
|
|
|
2023-07-15 06:14:02 +08:00
|
|
|
tools_btmgmt_SOURCES = tools/btmgmt.c src/uuid-helper.c client/display.c \
|
|
|
|
client/mgmt.c
|
2015-07-30 01:51:22 +08:00
|
|
|
tools_btmgmt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la \
|
|
|
|
-lreadline
|
2017-01-04 20:23:58 +08:00
|
|
|
if DEPRECATED
|
|
|
|
noinst_PROGRAMS += attrib/gatttool
|
|
|
|
|
|
|
|
attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
|
|
|
|
attrib/gattrib.c btio/btio.c \
|
|
|
|
attrib/gatttool.h attrib/interactive.c \
|
|
|
|
attrib/utils.c src/log.c client/display.c \
|
|
|
|
client/display.h
|
|
|
|
attrib_gatttool_LDADD = lib/libbluetooth-internal.la \
|
2018-11-25 17:20:06 +08:00
|
|
|
src/libshared-glib.la $(GLIB_LIBS) -lreadline
|
2017-01-04 20:23:58 +08:00
|
|
|
|
|
|
|
endif
|
2009-08-23 16:07:21 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
if CUPS
|
|
|
|
cupsdir = $(libdir)/cups/backend
|
|
|
|
|
2012-07-10 05:10:34 +08:00
|
|
|
cups_PROGRAMS = profiles/cups/bluetooth
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
profiles_cups_bluetooth_SOURCES = profiles/cups/main.c \
|
2012-07-10 05:10:34 +08:00
|
|
|
profiles/cups/cups.h \
|
|
|
|
profiles/cups/sdp.c \
|
|
|
|
profiles/cups/spp.c \
|
|
|
|
profiles/cups/hcrp.c
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2018-11-25 17:20:06 +08:00
|
|
|
profiles_cups_bluetooth_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) \
|
2013-07-03 20:29:20 +08:00
|
|
|
lib/libbluetooth-internal.la \
|
|
|
|
gdbus/libgdbus-internal.la
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
2012-12-12 05:28:15 +08:00
|
|
|
test_scripts += test/sap_client.py test/bluezutils.py \
|
2011-03-24 21:33:01 +08:00
|
|
|
test/dbusdef.py test/monitor-bluetooth test/list-devices \
|
|
|
|
test/test-discovery test/test-manager test/test-adapter \
|
2012-12-20 10:27:44 +08:00
|
|
|
test/test-device test/simple-agent \
|
2014-04-14 18:59:34 +08:00
|
|
|
test/simple-endpoint test/test-sap-server \
|
2017-08-31 20:35:03 +08:00
|
|
|
test/test-network test/test-profile test/test-health \
|
2012-11-14 20:52:25 +08:00
|
|
|
test/test-health-sink test/service-record.dtd \
|
2012-07-24 21:11:00 +08:00
|
|
|
test/service-did.xml test/service-spp.xml test/service-opp.xml \
|
2012-09-25 22:27:46 +08:00
|
|
|
test/service-ftp.xml test/simple-player test/test-nap \
|
2017-08-31 20:35:03 +08:00
|
|
|
test/test-hfp test/opp-client test/ftp-client \
|
2015-04-02 08:57:52 +08:00
|
|
|
test/pbap-client test/map-client test/example-advertisement \
|
2015-09-03 17:54:26 +08:00
|
|
|
test/example-gatt-server test/example-gatt-client \
|
2019-03-10 15:53:13 +08:00
|
|
|
test/test-gatt-profile test/test-mesh test/agent.py
|
2017-12-07 19:43:44 +08:00
|
|
|
|
|
|
|
if BTPCLIENT
|
2020-08-29 08:08:02 +08:00
|
|
|
noinst_PROGRAMS += tools/btpclient tools/btpclientctl
|
2017-12-07 19:43:44 +08:00
|
|
|
|
|
|
|
tools_btpclient_SOURCES = tools/btpclient.c src/shared/btp.c src/shared/btp.h
|
2018-12-04 23:59:01 +08:00
|
|
|
tools_btpclient_LDADD = lib/libbluetooth-internal.la \
|
|
|
|
src/libshared-ell.la $(ell_ldadd)
|
2019-02-12 23:15:14 +08:00
|
|
|
tools_btpclient_DEPENDENCIES = lib/libbluetooth-internal.la $(ell_dependencies)
|
2019-06-12 23:09:50 +08:00
|
|
|
tools/btpclient.$(OBJEXT): src/libshared-ell.la ell/internal
|
2020-08-29 08:08:02 +08:00
|
|
|
|
|
|
|
tools_btpclientctl_SOURCES = tools/btpclientctl.c client/display.c
|
|
|
|
tools_btpclientctl_LDADD = src/libshared-mainloop.la src/libshared-glib.la \
|
|
|
|
lib/libbluetooth-internal.la -lreadline
|
2017-12-07 19:43:44 +08:00
|
|
|
endif
|