bluez/Makefile.tools

221 lines
6.2 KiB
Makefile
Raw Normal View History

if TOOLS
bin_PROGRAMS += tools/rfcomm tools/l2ping \
tools/hcitool tools/sdptool tools/ciptool
sbin_PROGRAMS += tools/hciattach tools/hciconfig
noinst_PROGRAMS += tools/avinfo tools/ppporc \
tools/hcieventmask tools/hcisecfilter
tools_rfcomm_SOURCES = tools/rfcomm.c
tools_rfcomm_LDADD = lib/libbluetooth-private.la
tools_l2ping_LDADD = lib/libbluetooth-private.la
tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
tools/hciattach_st.c \
tools/hciattach_ti.c \
tools/hciattach_tialt.c \
tools/hciattach_ath3k.c \
tools/hciattach_qualcomm.c \
tools/hciattach_intel.c
tools_hciattach_LDADD = lib/libbluetooth-private.la
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
tools_hciconfig_LDADD = lib/libbluetooth-private.la
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
tools_hcitool_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@
2009-08-29 13:24:04 +08:00
tools_sdptool_SOURCES = tools/sdptool.c src/sdp-xml.h src/sdp-xml.c
tools_sdptool_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@
tools_ciptool_LDADD = lib/libbluetooth-private.la
tools_avinfo_LDADD = lib/libbluetooth-private.la
tools_ppporc_LDADD = lib/libbluetooth-private.la
tools_hcieventmask_LDADD = lib/libbluetooth-private.la
2012-10-09 06:35:47 +08:00
noinst_PROGRAMS += tools/btmgmt monitor/btmon emulator/btvirt emulator/b1ee
2012-10-22 18:01:12 +08:00
tools_btmgmt_SOURCES = tools/btmgmt.c src/glib-helper.c src/eir.c
2012-07-10 22:03:08 +08:00
tools_btmgmt_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@
2011-10-25 21:36:00 +08:00
monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \
monitor/pager.h monitor/pager.c \
monitor/mainloop.h monitor/mainloop.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
2012-02-21 01:17:34 +08:00
monitor_btmon_LDADD = lib/libbluetooth-private.la
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 \
emulator/btdev.h emulator/btdev.c
2012-10-09 06:35:47 +08:00
emulator_b1ee_SOURCES = emulator/b1ee.c monitor/mainloop.h monitor/mainloop.c
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 src/log.c
attrib_gatttool_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@ @READLINE_LIBS@
endif
dist_man_MANS += tools/rfcomm.1 tools/l2ping.8 \
tools/hciattach.8 tools/hciconfig.8 \
tools/hcitool.1 tools/sdptool.1 tools/ciptool.1
else
EXTRA_DIST += tools/rfcomm.1 tools/l2ping.8 \
tools/hciattach.8 tools/hciconfig.8 \
tools/hcitool.1 tools/sdptool.1 tools/ciptool.1
endif
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
tools_bccmd_LDADD = lib/libbluetooth-private.la
if USB
tools_bccmd_SOURCES += tools/csr_usb.c
tools_bccmd_LDADD += @USB_LIBS@
endif
dist_man_MANS += tools/bccmd.8
else
EXTRA_DIST += tools/bccmd.8
endif
if HID2HCI
2011-04-29 06:32:25 +08:00
udevdir = @UDEV_DIR@
udev_PROGRAMS = tools/hid2hci
2011-04-28 17:08:47 +08:00
tools_hid2hci_LDADD = @USB_LIBS@ @UDEV_LIBS@
dist_man_MANS += tools/hid2hci.8
else
EXTRA_DIST += tools/hid2hci.8
endif
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
else
EXTRA_DIST += tools/dfutool.1
endif
if USB
noinst_PROGRAMS += tools/dfubabel tools/avctrl
tools_dfubabel_LDADD = @USB_LIBS@
tools_avctrl_LDADD = @USB_LIBS@
endif
EXTRA_DIST += tools/dfubabel.1 tools/avctrl.8
if CUPS
cupsdir = $(libdir)/cups/backend
2012-07-10 05:10:34 +08:00
cups_PROGRAMS = profiles/cups/bluetooth
2012-07-10 05:10:34 +08:00
profiles_cups_bluetooth_SOURCES = $(gdbus_sources) profiles/cups/main.c \
profiles/cups/cups.h \
profiles/cups/sdp.c \
profiles/cups/spp.c \
profiles/cups/hcrp.c
2012-07-10 05:10:34 +08:00
profiles_cups_bluetooth_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ \
lib/libbluetooth-private.la
endif
if TEST
sbin_PROGRAMS += test/hciemu
bin_PROGRAMS += test/l2test test/rctest
noinst_PROGRAMS += test/gaptest test/sdptest test/scotest \
test/attest test/hstest test/avtest \
test/lmptest test/bdaddr test/agent \
2011-03-15 21:05:04 +08:00
test/btiotest test/test-textfile \
test/uuidtest test/mpris-player
test_hciemu_LDADD = lib/libbluetooth-private.la
test_l2test_LDADD = lib/libbluetooth-private.la
test_rctest_LDADD = lib/libbluetooth-private.la
test_gaptest_LDADD = @DBUS_LIBS@
test_sdptest_LDADD = lib/libbluetooth-private.la
test_scotest_LDADD = lib/libbluetooth-private.la
test_attest_LDADD = lib/libbluetooth-private.la
test_hstest_LDADD = lib/libbluetooth-private.la
test_avtest_LDADD = lib/libbluetooth-private.la
test_lmptest_LDADD = lib/libbluetooth-private.la
2009-08-29 13:24:04 +08:00
test_bdaddr_SOURCES = test/bdaddr.c src/oui.h src/oui.c
test_bdaddr_LDADD = lib/libbluetooth-private.la
test_agent_LDADD = @DBUS_LIBS@
test_btiotest_SOURCES = test/btiotest.c btio/btio.h btio/btio.c
test_btiotest_LDADD = @GLIB_LIBS@ lib/libbluetooth-private.la
2011-03-15 21:05:04 +08:00
test_uuidtest_SOURCES = test/uuidtest.c
test_uuidtest_LDADD = lib/libbluetooth-private.la
2011-03-15 21:05:04 +08:00
test_mpris_player_SOURCES = test/mpris-player.c
test_mpris_player_LDADD = @DBUS_LIBS@ @GLIB_LIBS@
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
dist_man_MANS += test/rctest.1 test/hciemu.1
EXTRA_DIST += test/bdaddr.8
else
EXTRA_DIST += test/rctest.1 test/hciemu.1 test/bdaddr.8
endif
EXTRA_DIST += test/sap_client.py test/hsplay test/hsmicro \
test/dbusdef.py test/monitor-bluetooth test/list-devices \
test/test-discovery test/test-manager test/test-adapter \
2012-07-24 21:08:41 +08:00
test/test-device test/test-service test/test-telephony \
test/test-network test/simple-agent test/simple-service \
test/simple-endpoint test/test-audio test/test-input \
test/test-sap-server test/test-oob test/test-attrib \
2012-09-25 20:11:48 +08:00
test/test-proximity test/test-thermometer test/test-profile \
test/test-health test/test-health-sink test/service-record.dtd \
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 \
test/test-heartrate test/test-alert