summaryrefslogtreecommitdiffstats
path: root/tools/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile.am')
-rw-r--r--tools/Makefile.am23
1 files changed, 17 insertions, 6 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 3dd69b68..9756a8d8 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -10,18 +10,24 @@ hid2hci_programs =
hid2hci_manfiles =
endif
+if DFUTOOL
+dfutool_programs = dfutool
+dfutool_manfiles = dfutool.1
+else
+dfutool_programs =
+dfutool_manfiles =
+endif
+
sbin_PROGRAMS = hciattach hciconfig $(hid2hci_programs)
-bin_PROGRAMS = hcitool l2ping sdptool ciptool
+bin_PROGRAMS = hcitool l2ping sdptool ciptool $(dfutool_programs)
noinst_PROGRAMS = hcisecfilter ppporc pskey
hciconfig_SOURCES = hciconfig.c csr.h csr.c
-
hciconfig_LDADD = @BLUEZ_LIBS@
hcitool_SOURCES = hcitool.c oui.h oui.c
-
hcitool_LDADD = @BLUEZ_LIBS@
l2ping_LDADD = @BLUEZ_LIBS@
@@ -33,17 +39,22 @@ ciptool_LDADD = @BLUEZ_LIBS@
ppporc_LDADD = @BLUEZ_LIBS@
pskey_SOURCES = pskey.c csr.h csr.c
-
pskey_LDADD = @BLUEZ_LIBS@
if HID2HCI
hid2hci_LDADD = @USB_LIBS@
endif
+if DFUTOOL
+dfutool_SOURCES = dfutool.c dfu.h dfu.c
+dfutool_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)
+man_MANS = hciattach.8 hciconfig.8 hcitool.1 l2ping.1 sdptool.1 ciptool.1 \
+ $(hid2hci_manfiles) $(dfutool_manfiles)
-EXTRA_DIST = $(man_MANS) hid2hci.8 hid2hci.c
+EXTRA_DIST = $(man_MANS) hid2hci.8 dfutool.1
MAINTAINERCLEANFILES = Makefile.in