Home | History | Annotate | Download | only in tools
      1 
      2 if TOOLS
      3 tools_programs = l2ping hcitool sdptool ciptool
      4 tools_manfiles = l2ping.8 hcitool.1 sdptool.1 ciptool.1
      5 else
      6 tools_programs =
      7 tools_manfiles =
      8 endif
      9 
     10 if BCCMD
     11 bccmd_programs = bccmd
     12 bccmd_manfiles = bccmd.8
     13 else
     14 bccmd_programs =
     15 bccmd_manfiles =
     16 endif
     17 
     18 if HID2HCI
     19 hid2hci_programs = hid2hci
     20 hid2hci_manfiles = hid2hci.8
     21 else
     22 hid2hci_programs =
     23 hid2hci_manfiles =
     24 endif
     25 
     26 if DFUTOOL
     27 dfutool_programs = dfutool
     28 dfutool_manfiles = dfutool.1
     29 else
     30 dfutool_programs =
     31 dfutool_manfiles =
     32 endif
     33 
     34 if USB
     35 usb_programs = dfubabel avctrl
     36 else
     37 usb_programs =
     38 endif
     39 
     40 sbin_PROGRAMS = hciattach hciconfig $(bccmd_programs) $(avctrl_programs) $(hid2hci_programs)
     41 
     42 bin_PROGRAMS = $(tools_programs) $(dfutool_programs) $(dfubabel_programs)
     43 
     44 noinst_PROGRAMS = hcieventmask hcisecfilter ppporc avinfo $(usb_programs)
     45 
     46 hcieventmask_LDADD = @BLUEZ_LIBS@
     47 
     48 hciattach_SOURCES = hciattach.c hciattach.h \
     49 			hciattach_st.c hciattach_ti.c hciattach_tialt.c
     50 hciattach_LDADD = @BLUEZ_LIBS@
     51 
     52 hciconfig_SOURCES = hciconfig.c csr.h csr.c
     53 hciconfig_LDADD = @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a
     54 
     55 if TOOLS
     56 hcitool_SOURCES = hcitool.c
     57 hcitool_LDADD = @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a
     58 
     59 l2ping_LDADD = @BLUEZ_LIBS@
     60 
     61 sdptool_LDADD = @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a
     62 
     63 ciptool_LDADD = @BLUEZ_LIBS@
     64 
     65 avinfo_LDADD = @BLUEZ_LIBS@
     66 endif
     67 
     68 ppporc_LDADD = @BLUEZ_LIBS@
     69 
     70 if BCCMD
     71 bccmd_SOURCES = bccmd.c csr.h csr.c csr_hci.c \
     72 			csr_bcsp.c csr_h4.c csr_3wire.c ubcsp.h ubcsp.c
     73 bccmd_LDADD = @BLUEZ_LIBS@
     74 if USB
     75 bccmd_SOURCES += csr_usb.c
     76 bccmd_LDADD += @USB_LIBS@
     77 endif
     78 endif
     79 
     80 if HID2HCI
     81 hid2hci_LDADD = @USB_LIBS@
     82 endif
     83 
     84 if DFUTOOL
     85 dfutool_SOURCES = dfutool.c dfu.h dfu.c
     86 dfutool_LDADD = @USB_LIBS@
     87 endif
     88 
     89 if USB
     90 dfubabel_LDADD = @USB_LIBS@
     91 avctrl_LDADD = @USB_LIBS@
     92 endif
     93 
     94 AM_CFLAGS = @BLUEZ_CFLAGS@ @USB_CFLAGS@
     95 
     96 INCLUDES = -I$(top_srcdir)/common
     97 
     98 if MANPAGES
     99 man_MANS = hciattach.8 hciconfig.8 $(tools_manfiles) \
    100 		$(bccmd_manfiles) $(hid2hci_manfiles) $(dfutool_manfiles)
    101 endif
    102 
    103 EXTRA_DIST = hciattach.8 hciconfig.8 l2ping.8 hcitool.1 sdptool.1 ciptool.1 \
    104 		 bccmd.8 avctrl.8 hid2hci.8 dfutool.1 dfubabel.1 example.psr
    105 
    106 MAINTAINERCLEANFILES = Makefile.in
    107