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