summaryrefslogtreecommitdiffstats
path: root/tools/Makefile.am
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-07-28 17:45:58 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-07-28 17:45:58 +0000
commit8d8392b6c6b12f3aa5a1c2efa025d01a9f44a6ff (patch)
tree4231ed1a7965f809f5a6e32ab8f3e46e84fd596c /tools/Makefile.am
parentf78701c7b01c507a6913f9b22b336225648193c6 (diff)
Rewrite the hid2hci check
Diffstat (limited to 'tools/Makefile.am')
-rw-r--r--tools/Makefile.am16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 086f521e..6470a8a9 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -3,18 +3,14 @@
#
if HID2HCI
-xbindir = $(sbindir)
-
-xbin_PROGRAMS = hid2hci
-
-hid2hci_LDADD = @USB_LIBS@
-
+hid2hci_programs = hid2hci
hid2hci_manfiles = hid2hci.8
else
+hid2hci_programs =
hid2hci_manfiles =
endif
-sbin_PROGRAMS = hciattach hciconfig
+sbin_PROGRAMS = hciattach hciconfig $(hid2hci_programs)
bin_PROGRAMS = hcitool l2ping sdptool ciptool
@@ -34,10 +30,14 @@ ciptool_LDADD = @BLUEZ_LIBS@
ppporc_LDADD = @BLUEZ_LIBS@
+if HID2HCI
+hid2hci_LDADD = @USB_LIBS@
+endif
+
AM_CFLAGS = @BLUEZ_CFLAGS@ @USB_CFLAGS@
man_MANS = hciattach.8 hciconfig.8 hcitool.1 l2ping.1 sdptool.1 ciptool.1 $(hid2hci_manfiles)
-EXTRA_DIST = $(man_MANS) hid2hci.8
+EXTRA_DIST = $(man_MANS) hid2hci.8 hid2hci.c
MAINTAINERCLEANFILES = Makefile.in