2009-08-23 15:40:59 +08:00
|
|
|
|
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 \
|
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 \
|
|
|
|
monitor/uuid.h monitor/uuid.c
|
2013-07-03 20:29:20 +08:00
|
|
|
client_bluetoothctl_LDADD = gdbus/libgdbus-internal.la @GLIB_LIBS@ @DBUS_LIBS@ \
|
|
|
|
-lreadline
|
2012-12-12 05:19:13 +08:00
|
|
|
endif
|
|
|
|
|
2012-12-13 06:19:43 +08:00
|
|
|
if MONITOR
|
|
|
|
bin_PROGRAMS += monitor/btmon
|
|
|
|
|
|
|
|
monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \
|
|
|
|
monitor/mainloop.h monitor/mainloop.c \
|
|
|
|
monitor/display.h monitor/display.c \
|
|
|
|
monitor/hcidump.h monitor/hcidump.c \
|
|
|
|
monitor/btsnoop.h monitor/btsnoop.c \
|
|
|
|
monitor/control.h monitor/control.c \
|
|
|
|
monitor/packet.h monitor/packet.c \
|
|
|
|
monitor/l2cap.h monitor/l2cap.c \
|
|
|
|
monitor/uuid.h monitor/uuid.c \
|
|
|
|
monitor/sdp.h monitor/sdp.c
|
2013-07-03 20:29:19 +08:00
|
|
|
monitor_btmon_LDADD = lib/libbluetooth-internal.la
|
2012-12-16 02:47:02 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if EXPERIMENTAL
|
2013-01-01 18:24:21 +08:00
|
|
|
noinst_PROGRAMS += emulator/btvirt emulator/b1ee \
|
2013-05-20 01:19:05 +08:00
|
|
|
tools/mgmt-tester tools/gap-tester \
|
2013-08-01 17:47:24 +08:00
|
|
|
tools/l2cap-tester tools/sco-tester
|
2012-12-13 06:19:43 +08:00
|
|
|
|
|
|
|
emulator_btvirt_SOURCES = emulator/main.c monitor/bt.h \
|
|
|
|
monitor/mainloop.h monitor/mainloop.c \
|
|
|
|
emulator/server.h emulator/server.c \
|
|
|
|
emulator/vhci.h emulator/vhci.c \
|
2012-12-18 08:11:57 +08:00
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c
|
2012-12-13 06:19:43 +08:00
|
|
|
|
|
|
|
emulator_b1ee_SOURCES = emulator/b1ee.c monitor/mainloop.h monitor/mainloop.c
|
2012-12-28 16:08:34 +08:00
|
|
|
|
2013-01-02 04:35:09 +08:00
|
|
|
tools_mgmt_tester_SOURCES = tools/mgmt-tester.c monitor/bt.h \
|
2013-01-01 18:24:21 +08:00
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/shared/mgmt.h src/shared/mgmt.c \
|
2013-01-02 04:35:09 +08:00
|
|
|
src/shared/hciemu.h src/shared/hciemu.c \
|
2013-01-01 18:24:21 +08:00
|
|
|
src/shared/tester.h src/shared/tester.c
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_mgmt_tester_LDADD = lib/libbluetooth-internal.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 \
|
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/shared/mgmt.h src/shared/mgmt.c \
|
|
|
|
src/shared/hciemu.h src/shared/hciemu.c \
|
|
|
|
src/shared/tester.h src/shared/tester.c
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_l2cap_tester_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
|
2013-05-20 01:19:05 +08:00
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
tools_gap_tester_SOURCES = tools/gap-tester.c monitor/bt.h \
|
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 \
|
2013-01-02 09:11:48 +08:00
|
|
|
src/shared/hciemu.h src/shared/hciemu.c \
|
|
|
|
src/shared/tester.h src/shared/tester.c
|
2013-07-03 20:29:20 +08:00
|
|
|
tools_gap_tester_LDADD = gdbus/libgdbus-internal.la @GLIB_LIBS@ @DBUS_LIBS@
|
2013-08-01 17:47:24 +08:00
|
|
|
|
|
|
|
tools_sco_tester_SOURCES = tools/sco-tester.c monitor/bt.h \
|
|
|
|
emulator/btdev.h emulator/btdev.c \
|
|
|
|
emulator/bthost.h emulator/bthost.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/shared/mgmt.h src/shared/mgmt.c \
|
|
|
|
src/shared/hciemu.h src/shared/hciemu.c \
|
|
|
|
src/shared/tester.h src/shared/tester.c
|
|
|
|
tools_sco_tester_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
|
2012-12-13 06:19:43 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
if TOOLS
|
2012-12-18 07:12:10 +08:00
|
|
|
bin_PROGRAMS += tools/hciattach tools/hciconfig tools/hcitool tools/hcidump \
|
2012-12-16 02:47:02 +08:00
|
|
|
tools/rfcomm tools/rctest tools/l2test tools/l2ping \
|
|
|
|
tools/sdptool tools/ciptool tools/bccmd
|
2012-12-09 21:44:19 +08:00
|
|
|
|
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 \
|
|
|
|
tools/hciattach_intel.c
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_hciattach_LDADD = lib/libbluetooth-internal.la
|
2009-08-23 16:07:21 +08:00
|
|
|
|
2012-12-09 22:10:51 +08:00
|
|
|
tools_hciconfig_SOURCES = tools/hciconfig.c tools/csr.h tools/csr.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
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_hcitool_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@ @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
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_hcidump_LDADD = lib/libbluetooth-internal.la
|
2012-12-18 07:12:10 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_rfcomm_LDADD = lib/libbluetooth-internal.la
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_rctest_LDADD = lib/libbluetooth-internal.la
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_l2test_LDADD = lib/libbluetooth-internal.la
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_l2ping_LDADD = lib/libbluetooth-internal.la
|
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
|
2013-07-03 20:29:19 +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
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-16 02:47:02 +08:00
|
|
|
tools_bccmd_SOURCES = tools/bccmd.c tools/csr.h tools/csr.c \
|
|
|
|
tools/csr_hci.c tools/csr_h4.c tools/csr_3wire.c \
|
|
|
|
tools/csr_bcsp.c tools/ubcsp.h tools/ubcsp.c
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_bccmd_LDADD = lib/libbluetooth-internal.la
|
2012-12-16 02:47:02 +08:00
|
|
|
|
|
|
|
if USB
|
|
|
|
tools_bccmd_SOURCES += tools/csr_usb.c
|
|
|
|
tools_bccmd_LDADD += @USB_LIBS@
|
|
|
|
endif
|
|
|
|
|
2012-12-18 07:12:10 +08:00
|
|
|
dist_man_MANS += tools/hciattach.1 tools/hciconfig.1 \
|
|
|
|
tools/hcitool.1 tools/hcidump.1 \
|
2012-12-16 02:47:02 +08:00
|
|
|
tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
|
|
|
|
tools/sdptool.1 tools/ciptool.1 tools/bccmd.1
|
|
|
|
else
|
2012-12-18 07:12:10 +08:00
|
|
|
EXTRA_DIST += tools/hciattach.1 tools/hciconfig.1 \
|
|
|
|
tools/hcitool.1 tools/hcidump.1 \
|
2012-12-16 02:47:02 +08:00
|
|
|
tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
|
|
|
|
tools/sdptool.1 tools/ciptool.1 tools/bccmd.1
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HID2HCI
|
|
|
|
udevdir = @UDEV_DIR@
|
|
|
|
|
|
|
|
udev_PROGRAMS = tools/hid2hci
|
|
|
|
|
|
|
|
tools_hid2hci_LDADD = @USB_LIBS@ @UDEV_LIBS@
|
|
|
|
|
|
|
|
dist_man_MANS += tools/hid2hci.1
|
|
|
|
else
|
|
|
|
EXTRA_DIST += tools/hid2hci.1
|
|
|
|
endif
|
|
|
|
|
|
|
|
if EXPERIMENTAL
|
|
|
|
noinst_PROGRAMS += tools/bdaddr tools/avinfo tools/avtest tools/scotest \
|
2012-12-28 15:42:42 +08:00
|
|
|
tools/hcieventmask tools/hcisecfilter tools/hwdb \
|
2012-12-16 02:47:02 +08:00
|
|
|
tools/btmgmt tools/btattach tools/btsnoop \
|
2013-05-30 20:21:42 +08:00
|
|
|
tools/btiotest tools/mpris-player \
|
|
|
|
tools/bluetooth-player
|
2012-12-16 02:47:02 +08:00
|
|
|
|
|
|
|
tools_bdaddr_SOURCES = tools/bdaddr.c src/oui.h src/oui.c
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_bdaddr_LDADD = lib/libbluetooth-internal.la @UDEV_LIBS@
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_avinfo_LDADD = lib/libbluetooth-internal.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_avtest_LDADD = lib/libbluetooth-internal.la
|
2012-12-09 21:30:33 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_scotest_LDADD = lib/libbluetooth-internal.la
|
2012-12-09 21:47:43 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_hcieventmask_LDADD = lib/libbluetooth-internal.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_hwdb_LDADD = lib/libbluetooth-internal.la
|
2012-12-28 15:42:42 +08:00
|
|
|
|
2013-02-18 17:32:50 +08:00
|
|
|
tools_btmgmt_SOURCES = tools/btmgmt.c src/glib-helper.c src/eir.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/shared/mgmt.h src/shared/mgmt.c
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_btmgmt_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
|
2011-10-25 21:36:00 +08:00
|
|
|
|
2012-12-16 02:47:02 +08:00
|
|
|
tools_btiotest_SOURCES = tools/btiotest.c btio/btio.h btio/btio.c
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_btiotest_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
tools_mpris_player_SOURCES = tools/mpris-player.c
|
|
|
|
tools_mpris_player_LDADD = gdbus/libgdbus-internal.la @GLIB_LIBS@ @DBUS_LIBS@
|
2012-12-16 02:47:02 +08:00
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
tools_bluetooth_player_SOURCES = tools/bluetooth-player.c \
|
2013-05-30 20:21:42 +08:00
|
|
|
client/display.h client/display.c
|
2013-07-03 20:29:20 +08:00
|
|
|
tools_bluetooth_player_LDADD = gdbus/libgdbus-internal.la \
|
|
|
|
@GLIB_LIBS@ @DBUS_LIBS@ -lreadline
|
2013-05-30 20:21:42 +08:00
|
|
|
|
2012-12-16 02:47:02 +08:00
|
|
|
EXTRA_DIST += tools/bdaddr.1
|
|
|
|
endif
|
|
|
|
|
2011-03-31 23:59:10 +08:00
|
|
|
if READLINE
|
2012-12-16 02:47:02 +08:00
|
|
|
noinst_PROGRAMS += attrib/gatttool \
|
|
|
|
tools/obex-client-tool tools/obex-server-tool
|
|
|
|
|
2011-03-31 23:59:10 +08:00
|
|
|
attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
|
|
|
|
attrib/gattrib.c btio/btio.c \
|
|
|
|
attrib/gatttool.h attrib/interactive.c \
|
2013-04-03 07:31:22 +08:00
|
|
|
attrib/utils.c src/log.c client/display.c \
|
|
|
|
client/display.h
|
2013-07-03 20:29:19 +08:00
|
|
|
attrib_gatttool_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@ -lreadline
|
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 \
|
2012-12-11 04:31:55 +08:00
|
|
|
@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
|
2013-07-03 20:29:19 +08:00
|
|
|
tools_obex_server_tool_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
|
2009-08-23 16:07:21 +08:00
|
|
|
endif
|
|
|
|
|
2012-12-28 15:57:04 +08:00
|
|
|
if EXPERIMENTAL
|
|
|
|
noinst_PROGRAMS += profiles/iap/iapd
|
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
profiles_iap_iapd_SOURCES = profiles/iap/main.c
|
|
|
|
profiles_iap_iapd_LDADD = gdbus/libgdbus-internal.la @GLIB_LIBS@ @DBUS_LIBS@
|
2012-12-28 15:57:04 +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
|
|
|
|
2012-07-10 05:10:34 +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 \
|
2012-11-26 22:39:37 +08:00
|
|
|
test/simple-service test/simple-endpoint test/test-sap-server \
|
2012-12-21 15:25:03 +08:00
|
|
|
test/test-proximity test/test-network \
|
2012-11-14 20:52:25 +08:00
|
|
|
test/test-thermometer test/test-profile test/test-health \
|
|
|
|
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 \
|
2012-12-04 20:43:45 +08:00
|
|
|
test/test-heartrate test/test-alert test/test-hfp \
|
2012-12-07 08:24:05 +08:00
|
|
|
test/test-cyclingspeed
|