Makefile.tools 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. # SPDX-License-Identifier: GPL-2.0
  2. if CLIENT
  3. bin_PROGRAMS += client/bluetoothctl
  4. client_bluetoothctl_SOURCES = client/main.c \
  5. client/display.h client/display.c \
  6. client/agent.h client/agent.c \
  7. client/advertising.h \
  8. client/advertising.c \
  9. client/adv_monitor.h \
  10. client/adv_monitor.c \
  11. client/gatt.h client/gatt.c \
  12. client/admin.h \
  13. client/admin.c
  14. client_bluetoothctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
  15. $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
  16. endif
  17. if ZSH_COMPLETIONS
  18. zshcompletiondir=$(ZSH_COMPLETIONDIR)
  19. dist_zshcompletion_DATA = completion/zsh/_bluetoothctl
  20. endif
  21. if MONITOR
  22. bin_PROGRAMS += monitor/btmon
  23. monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \
  24. monitor/display.h monitor/display.c \
  25. monitor/hcidump.h monitor/hcidump.c \
  26. monitor/ellisys.h monitor/ellisys.c \
  27. monitor/control.h monitor/control.c \
  28. monitor/packet.h monitor/packet.c \
  29. monitor/vendor.h monitor/vendor.c \
  30. monitor/lmp.h monitor/lmp.c \
  31. monitor/crc.h monitor/crc.c \
  32. monitor/ll.h monitor/ll.c \
  33. monitor/l2cap.h monitor/l2cap.c \
  34. monitor/sdp.h monitor/sdp.c \
  35. monitor/avctp.h monitor/avctp.c \
  36. monitor/avdtp.h monitor/avdtp.c \
  37. monitor/a2dp.h monitor/a2dp.c \
  38. monitor/rfcomm.h monitor/rfcomm.c \
  39. monitor/bnep.h monitor/bnep.c \
  40. monitor/hwdb.h monitor/hwdb.c \
  41. monitor/keys.h monitor/keys.c \
  42. monitor/analyze.h monitor/analyze.c \
  43. monitor/intel.h monitor/intel.c \
  44. monitor/broadcom.h monitor/broadcom.c \
  45. monitor/msft.h monitor/msft.c \
  46. monitor/jlink.h monitor/jlink.c \
  47. monitor/tty.h
  48. monitor_btmon_LDADD = lib/libbluetooth-internal.la \
  49. src/libshared-mainloop.la $(UDEV_LIBS) -ldl
  50. if MANPAGES
  51. man_MANS += monitor/btmon.1
  52. endif
  53. endif
  54. manual_pages += monitor/btmon.1
  55. if LOGGER
  56. pkglibexec_PROGRAMS += tools/btmon-logger
  57. tools_btmon_logger_SOURCES = tools/btmon-logger.c
  58. tools_btmon_logger_LDADD = src/libshared-mainloop.la
  59. tools_btmon_logger_DEPENDENCIES = src/libshared-mainloop.la \
  60. tools/bluetooth-logger.service
  61. if SYSTEMD
  62. systemdsystemunit_DATA += tools/bluetooth-logger.service
  63. endif
  64. endif
  65. CLEANFILES += tools/bluetooth-logger.service
  66. EXTRA_DIST += tools/bluetooth-logger.service.in
  67. if TESTING
  68. noinst_PROGRAMS += emulator/btvirt emulator/b1ee emulator/hfp \
  69. peripheral/btsensor tools/3dsp \
  70. tools/mgmt-tester tools/gap-tester \
  71. tools/l2cap-tester tools/sco-tester \
  72. tools/smp-tester tools/hci-tester \
  73. tools/rfcomm-tester tools/bnep-tester \
  74. tools/userchan-tester
  75. emulator_btvirt_SOURCES = emulator/main.c monitor/bt.h \
  76. emulator/serial.h emulator/serial.c \
  77. emulator/server.h emulator/server.c \
  78. emulator/vhci.h emulator/vhci.c \
  79. emulator/btdev.h emulator/btdev.c \
  80. emulator/bthost.h emulator/bthost.c \
  81. emulator/smp.c \
  82. emulator/phy.h emulator/phy.c \
  83. emulator/amp.h emulator/amp.c \
  84. emulator/le.h emulator/le.c
  85. emulator_btvirt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
  86. emulator_b1ee_SOURCES = emulator/b1ee.c
  87. emulator_b1ee_LDADD = src/libshared-mainloop.la
  88. emulator_hfp_SOURCES = emulator/hfp.c
  89. emulator_hfp_LDADD = src/libshared-mainloop.la
  90. peripheral_btsensor_SOURCES = peripheral/main.c \
  91. peripheral/efivars.h peripheral/efivars.c \
  92. peripheral/attach.h peripheral/attach.c \
  93. peripheral/log.h peripheral/log.c \
  94. peripheral/gap.h peripheral/gap.c \
  95. peripheral/gatt.h peripheral/gatt.c
  96. peripheral_btsensor_LDADD = src/libshared-mainloop.la \
  97. lib/libbluetooth-internal.la
  98. tools_3dsp_SOURCES = tools/3dsp.c monitor/bt.h
  99. tools_3dsp_LDADD = src/libshared-mainloop.la
  100. tools_mgmt_tester_SOURCES = tools/mgmt-tester.c monitor/bt.h \
  101. emulator/hciemu.h emulator/hciemu.c \
  102. emulator/btdev.h emulator/btdev.c \
  103. emulator/bthost.h emulator/bthost.c \
  104. emulator/smp.c
  105. tools_mgmt_tester_LDADD = lib/libbluetooth-internal.la \
  106. src/libshared-glib.la $(GLIB_LIBS)
  107. tools_l2cap_tester_SOURCES = tools/l2cap-tester.c monitor/bt.h \
  108. emulator/hciemu.h emulator/hciemu.c \
  109. emulator/btdev.h emulator/btdev.c \
  110. emulator/bthost.h emulator/bthost.c \
  111. emulator/smp.c
  112. tools_l2cap_tester_LDADD = lib/libbluetooth-internal.la \
  113. src/libshared-glib.la $(GLIB_LIBS)
  114. tools_rfcomm_tester_SOURCES = tools/rfcomm-tester.c monitor/bt.h \
  115. emulator/hciemu.h emulator/hciemu.c \
  116. emulator/btdev.h emulator/btdev.c \
  117. emulator/bthost.h emulator/bthost.c \
  118. emulator/smp.c
  119. tools_rfcomm_tester_LDADD = lib/libbluetooth-internal.la \
  120. src/libshared-glib.la $(GLIB_LIBS)
  121. tools_bnep_tester_SOURCES = tools/bnep-tester.c monitor/bt.h \
  122. emulator/hciemu.h emulator/hciemu.c \
  123. emulator/btdev.h emulator/btdev.c \
  124. emulator/bthost.h emulator/bthost.c \
  125. emulator/smp.c
  126. tools_bnep_tester_LDADD = lib/libbluetooth-internal.la \
  127. src/libshared-glib.la $(GLIB_LIBS)
  128. tools_smp_tester_SOURCES = tools/smp-tester.c monitor/bt.h \
  129. emulator/hciemu.h emulator/hciemu.c \
  130. emulator/btdev.h emulator/btdev.c \
  131. emulator/bthost.h emulator/bthost.c \
  132. emulator/smp.c
  133. tools_smp_tester_LDADD = lib/libbluetooth-internal.la \
  134. src/libshared-glib.la $(GLIB_LIBS)
  135. tools_gap_tester_SOURCES = tools/gap-tester.c monitor/bt.h \
  136. emulator/hciemu.h emulator/hciemu.c \
  137. emulator/btdev.h emulator/btdev.c \
  138. emulator/bthost.h emulator/bthost.c \
  139. emulator/smp.c
  140. tools_gap_tester_LDADD = lib/libbluetooth-internal.la \
  141. gdbus/libgdbus-internal.la \
  142. src/libshared-glib.la \
  143. $(GLIB_LIBS) $(DBUS_LIBS)
  144. tools_sco_tester_SOURCES = tools/sco-tester.c monitor/bt.h \
  145. emulator/hciemu.h emulator/hciemu.c \
  146. emulator/btdev.h emulator/btdev.c \
  147. emulator/bthost.h emulator/bthost.c \
  148. emulator/smp.c
  149. tools_sco_tester_LDADD = lib/libbluetooth-internal.la \
  150. src/libshared-glib.la $(GLIB_LIBS)
  151. tools_hci_tester_SOURCES = tools/hci-tester.c monitor/bt.h
  152. tools_hci_tester_LDADD = src/libshared-glib.la $(GLIB_LIBS)
  153. tools_userchan_tester_SOURCES = tools/userchan-tester.c monitor/bt.h \
  154. emulator/hciemu.h emulator/hciemu.c \
  155. emulator/btdev.h emulator/btdev.c \
  156. emulator/bthost.h emulator/bthost.c \
  157. emulator/smp.c
  158. tools_userchan_tester_LDADD = lib/libbluetooth-internal.la \
  159. src/libshared-glib.la $(GLIB_LIBS)
  160. endif
  161. if TOOLS
  162. bin_PROGRAMS += tools/rctest tools/l2test tools/l2ping tools/bluemoon \
  163. tools/hex2hcd tools/mpris-proxy tools/btattach
  164. noinst_PROGRAMS += tools/bdaddr tools/avinfo tools/avtest \
  165. tools/scotest tools/amptest tools/hwdb \
  166. tools/hcieventmask tools/hcisecfilter \
  167. tools/btinfo tools/btconfig \
  168. tools/btsnoop tools/btproxy \
  169. tools/btiotest tools/bneptest tools/mcaptest \
  170. tools/cltest tools/oobtest tools/advtest \
  171. tools/seq2bseq tools/nokfw tools/rtlfw \
  172. tools/bcmfw tools/create-image \
  173. tools/eddystone tools/ibeacon \
  174. tools/btgatt-client tools/btgatt-server \
  175. tools/test-runner tools/check-selftest \
  176. tools/gatt-service profiles/iap/iapd
  177. tools_bdaddr_SOURCES = tools/bdaddr.c src/oui.h src/oui.c
  178. tools_bdaddr_LDADD = lib/libbluetooth-internal.la $(UDEV_LIBS)
  179. tools_avinfo_LDADD = lib/libbluetooth-internal.la
  180. tools_avtest_LDADD = lib/libbluetooth-internal.la
  181. tools_scotest_LDADD = lib/libbluetooth-internal.la
  182. tools_amptest_LDADD = lib/libbluetooth-internal.la
  183. tools_hwdb_LDADD = lib/libbluetooth-internal.la
  184. tools_hcieventmask_LDADD = lib/libbluetooth-internal.la
  185. tools_btinfo_SOURCES = tools/btinfo.c monitor/bt.h
  186. tools_btinfo_LDADD = src/libshared-mainloop.la
  187. tools_btattach_SOURCES = tools/btattach.c monitor/bt.h
  188. tools_btattach_LDADD = src/libshared-mainloop.la
  189. tools_btconfig_SOURCES = tools/btconfig.c
  190. tools_btconfig_LDADD = src/libshared-mainloop.la
  191. tools_btsnoop_SOURCES = tools/btsnoop.c
  192. tools_btsnoop_LDADD = src/libshared-mainloop.la
  193. tools_btproxy_SOURCES = tools/btproxy.c monitor/bt.h
  194. tools_btproxy_LDADD = src/libshared-mainloop.la
  195. tools_btiotest_SOURCES = tools/btiotest.c btio/btio.h btio/btio.c
  196. tools_btiotest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
  197. tools_mcaptest_SOURCES = tools/mcaptest.c \
  198. btio/btio.h btio/btio.c \
  199. src/log.c src/log.h \
  200. profiles/health/mcap.h profiles/health/mcap.c
  201. tools_mcaptest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS) \
  202. src/libshared-mainloop.la -lrt
  203. tools_bneptest_SOURCES = tools/bneptest.c \
  204. btio/btio.h btio/btio.c \
  205. src/log.h src/log.c \
  206. profiles/network/bnep.h profiles/network/bnep.c
  207. tools_bneptest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS) \
  208. src/libshared-mainloop.la
  209. tools_cltest_SOURCES = tools/cltest.c
  210. tools_cltest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
  211. tools_oobtest_SOURCES = tools/oobtest.c
  212. tools_oobtest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
  213. tools_advtest_SOURCES = tools/advtest.c
  214. tools_advtest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
  215. tools_seq2bseq_SOURCES = tools/seq2bseq.c
  216. tools_nokfw_SOURCES = tools/nokfw.c
  217. tools_rtlfw_SOURCES = tools/rtlfw.c
  218. tools_create_image_SOURCES = tools/create-image.c
  219. tools_eddystone_SOURCES = tools/eddystone.c monitor/bt.h
  220. tools_eddystone_LDADD = src/libshared-mainloop.la
  221. tools_ibeacon_SOURCES = tools/ibeacon.c monitor/bt.h
  222. tools_ibeacon_LDADD = src/libshared-mainloop.la
  223. tools_btgatt_client_SOURCES = tools/btgatt-client.c src/uuid-helper.c
  224. tools_btgatt_client_LDADD = src/libshared-mainloop.la \
  225. lib/libbluetooth-internal.la
  226. tools_btgatt_server_SOURCES = tools/btgatt-server.c src/uuid-helper.c
  227. tools_btgatt_server_LDADD = src/libshared-mainloop.la \
  228. lib/libbluetooth-internal.la
  229. tools_rctest_LDADD = lib/libbluetooth-internal.la
  230. tools_l2test_LDADD = lib/libbluetooth-internal.la
  231. tools_l2ping_LDADD = lib/libbluetooth-internal.la
  232. tools_bluemoon_SOURCES = tools/bluemoon.c monitor/bt.h
  233. tools_bluemoon_LDADD = src/libshared-mainloop.la
  234. tools_hex2hcd_SOURCES = tools/hex2hcd.c
  235. tools_mpris_proxy_SOURCES = tools/mpris-proxy.c
  236. tools_mpris_proxy_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS)
  237. tools_gatt_service_SOURCES = tools/gatt-service.c
  238. tools_gatt_service_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) gdbus/libgdbus-internal.la
  239. profiles_iap_iapd_SOURCES = profiles/iap/main.c
  240. profiles_iap_iapd_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS)
  241. if MANPAGES
  242. man_MANS += tools/rctest.1 tools/l2ping.1 tools/btattach.1
  243. endif
  244. if MESH
  245. bin_PROGRAMS += tools/meshctl
  246. tools_meshctl_SOURCES = tools/meshctl.c \
  247. tools/mesh/agent.h tools/mesh/agent.c \
  248. tools/mesh/config-model.h\
  249. tools/mesh-gatt/mesh-net.h \
  250. tools/mesh-gatt/node.h tools/mesh-gatt/node.c \
  251. tools/mesh-gatt/gatt.h tools/mesh-gatt/gatt.c \
  252. tools/mesh-gatt/crypto.h\
  253. tools/mesh-gatt/crypto.c \
  254. tools/mesh-gatt/keys.h \
  255. tools/mesh-gatt/net.h tools/mesh-gatt/net.c \
  256. tools/mesh-gatt/prov.h tools/mesh-gatt/prov.c \
  257. tools/mesh-gatt/util.h tools/mesh-gatt/util.c \
  258. tools/mesh-gatt/prov-db.h \
  259. tools/mesh-gatt/prov-db.c \
  260. tools/mesh-gatt/config-client.c \
  261. tools/mesh-gatt/config-server.c \
  262. tools/mesh-gatt/onoff-model.h \
  263. tools/mesh-gatt/onoff-model.c
  264. tools_meshctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
  265. lib/libbluetooth-internal.la \
  266. $(GLIB_LIBS) $(DBUS_LIBS) -ljson-c -lreadline
  267. bin_PROGRAMS += tools/mesh-cfgclient
  268. tools_mesh_cfgclient_SOURCES = tools/mesh-cfgclient.c \
  269. tools/mesh/model.h tools/mesh/config-model.h \
  270. tools/mesh/cfgcli.h tools/mesh/cfgcli.c \
  271. tools/mesh/keys.h tools/mesh/keys.c \
  272. tools/mesh/util.h tools/mesh/util.c \
  273. tools/mesh/remote.h tools/mesh/remote.c \
  274. tools/mesh/agent.h tools/mesh/agent.c \
  275. tools/mesh/mesh-db.h tools/mesh/mesh-db.c \
  276. mesh/util.h mesh/util.c \
  277. mesh/crypto.h mesh/crypto.c
  278. tools_mesh_cfgclient_LDADD = lib/libbluetooth-internal.la src/libshared-ell.la \
  279. $(ell_ldadd) -ljson-c -lreadline
  280. bin_PROGRAMS += tools/mesh-cfgtest
  281. tools_mesh_cfgtest_SOURCES = tools/mesh-cfgtest.c
  282. tools_mesh_cfgtest_LDADD = lib/libbluetooth-internal.la src/libshared-ell.la \
  283. $(ell_ldadd)
  284. endif
  285. EXTRA_DIST += tools/mesh-gatt/local_node.json tools/mesh-gatt/prov_db.json
  286. if DEPRECATED
  287. bin_PROGRAMS += tools/hciattach tools/hciconfig tools/hcitool tools/hcidump \
  288. tools/rfcomm tools/sdptool tools/ciptool
  289. tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
  290. tools/hciattach_st.c \
  291. tools/hciattach_ti.c \
  292. tools/hciattach_tialt.c \
  293. tools/hciattach_ath3k.c \
  294. tools/hciattach_qualcomm.c \
  295. tools/hciattach_intel.c \
  296. tools/hciattach_bcm43xx.c
  297. tools_hciattach_LDADD = lib/libbluetooth-internal.la
  298. tools_hciconfig_SOURCES = tools/hciconfig.c
  299. tools_hciconfig_LDADD = lib/libbluetooth-internal.la
  300. tools_hcitool_SOURCES = tools/hcitool.c src/oui.h src/oui.c
  301. tools_hcitool_LDADD = lib/libbluetooth-internal.la $(UDEV_LIBS)
  302. tools_hcidump_SOURCES = tools/hcidump.c \
  303. tools/parser/parser.h tools/parser/parser.c \
  304. tools/parser/lmp.c \
  305. tools/parser/hci.c \
  306. tools/parser/l2cap.h tools/parser/l2cap.c \
  307. tools/parser/amp.c \
  308. tools/parser/smp.c \
  309. tools/parser/att.c \
  310. tools/parser/sdp.h tools/parser/sdp.c \
  311. tools/parser/rfcomm.h tools/parser/rfcomm.c \
  312. tools/parser/bnep.c \
  313. tools/parser/cmtp.c \
  314. tools/parser/hidp.c \
  315. tools/parser/hcrp.c \
  316. tools/parser/avdtp.c \
  317. tools/parser/avctp.c \
  318. tools/parser/avrcp.c \
  319. tools/parser/sap.c \
  320. tools/parser/obex.c \
  321. tools/parser/capi.c \
  322. tools/parser/ppp.c \
  323. tools/parser/tcpip.c \
  324. tools/parser/ericsson.c \
  325. tools/parser/csr.c \
  326. tools/parser/bpa.c
  327. tools_sdptool_SOURCES = tools/sdptool.c src/sdp-xml.h src/sdp-xml.c
  328. tools_sdptool_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
  329. tools_ciptool_LDADD = lib/libbluetooth-internal.la
  330. tools_hcidump_LDADD = lib/libbluetooth-internal.la
  331. tools_rfcomm_LDADD = lib/libbluetooth-internal.la
  332. if MANPAGES
  333. man_MANS += tools/hciattach.1 tools/hciconfig.1 \
  334. tools/hcitool.1 tools/hcidump.1 \
  335. tools/rfcomm.1 tools/sdptool.1 tools/ciptool.1
  336. endif
  337. endif
  338. endif
  339. manual_pages += tools/hciattach.1 tools/hciconfig.1 \
  340. tools/hcitool.1 tools/hcidump.1 \
  341. tools/rfcomm.1 tools/sdptool.1 tools/ciptool.1 \
  342. tools/rctest.1 tools/l2ping.1 tools/btattach.1 \
  343. tools/bdaddr.1
  344. if HID2HCI
  345. udevdir = $(UDEV_DIR)
  346. udev_PROGRAMS = tools/hid2hci
  347. tools_hid2hci_LDADD = $(UDEV_LIBS)
  348. if MANPAGES
  349. man_MANS += tools/hid2hci.1
  350. endif
  351. endif
  352. manual_pages += tools/hid2hci.1
  353. if READLINE
  354. noinst_PROGRAMS += tools/btmgmt tools/obex-client-tool tools/obex-server-tool \
  355. tools/bluetooth-player tools/obexctl
  356. tools_obex_client_tool_SOURCES = $(gobex_sources) $(btio_sources) \
  357. tools/obex-client-tool.c
  358. tools_obex_client_tool_LDADD = lib/libbluetooth-internal.la \
  359. $(GLIB_LIBS) -lreadline
  360. tools_obex_server_tool_SOURCES = $(gobex_sources) $(btio_sources) \
  361. tools/obex-server-tool.c
  362. tools_obex_server_tool_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
  363. tools_bluetooth_player_SOURCES = tools/bluetooth-player.c
  364. tools_bluetooth_player_LDADD = gdbus/libgdbus-internal.la \
  365. src/libshared-glib.la \
  366. $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
  367. tools_obexctl_SOURCES = tools/obexctl.c
  368. tools_obexctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
  369. $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
  370. tools_btmgmt_SOURCES = tools/btmgmt.c src/uuid-helper.c client/display.c
  371. tools_btmgmt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la \
  372. -lreadline
  373. if DEPRECATED
  374. noinst_PROGRAMS += attrib/gatttool
  375. attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
  376. attrib/gattrib.c btio/btio.c \
  377. attrib/gatttool.h attrib/interactive.c \
  378. attrib/utils.c src/log.c client/display.c \
  379. client/display.h
  380. attrib_gatttool_LDADD = lib/libbluetooth-internal.la \
  381. src/libshared-glib.la $(GLIB_LIBS) -lreadline
  382. endif
  383. endif
  384. if CUPS
  385. cupsdir = $(libdir)/cups/backend
  386. cups_PROGRAMS = profiles/cups/bluetooth
  387. profiles_cups_bluetooth_SOURCES = profiles/cups/main.c \
  388. profiles/cups/cups.h \
  389. profiles/cups/sdp.c \
  390. profiles/cups/spp.c \
  391. profiles/cups/hcrp.c
  392. profiles_cups_bluetooth_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) \
  393. lib/libbluetooth-internal.la \
  394. gdbus/libgdbus-internal.la
  395. endif
  396. test_scripts += test/sap_client.py test/bluezutils.py \
  397. test/dbusdef.py test/monitor-bluetooth test/list-devices \
  398. test/test-discovery test/test-manager test/test-adapter \
  399. test/test-device test/simple-agent \
  400. test/simple-endpoint test/test-sap-server \
  401. test/test-network test/test-profile test/test-health \
  402. test/test-health-sink test/service-record.dtd \
  403. test/service-did.xml test/service-spp.xml test/service-opp.xml \
  404. test/service-ftp.xml test/simple-player test/test-nap \
  405. test/test-hfp test/opp-client test/ftp-client \
  406. test/pbap-client test/map-client test/example-advertisement \
  407. test/example-gatt-server test/example-gatt-client \
  408. test/test-gatt-profile test/test-mesh test/agent.py
  409. if BTPCLIENT
  410. noinst_PROGRAMS += tools/btpclient tools/btpclientctl
  411. tools_btpclient_SOURCES = tools/btpclient.c src/shared/btp.c src/shared/btp.h
  412. tools_btpclient_LDADD = lib/libbluetooth-internal.la \
  413. src/libshared-ell.la $(ell_ldadd)
  414. tools_btpclient_DEPENDENCIES = lib/libbluetooth-internal.la $(ell_dependencies)
  415. tools/btpclient.$(OBJEXT): src/libshared-ell.la ell/internal
  416. tools_btpclientctl_SOURCES = tools/btpclientctl.c client/display.c
  417. tools_btpclientctl_LDADD = src/libshared-mainloop.la src/libshared-glib.la \
  418. lib/libbluetooth-internal.la -lreadline
  419. endif