2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
if TOOLS
|
2011-07-02 11:35:10 +08:00
|
|
|
if DATAFILES
|
2009-08-30 13:09:10 +08:00
|
|
|
conf_DATA += tools/rfcomm.conf
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-30 13:09:10 +08:00
|
|
|
bin_PROGRAMS += tools/rfcomm tools/l2ping \
|
2009-08-23 15:40:59 +08:00
|
|
|
tools/hcitool tools/sdptool tools/ciptool
|
|
|
|
|
2009-08-23 16:07:21 +08:00
|
|
|
sbin_PROGRAMS += tools/hciattach tools/hciconfig
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
noinst_PROGRAMS += tools/avinfo tools/ppporc \
|
|
|
|
tools/hcieventmask tools/hcisecfilter
|
|
|
|
|
2010-10-28 01:54:49 +08:00
|
|
|
tools/kword.c: tools/parser.h
|
|
|
|
|
2011-02-04 04:02:59 +08:00
|
|
|
tools_rfcomm_SOURCES = tools/rfcomm.c tools/parser.y tools/lexer.l \
|
2009-08-30 13:09:10 +08:00
|
|
|
tools/kword.h tools/kword.c
|
|
|
|
EXTRA_tools_rfcomm_SOURCES = tools/parser.h tools/parser.c \
|
|
|
|
tools/lexer.c
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_rfcomm_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_l2ping_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +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 \
|
|
|
|
tools/hciattach_qualcomm.c
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_hciattach_LDADD = lib/libbluetooth-private.la
|
2009-08-23 16:07:21 +08:00
|
|
|
|
|
|
|
tools_hciconfig_SOURCES = tools/hciconfig.c tools/csr.h tools/csr.c \
|
2009-08-29 13:24:04 +08:00
|
|
|
src/textfile.h src/textfile.c
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_hciconfig_LDADD = lib/libbluetooth-private.la
|
2009-08-23 16:07:21 +08:00
|
|
|
|
2009-08-29 13:24:04 +08:00
|
|
|
tools_hcitool_SOURCES = tools/hcitool.c src/oui.h src/oui.c \
|
|
|
|
src/textfile.h src/textfile.c
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_hcitool_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2009-08-29 13:24:04 +08:00
|
|
|
tools_sdptool_SOURCES = tools/sdptool.c src/sdp-xml.h src/sdp-xml.c
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_sdptool_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_ciptool_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_avinfo_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_ppporc_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_hcieventmask_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-03-31 23:59:10 +08:00
|
|
|
if READLINE
|
|
|
|
bin_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
|
2011-09-13 22:48:58 +08:00
|
|
|
attrib_gatttool_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@ @READLINE_LIBS@
|
2011-03-31 23:59:10 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-30 13:09:10 +08:00
|
|
|
dist_man_MANS += tools/rfcomm.1 tools/l2ping.8 \
|
2009-08-23 16:07:21 +08:00
|
|
|
tools/hciattach.8 tools/hciconfig.8 \
|
2009-08-23 15:40:59 +08:00
|
|
|
tools/hcitool.1 tools/sdptool.1 tools/ciptool.1
|
2009-08-25 05:56:11 +08:00
|
|
|
else
|
2009-08-30 13:09:10 +08:00
|
|
|
EXTRA_DIST += tools/rfcomm.1 tools/l2ping.8 \
|
2009-08-25 05:56:11 +08:00
|
|
|
tools/hciattach.8 tools/hciconfig.8 \
|
|
|
|
tools/hcitool.1 tools/sdptool.1 tools/ciptool.1
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-30 13:09:10 +08:00
|
|
|
CLEANFILES += tools/lexer.c tools/parser.c tools/parser.h
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2009-08-30 13:09:10 +08:00
|
|
|
EXTRA_DIST += tools/rfcomm.conf
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2009-12-24 23:37:54 +08:00
|
|
|
if TRACER
|
|
|
|
sbin_PROGRAMS += tracer/hcitrace
|
|
|
|
|
2010-05-18 10:27:15 +08:00
|
|
|
tracer_hcitrace_SOURCES = tracer/main.c
|
2011-09-13 22:48:58 +08:00
|
|
|
tracer_hcitrace_LDADD = lib/libbluetooth-private.la \
|
2009-12-24 23:37:54 +08:00
|
|
|
@GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@
|
2011-09-13 22:48:58 +08:00
|
|
|
tracer_hcitrace_DEPENDENCIES = lib/libbluetooth-private.la
|
2009-12-24 23:37:54 +08:00
|
|
|
endif
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2009-08-23 16:07:21 +08:00
|
|
|
if BCCMD
|
|
|
|
sbin_PROGRAMS += tools/bccmd
|
|
|
|
|
|
|
|
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
|
2011-09-13 22:48:58 +08:00
|
|
|
tools_bccmd_LDADD = lib/libbluetooth-private.la
|
2009-08-23 16:07:21 +08:00
|
|
|
|
|
|
|
if USB
|
|
|
|
tools_bccmd_SOURCES += tools/csr_usb.c
|
|
|
|
tools_bccmd_LDADD += @USB_LIBS@
|
|
|
|
endif
|
|
|
|
|
|
|
|
dist_man_MANS += tools/bccmd.8
|
2009-08-25 05:56:11 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += tools/bccmd.8
|
2009-08-23 16:07:21 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HID2HCI
|
2011-04-29 06:32:25 +08:00
|
|
|
udevdir = @UDEV_DIR@
|
|
|
|
|
|
|
|
udev_PROGRAMS = tools/hid2hci
|
2009-08-23 16:07:21 +08:00
|
|
|
|
2011-04-28 17:08:47 +08:00
|
|
|
tools_hid2hci_LDADD = @USB_LIBS@ @UDEV_LIBS@
|
2009-08-23 16:07:21 +08:00
|
|
|
|
|
|
|
dist_man_MANS += tools/hid2hci.8
|
2009-08-25 05:56:11 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += tools/hid2hci.8
|
2009-08-23 16:07:21 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
if DFUTOOL
|
|
|
|
bin_PROGRAMS += tools/dfutool
|
|
|
|
|
|
|
|
tools_dfutool_SOURCES = tools/dfutool.c tools/dfu.h tools/dfu.c
|
|
|
|
tools_dfutool_LDADD = @USB_LIBS@
|
|
|
|
|
|
|
|
dist_man_MANS += tools/dfutool.1
|
2009-08-25 05:56:11 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += tools/dfutool.1
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if USB
|
|
|
|
noinst_PROGRAMS += tools/dfubabel tools/avctrl
|
|
|
|
|
|
|
|
tools_dfubabel_LDADD = @USB_LIBS@
|
|
|
|
|
|
|
|
tools_avctrl_LDADD = @USB_LIBS@
|
2009-08-25 06:46:44 +08:00
|
|
|
endif
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2009-08-25 05:56:11 +08:00
|
|
|
EXTRA_DIST += tools/dfubabel.1 tools/avctrl.8
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
if CUPS
|
|
|
|
cupsdir = $(libdir)/cups/backend
|
|
|
|
|
|
|
|
cups_PROGRAMS = cups/bluetooth
|
|
|
|
|
|
|
|
cups_bluetooth_SOURCES = $(gdbus_sources) cups/main.c cups/cups.h \
|
|
|
|
cups/sdp.c cups/spp.c cups/hcrp.c
|
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
cups_bluetooth_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if TEST
|
|
|
|
sbin_PROGRAMS += test/hciemu
|
|
|
|
|
|
|
|
bin_PROGRAMS += test/l2test test/rctest
|
|
|
|
|
|
|
|
noinst_PROGRAMS += test/gaptest test/sdptest test/scotest \
|
2009-08-29 13:38:35 +08:00
|
|
|
test/attest test/hstest test/avtest test/ipctest \
|
|
|
|
test/lmptest test/bdaddr test/agent \
|
2011-03-15 21:05:04 +08:00
|
|
|
test/btiotest test/test-textfile \
|
|
|
|
test/uuidtest
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
test_hciemu_LDADD = @GLIB_LIBS@ lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
test_l2test_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
test_rctest_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
test_gaptest_LDADD = @DBUS_LIBS@
|
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
test_sdptest_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
test_scotest_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
test_attest_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
test_hstest_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
test_avtest_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-09-13 22:48:58 +08:00
|
|
|
test_lmptest_LDADD = lib/libbluetooth-private.la
|
2009-08-29 13:38:35 +08:00
|
|
|
|
|
|
|
test_ipctest_SOURCES = test/ipctest.c audio/ipc.h audio/ipc.c
|
|
|
|
test_ipctest_LDADD= @GLIB_LIBS@ sbc/libsbc.la
|
|
|
|
|
2009-08-29 13:24:04 +08:00
|
|
|
test_bdaddr_SOURCES = test/bdaddr.c src/oui.h src/oui.c
|
2011-09-13 22:48:58 +08:00
|
|
|
test_bdaddr_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
test_agent_LDADD = @DBUS_LIBS@
|
|
|
|
|
2010-09-13 16:17:31 +08:00
|
|
|
test_btiotest_SOURCES = test/btiotest.c btio/btio.h btio/btio.c
|
2011-09-13 22:48:58 +08:00
|
|
|
test_btiotest_LDADD = @GLIB_LIBS@ lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-03-15 21:05:04 +08:00
|
|
|
test_uuidtest_SOURCES = test/uuidtest.c
|
2011-09-13 22:48:58 +08:00
|
|
|
test_uuidtest_LDADD = lib/libbluetooth-private.la
|
2011-03-15 21:05:04 +08:00
|
|
|
|
2009-08-29 13:42:42 +08:00
|
|
|
test_test_textfile_SOURCES = test/test-textfile.c src/textfile.h src/textfile.c
|
2009-08-29 13:24:04 +08:00
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
dist_man_MANS += test/rctest.1 test/hciemu.1
|
|
|
|
|
2009-08-25 05:56:11 +08:00
|
|
|
EXTRA_DIST += test/bdaddr.8
|
|
|
|
else
|
|
|
|
EXTRA_DIST += test/rctest.1 test/hciemu.1 test/bdaddr.8
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
2011-03-24 21:33:01 +08:00
|
|
|
EXTRA_DIST += test/apitest test/sap-client test/hsplay test/hsmicro \
|
|
|
|
test/dbusdef.py test/monitor-bluetooth test/list-devices \
|
|
|
|
test/test-discovery test/test-manager test/test-adapter \
|
|
|
|
test/test-device test/test-service test/test-serial \
|
|
|
|
test/test-telephony test/test-network test/simple-agent \
|
|
|
|
test/simple-service test/simple-endpoint test/test-audio \
|
2011-08-03 20:45:46 +08:00
|
|
|
test/test-input test/test-attrib test/test-proximity \
|
2011-08-30 21:04:23 +08:00
|
|
|
test/test-sap-server test/test-oob test/test-serial-proxy \
|
|
|
|
test/service-record.dtd test/service-did.xml \
|
|
|
|
test/service-spp.xml test/service-opp.xml test/service-ftp.xml
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
if HIDD
|
|
|
|
bin_PROGRAMS += compat/hidd
|
|
|
|
|
2009-08-29 13:24:04 +08:00
|
|
|
compat_hidd_SOURCES = compat/hidd.c compat/hidd.h src/uinput.h \
|
2009-08-23 15:40:59 +08:00
|
|
|
compat/sdp.h compat/sdp.c compat/fakehid.c \
|
2009-08-29 13:24:04 +08:00
|
|
|
src/textfile.h src/textfile.c
|
2011-09-13 22:48:58 +08:00
|
|
|
compat_hidd_LDADD = -lm lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
dist_man_MANS += compat/hidd.1
|
2009-08-25 05:56:11 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += compat/hidd.1
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if PAND
|
|
|
|
bin_PROGRAMS += compat/pand
|
|
|
|
|
|
|
|
compat_pand_SOURCES = compat/pand.c compat/pand.h \
|
|
|
|
compat/bnep.c compat/sdp.h compat/sdp.c \
|
2009-08-29 13:24:04 +08:00
|
|
|
src/textfile.h src/textfile.c
|
2011-09-13 22:48:58 +08:00
|
|
|
compat_pand_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
dist_man_MANS += compat/pand.1
|
2009-08-25 05:56:11 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += compat/pand.1
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if DUND
|
|
|
|
bin_PROGRAMS += compat/dund
|
|
|
|
|
|
|
|
compat_dund_SOURCES = compat/dund.c compat/dund.h compat/lib.h \
|
|
|
|
compat/sdp.h compat/sdp.c compat/dun.c compat/msdun.c \
|
2009-08-29 13:24:04 +08:00
|
|
|
src/textfile.h src/textfile.c
|
2011-09-13 22:48:58 +08:00
|
|
|
compat_dund_LDADD = lib/libbluetooth-private.la
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
dist_man_MANS += compat/dund.1
|
2009-08-25 05:56:11 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += compat/dund.1
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|