From c37be1ab2480c43fdaec098f75ec5e25a65ceb59 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 27 Jul 2004 13:01:42 +0000 Subject: Make more parts optional --- tools/Makefile.am | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'tools/Makefile.am') diff --git a/tools/Makefile.am b/tools/Makefile.am index ca0514ce..79871391 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -2,7 +2,20 @@ # $Id$ # -sbin_PROGRAMS = hciattach hciconfig hid2hci +manfiles = hid2hci.8 + +if HID2HCI +xbindir = $(sbindir) +xmandir = $(mandir) + +xbin_PROGRAMS = hid2hci + +hid2hci_LDADD = @USB_LIBS@ + +xman_MANS = $(manfiles) +endif + +sbin_PROGRAMS = hciattach hciconfig bin_PROGRAMS = hcitool l2ping sdptool ciptool @@ -22,12 +35,10 @@ ciptool_LDADD = @BLUEZ_LIBS@ ppporc_LDADD = @BLUEZ_LIBS@ -hid2hci_LDADD = @USB_LIBS@ - AM_CFLAGS = @BLUEZ_CFLAGS@ @USB_CFLAGS@ -man_MANS = hciattach.8 hciconfig.8 hid2hci.8 hcitool.1 l2ping.1 sdptool.1 ciptool.1 +man_MANS = hciattach.8 hciconfig.8 hcitool.1 l2ping.1 sdptool.1 ciptool.1 -EXTRA_DIST = $(man_MANS) +EXTRA_DIST = $(man_MANS) $(manfiles) MAINTAINERCLEANFILES = Makefile.in -- cgit