summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-02-10 05:27:22 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-02-10 05:27:22 +0000
commitd842176ec218c4417321b22a87fa33d037c84795 (patch)
treedcf4e0073a699e6ac950671a92ccd7add2789698 /tools
parent9341b13b646e5c4621a0c76a1852a8cc415d92c3 (diff)
Add option for installing generic tools
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 2e5ecd68..5d677380 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -1,4 +1,12 @@
+if TOOLS
+tools_programs = hcitool l2ping sdptool ciptool
+tools_manfiles = hcitool.1 l2ping.1 sdptool.1 ciptool.1
+else
+tools_programs =
+tools_manfiles =
+endif
+
if BCCMD
bccmd_programs = bccmd
bccmd_manfiles = bccmd.8
@@ -41,7 +49,7 @@ endif
sbin_PROGRAMS = hciattach hciconfig $(bccmd_programs) $(avctrl_programs) $(hid2hci_programs)
-bin_PROGRAMS = hcitool l2ping sdptool ciptool $(dfutool_programs) $(dfubabel_programs)
+bin_PROGRAMS = $(tools_programs) $(dfutool_programs) $(dfubabel_programs)
noinst_PROGRAMS = hcisecfilter ppporc
@@ -51,6 +59,7 @@ hciattach_LDADD = @BLUEZ_LIBS@
hciconfig_SOURCES = hciconfig.c csr.h csr.c
hciconfig_LDADD = @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a
+if TOOLS
hcitool_SOURCES = hcitool.c
hcitool_LDADD = @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a
@@ -59,6 +68,7 @@ l2ping_LDADD = @BLUEZ_LIBS@
sdptool_LDADD = @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a
ciptool_LDADD = @BLUEZ_LIBS@
+endif
ppporc_LDADD = @BLUEZ_LIBS@
@@ -94,7 +104,7 @@ AM_CFLAGS = @BLUEZ_CFLAGS@ @USB_CFLAGS@
INCLUDES = -I$(top_srcdir)/common
if MANPAGES
-man_MANS = hciattach.8 hciconfig.8 hcitool.1 l2ping.1 sdptool.1 ciptool.1 \
+man_MANS = hciattach.8 hciconfig.8 $(tools_manfiles) \
$(bccmd_manfiles) $(avctrl_manfiles) $(hid2hci_manfiles) \
$(dfutool_manfiles) $(dfubabel_manfiles)
endif