Home | History | Annotate | Download | only in bluez
      1 
      2 if TOOLS
      3 if CONFIGFILES
      4 conf_DATA += tools/rfcomm.conf
      5 endif
      6 
      7 bin_PROGRAMS += tools/rfcomm tools/l2ping \
      8 				tools/hcitool tools/sdptool tools/ciptool
      9 
     10 sbin_PROGRAMS += tools/hciattach tools/hciconfig
     11 
     12 noinst_PROGRAMS += tools/avinfo tools/ppporc \
     13 				tools/hcieventmask tools/hcisecfilter
     14 
     15 tools/kword.c: tools/parser.h
     16 
     17 tools_rfcomm_SOURCES = tools/rfcomm.c tools/parser.y tools/lexer.l \
     18 					tools/kword.h tools/kword.c
     19 EXTRA_tools_rfcomm_SOURCES = tools/parser.h tools/parser.c \
     20 							tools/lexer.c
     21 tools_rfcomm_LDADD = lib/libbluetooth.la
     22 
     23 tools_l2ping_LDADD = lib/libbluetooth.la
     24 
     25 tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
     26 						tools/hciattach_st.c \
     27 						tools/hciattach_ti.c \
     28 						tools/hciattach_tialt.c \
     29 						tools/hciattach_ath3k.c \
     30 						tools/hciattach_qualcomm.c
     31 tools_hciattach_LDADD = lib/libbluetooth.la
     32 
     33 tools_hciconfig_SOURCES = tools/hciconfig.c tools/csr.h tools/csr.c \
     34 						src/textfile.h src/textfile.c
     35 tools_hciconfig_LDADD = lib/libbluetooth.la
     36 
     37 tools_hcitool_SOURCES = tools/hcitool.c src/oui.h src/oui.c \
     38 						src/textfile.h src/textfile.c
     39 tools_hcitool_LDADD = lib/libbluetooth.la
     40 
     41 tools_sdptool_SOURCES = tools/sdptool.c src/sdp-xml.h src/sdp-xml.c
     42 tools_sdptool_LDADD = lib/libbluetooth.la
     43 
     44 tools_ciptool_LDADD = lib/libbluetooth.la
     45 
     46 tools_avinfo_LDADD = lib/libbluetooth.la
     47 
     48 tools_ppporc_LDADD = lib/libbluetooth.la
     49 
     50 tools_hcieventmask_LDADD = lib/libbluetooth.la
     51 
     52 if READLINE
     53 bin_PROGRAMS += attrib/gatttool
     54 
     55 attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
     56 				attrib/gattrib.c btio/btio.c \
     57 				attrib/gatttool.h attrib/interactive.c \
     58 				attrib/utils.c
     59 attrib_gatttool_LDADD = lib/libbluetooth.la @GLIB_LIBS@ @READLINE_LIBS@
     60 endif
     61 
     62 dist_man_MANS += tools/rfcomm.1 tools/l2ping.8 \
     63 			tools/hciattach.8 tools/hciconfig.8 \
     64 			tools/hcitool.1 tools/sdptool.1 tools/ciptool.1
     65 else
     66 EXTRA_DIST += tools/rfcomm.1 tools/l2ping.8 \
     67 			tools/hciattach.8 tools/hciconfig.8 \
     68 			tools/hcitool.1 tools/sdptool.1 tools/ciptool.1
     69 endif
     70 
     71 CLEANFILES += tools/lexer.c tools/parser.c tools/parser.h
     72 
     73 EXTRA_DIST += tools/rfcomm.conf
     74 
     75 if TRACER
     76 sbin_PROGRAMS += tracer/hcitrace
     77 
     78 tracer_hcitrace_SOURCES = tracer/main.c
     79 tracer_hcitrace_LDADD = lib/libbluetooth.la \
     80 				@GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@
     81 tracer_hcitrace_DEPENDENCIES = lib/libbluetooth.la
     82 endif
     83 
     84 if BCCMD
     85 sbin_PROGRAMS += tools/bccmd
     86 
     87 tools_bccmd_SOURCES = tools/bccmd.c tools/csr.h tools/csr.c \
     88 			tools/csr_hci.c tools/csr_h4.c tools/csr_3wire.c \
     89 			tools/csr_bcsp.c tools/ubcsp.h tools/ubcsp.c
     90 tools_bccmd_LDADD = lib/libbluetooth.la
     91 
     92 if USB
     93 tools_bccmd_SOURCES += tools/csr_usb.c
     94 tools_bccmd_LDADD += @USB_LIBS@
     95 endif
     96 
     97 dist_man_MANS += tools/bccmd.8
     98 else
     99 EXTRA_DIST += tools/bccmd.8
    100 endif
    101 
    102 if HID2HCI
    103 udevdir = @UDEV_DIR@
    104 
    105 udev_PROGRAMS = tools/hid2hci
    106 
    107 tools_hid2hci_LDADD = @USB_LIBS@ @UDEV_LIBS@
    108 
    109 dist_man_MANS += tools/hid2hci.8
    110 else
    111 EXTRA_DIST += tools/hid2hci.8
    112 endif
    113 
    114 if DFUTOOL
    115 bin_PROGRAMS += tools/dfutool
    116 
    117 tools_dfutool_SOURCES = tools/dfutool.c tools/dfu.h tools/dfu.c
    118 tools_dfutool_LDADD = @USB_LIBS@
    119 
    120 dist_man_MANS += tools/dfutool.1
    121 else
    122 EXTRA_DIST += tools/dfutool.1
    123 endif
    124 
    125 
    126 if USB
    127 noinst_PROGRAMS += tools/dfubabel tools/avctrl
    128 
    129 tools_dfubabel_LDADD = @USB_LIBS@
    130 
    131 tools_avctrl_LDADD = @USB_LIBS@
    132 endif
    133 
    134 EXTRA_DIST += tools/dfubabel.1 tools/avctrl.8
    135 
    136 
    137 if CUPS
    138 cupsdir = $(libdir)/cups/backend
    139 
    140 cups_PROGRAMS = cups/bluetooth
    141 
    142 cups_bluetooth_SOURCES = $(gdbus_sources) cups/main.c cups/cups.h \
    143 					cups/sdp.c cups/spp.c cups/hcrp.c
    144 
    145 cups_bluetooth_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ lib/libbluetooth.la
    146 endif
    147 
    148 
    149 if TEST
    150 sbin_PROGRAMS += test/hciemu
    151 
    152 bin_PROGRAMS += test/l2test test/rctest
    153 
    154 noinst_PROGRAMS += test/gaptest test/sdptest test/scotest \
    155 			test/attest test/hstest test/avtest test/ipctest \
    156 					test/lmptest test/bdaddr test/agent \
    157 					test/btiotest test/test-textfile \
    158 					test/uuidtest
    159 
    160 test_hciemu_LDADD = @GLIB_LIBS@ lib/libbluetooth.la
    161 
    162 test_l2test_LDADD = lib/libbluetooth.la
    163 
    164 test_rctest_LDADD = lib/libbluetooth.la
    165 
    166 test_gaptest_LDADD = @DBUS_LIBS@
    167 
    168 test_sdptest_LDADD = lib/libbluetooth.la
    169 
    170 test_scotest_LDADD = lib/libbluetooth.la
    171 
    172 test_attest_LDADD = lib/libbluetooth.la
    173 
    174 test_hstest_LDADD = lib/libbluetooth.la
    175 
    176 test_avtest_LDADD = lib/libbluetooth.la
    177 
    178 test_lmptest_LDADD = lib/libbluetooth.la
    179 
    180 test_ipctest_SOURCES = test/ipctest.c audio/ipc.h audio/ipc.c
    181 test_ipctest_LDADD= @GLIB_LIBS@ sbc/libsbc.la
    182 
    183 test_bdaddr_SOURCES = test/bdaddr.c src/oui.h src/oui.c
    184 test_bdaddr_LDADD = lib/libbluetooth.la
    185 
    186 test_agent_LDADD = @DBUS_LIBS@
    187 
    188 test_btiotest_SOURCES = test/btiotest.c btio/btio.h btio/btio.c
    189 test_btiotest_LDADD = @GLIB_LIBS@ lib/libbluetooth.la
    190 
    191 test_uuidtest_SOURCES = test/uuidtest.c
    192 test_uuidtest_LDADD = lib/libbluetooth.la
    193 
    194 test_test_textfile_SOURCES = test/test-textfile.c src/textfile.h src/textfile.c
    195 
    196 dist_man_MANS += test/rctest.1 test/hciemu.1
    197 
    198 EXTRA_DIST += test/bdaddr.8
    199 else
    200 EXTRA_DIST += test/rctest.1 test/hciemu.1 test/bdaddr.8
    201 endif
    202 
    203 EXTRA_DIST += test/apitest test/sap-client test/hsplay test/hsmicro \
    204 		test/dbusdef.py test/monitor-bluetooth test/list-devices \
    205 		test/test-discovery test/test-manager test/test-adapter \
    206 		test/test-device test/test-service test/test-serial \
    207 		test/test-telephony test/test-network test/simple-agent \
    208 		test/simple-service test/simple-endpoint test/test-audio \
    209 		test/test-input test/test-attrib test/test-sap-server \
    210 		test/test-oob test/service-record.dtd test/service-did.xml \
    211 		test/service-spp.xml test/service-opp.xml test/service-ftp.xml
    212 
    213 
    214 if HIDD
    215 bin_PROGRAMS += compat/hidd
    216 
    217 compat_hidd_SOURCES = compat/hidd.c compat/hidd.h src/uinput.h \
    218 				compat/sdp.h compat/sdp.c compat/fakehid.c \
    219 						src/textfile.h src/textfile.c
    220 compat_hidd_LDADD = -lm lib/libbluetooth.la
    221 
    222 dist_man_MANS += compat/hidd.1
    223 else
    224 EXTRA_DIST += compat/hidd.1
    225 endif
    226 
    227 if PAND
    228 bin_PROGRAMS += compat/pand
    229 
    230 compat_pand_SOURCES = compat/pand.c compat/pand.h \
    231 				compat/bnep.c compat/sdp.h compat/sdp.c \
    232 						src/textfile.h src/textfile.c
    233 compat_pand_LDADD = lib/libbluetooth.la
    234 
    235 dist_man_MANS += compat/pand.1
    236 else
    237 EXTRA_DIST += compat/pand.1
    238 endif
    239 
    240 if DUND
    241 bin_PROGRAMS += compat/dund
    242 
    243 compat_dund_SOURCES = compat/dund.c compat/dund.h compat/lib.h \
    244 			compat/sdp.h compat/sdp.c compat/dun.c compat/msdun.c \
    245 						src/textfile.h src/textfile.c
    246 compat_dund_LDADD = lib/libbluetooth.la
    247 
    248 dist_man_MANS += compat/dund.1
    249 else
    250 EXTRA_DIST += compat/dund.1
    251 endif
    252