3 bin_PROGRAMS += client/bluetoothctl
5 client_bluetoothctl_SOURCES = client/main.c \
6 client/display.h client/display.c \
7 client/agent.h client/agent.c \
10 client/gatt.h client/gatt.c \
11 monitor/uuid.h monitor/uuid.c
12 client_bluetoothctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
13 $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
17 bin_PROGRAMS += monitor/btmon
19 monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \
20 monitor/display.h monitor/display.c \
21 monitor/hcidump.h monitor/hcidump.c \
22 monitor/ellisys.h monitor/ellisys.c \
23 monitor/control.h monitor/control.c \
24 monitor/packet.h monitor/packet.c \
25 monitor/vendor.h monitor/vendor.c \
26 monitor/lmp.h monitor/lmp.c \
27 monitor/crc.h monitor/crc.c \
28 monitor/ll.h monitor/ll.c \
29 monitor/l2cap.h monitor/l2cap.c \
30 monitor/sdp.h monitor/sdp.c \
31 monitor/avctp.h monitor/avctp.c \
32 monitor/avdtp.h monitor/avdtp.c \
33 monitor/a2dp.h monitor/a2dp.c \
34 monitor/rfcomm.h monitor/rfcomm.c \
35 monitor/bnep.h monitor/bnep.c \
36 monitor/uuid.h monitor/uuid.c \
37 monitor/hwdb.h monitor/hwdb.c \
38 monitor/keys.h monitor/keys.c \
39 monitor/analyze.h monitor/analyze.c \
40 monitor/intel.h monitor/intel.c \
41 monitor/broadcom.h monitor/broadcom.c \
42 monitor/jlink.h monitor/jlink.c \
44 monitor_btmon_LDADD = lib/libbluetooth-internal.la \
45 src/libshared-mainloop.la $(UDEV_LIBS) -ldl
49 libexec_PROGRAMS += tools/btmon-logger
51 tools_btmon_logger_SOURCES = tools/btmon-logger.c
52 tools_btmon_logger_LDADD = src/libshared-mainloop.la
53 tools_btmon_logger_DEPENDENCIES = src/libshared-mainloop.la \
54 tools/bluetooth-logger.service
57 systemdsystemunit_DATA += tools/bluetooth-logger.service
61 CLEANFILES += tools/bluetooth-logger.service
62 EXTRA_DIST += tools/bluetooth-logger.service.in
65 noinst_PROGRAMS += emulator/btvirt emulator/b1ee emulator/hfp \
66 peripheral/btsensor tools/3dsp \
67 tools/mgmt-tester tools/gap-tester \
68 tools/l2cap-tester tools/sco-tester \
69 tools/smp-tester tools/hci-tester \
70 tools/rfcomm-tester tools/bnep-tester \
73 emulator_btvirt_SOURCES = emulator/main.c monitor/bt.h \
74 emulator/serial.h emulator/serial.c \
75 emulator/server.h emulator/server.c \
76 emulator/vhci.h emulator/vhci.c \
77 emulator/btdev.h emulator/btdev.c \
78 emulator/bthost.h emulator/bthost.c \
80 emulator/phy.h emulator/phy.c \
81 emulator/amp.h emulator/amp.c \
82 emulator/le.h emulator/le.c
83 emulator_btvirt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
85 emulator_b1ee_SOURCES = emulator/b1ee.c
86 emulator_b1ee_LDADD = src/libshared-mainloop.la
88 emulator_hfp_SOURCES = emulator/hfp.c
89 emulator_hfp_LDADD = src/libshared-mainloop.la
91 peripheral_btsensor_SOURCES = peripheral/main.c \
92 peripheral/efivars.h peripheral/efivars.c \
93 peripheral/attach.h peripheral/attach.c \
94 peripheral/log.h peripheral/log.c \
95 peripheral/gap.h peripheral/gap.c \
96 peripheral/gatt.h peripheral/gatt.c
97 peripheral_btsensor_LDADD = src/libshared-mainloop.la \
98 lib/libbluetooth-internal.la
100 tools_3dsp_SOURCES = tools/3dsp.c monitor/bt.h
101 tools_3dsp_LDADD = src/libshared-mainloop.la
103 tools_mgmt_tester_SOURCES = tools/mgmt-tester.c monitor/bt.h \
104 emulator/hciemu.h emulator/hciemu.c \
105 emulator/btdev.h emulator/btdev.c \
106 emulator/bthost.h emulator/bthost.c \
108 tools_mgmt_tester_LDADD = lib/libbluetooth-internal.la \
109 src/libshared-glib.la $(GLIB_LIBS)
111 tools_l2cap_tester_SOURCES = tools/l2cap-tester.c monitor/bt.h \
112 emulator/hciemu.h emulator/hciemu.c \
113 emulator/btdev.h emulator/btdev.c \
114 emulator/bthost.h emulator/bthost.c \
116 tools_l2cap_tester_LDADD = lib/libbluetooth-internal.la \
117 src/libshared-glib.la $(GLIB_LIBS)
119 tools_rfcomm_tester_SOURCES = tools/rfcomm-tester.c monitor/bt.h \
120 emulator/hciemu.h emulator/hciemu.c \
121 emulator/btdev.h emulator/btdev.c \
122 emulator/bthost.h emulator/bthost.c \
124 tools_rfcomm_tester_LDADD = lib/libbluetooth-internal.la \
125 src/libshared-glib.la $(GLIB_LIBS)
127 tools_bnep_tester_SOURCES = tools/bnep-tester.c monitor/bt.h \
128 emulator/hciemu.h emulator/hciemu.c \
129 emulator/btdev.h emulator/btdev.c \
130 emulator/bthost.h emulator/bthost.c \
132 tools_bnep_tester_LDADD = lib/libbluetooth-internal.la \
133 src/libshared-glib.la $(GLIB_LIBS)
135 tools_smp_tester_SOURCES = tools/smp-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 \
140 tools_smp_tester_LDADD = lib/libbluetooth-internal.la \
141 src/libshared-glib.la $(GLIB_LIBS)
143 tools_gap_tester_SOURCES = tools/gap-tester.c monitor/bt.h \
144 emulator/hciemu.h emulator/hciemu.c \
145 emulator/btdev.h emulator/btdev.c \
146 emulator/bthost.h emulator/bthost.c \
148 tools_gap_tester_LDADD = lib/libbluetooth-internal.la \
149 gdbus/libgdbus-internal.la \
150 src/libshared-glib.la \
151 $(GLIB_LIBS) $(DBUS_LIBS)
153 tools_sco_tester_SOURCES = tools/sco-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 \
158 tools_sco_tester_LDADD = lib/libbluetooth-internal.la \
159 src/libshared-glib.la $(GLIB_LIBS)
161 tools_hci_tester_SOURCES = tools/hci-tester.c monitor/bt.h
162 tools_hci_tester_LDADD = src/libshared-glib.la $(GLIB_LIBS)
164 tools_userchan_tester_SOURCES = tools/userchan-tester.c monitor/bt.h \
165 emulator/hciemu.h emulator/hciemu.c \
166 emulator/btdev.h emulator/btdev.c \
167 emulator/bthost.h emulator/bthost.c \
169 tools_userchan_tester_LDADD = lib/libbluetooth-internal.la \
170 src/libshared-glib.la $(GLIB_LIBS)
174 bin_PROGRAMS += tools/hciattach tools/hciconfig tools/hcitool tools/hcidump \
175 tools/rfcomm tools/rctest tools/l2test tools/l2ping \
176 tools/sdptool tools/ciptool tools/bccmd \
177 tools/bluemoon tools/hex2hcd tools/mpris-proxy
179 tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
180 tools/hciattach_st.c \
181 tools/hciattach_ti.c \
182 tools/hciattach_tialt.c \
183 tools/hciattach_ath3k.c \
184 tools/hciattach_qualcomm.c \
185 tools/hciattach_intel.c \
186 tools/hciattach_sprd.c \
188 tools/hciattach_bcm43xx.c
189 tools_hciattach_LDADD = lib/libbluetooth-internal.la @LIBXML_LIBS@ @INIPARSER_LIBS@
191 tools_hciconfig_SOURCES = tools/hciconfig.c tools/csr.h tools/csr.c
192 tools_hciconfig_LDADD = lib/libbluetooth-internal.la
194 tools_hcitool_SOURCES = tools/hcitool.c src/oui.h src/oui.c
195 tools_hcitool_LDADD = lib/libbluetooth-internal.la $(UDEV_LIBS)
197 tools_hcidump_SOURCES = tools/hcidump.c \
198 tools/parser/parser.h tools/parser/parser.c \
201 tools/parser/l2cap.h tools/parser/l2cap.c \
205 tools/parser/sdp.h tools/parser/sdp.c \
206 tools/parser/rfcomm.h tools/parser/rfcomm.c \
207 tools/parser/bnep.c \
208 tools/parser/cmtp.c \
209 tools/parser/hidp.c \
210 tools/parser/hcrp.c \
211 tools/parser/avdtp.c \
212 tools/parser/avctp.c \
213 tools/parser/avrcp.c \
215 tools/parser/obex.c \
216 tools/parser/capi.c \
218 tools/parser/tcpip.c \
219 tools/parser/ericsson.c \
222 tools_hcidump_LDADD = lib/libbluetooth-internal.la
224 tools_rfcomm_LDADD = lib/libbluetooth-internal.la
226 tools_rctest_LDADD = lib/libbluetooth-internal.la
228 tools_l2test_LDADD = lib/libbluetooth-internal.la
230 tools_l2ping_LDADD = lib/libbluetooth-internal.la
232 tools_sdptool_SOURCES = tools/sdptool.c src/sdp-xml.h src/sdp-xml.c
233 tools_sdptool_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
235 tools_ciptool_LDADD = lib/libbluetooth-internal.la
237 tools_bccmd_SOURCES = tools/bccmd.c tools/csr.h tools/csr.c \
238 tools/csr_hci.c tools/csr_usb.c \
239 tools/csr_h4.c tools/csr_3wire.c \
240 tools/csr_bcsp.c tools/ubcsp.h tools/ubcsp.c
241 tools_bccmd_LDADD = lib/libbluetooth-internal.la
243 tools_bluemoon_SOURCES = tools/bluemoon.c monitor/bt.h
244 tools_bluemoon_LDADD = src/libshared-mainloop.la
246 tools_hex2hcd_SOURCES = tools/hex2hcd.c
248 tools_mpris_proxy_SOURCES = tools/mpris-proxy.c
249 tools_mpris_proxy_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS)
251 dist_man_MANS += tools/hciattach.1 tools/hciconfig.1 \
252 tools/hcitool.1 tools/hcidump.1 \
253 tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
254 tools/sdptool.1 tools/ciptool.1 tools/bccmd.1
256 EXTRA_DIST += tools/hciattach.1 tools/hciconfig.1 \
257 tools/hcitool.1 tools/hcidump.1 \
258 tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
259 tools/sdptool.1 tools/ciptool.1 tools/bccmd.1
263 udevdir = $(UDEV_DIR)
265 udev_PROGRAMS = tools/hid2hci
267 tools_hid2hci_LDADD = $(UDEV_LIBS)
269 dist_man_MANS += tools/hid2hci.1
271 EXTRA_DIST += tools/hid2hci.1
275 bin_PROGRAMS += tools/meshctl
277 tools_meshctl_SOURCES = tools/meshctl.c \
278 tools/mesh/config-model.h\
279 tools/mesh-gatt/mesh-net.h \
280 tools/mesh-gatt/node.h tools/mesh-gatt/node.c \
281 tools/mesh-gatt/gatt.h tools/mesh-gatt/gatt.c \
282 tools/mesh-gatt/crypto.h\
283 tools/mesh-gatt/crypto.c \
284 tools/mesh-gatt/keys.h \
285 tools/mesh-gatt/net.h tools/mesh-gatt/net.c \
286 tools/mesh-gatt/prov.h tools/mesh-gatt/prov.c \
287 tools/mesh-gatt/util.h tools/mesh-gatt/util.c \
288 tools/mesh-gatt/agent.h tools/mesh-gatt/agent.c \
289 tools/mesh-gatt/prov-db.h \
290 tools/mesh-gatt/prov-db.c \
291 tools/mesh-gatt/config-client.c \
292 tools/mesh-gatt/config-server.c \
293 tools/mesh-gatt/onoff-model.h \
294 tools/mesh-gatt/onoff-model.c
295 tools_meshctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
296 lib/libbluetooth-internal.la \
297 $(GLIB_LIBS) $(DBUS_LIBS) -ljson-c -lreadline
300 bin_PROGRAMS += tools/mesh-cfgclient
302 tools_mesh_cfgclient_SOURCES = tools/mesh-cfgclient.c \
303 tools/mesh/model.h tools/mesh/config-model.h \
304 tools/mesh/cfgcli.h tools/mesh/cfgcli.c \
305 tools/mesh/keys.h tools/mesh/keys.c \
306 tools/mesh/util.h tools/mesh/util.c \
307 tools/mesh/remote.h tools/mesh/remote.c \
308 tools/mesh/agent.h tools/mesh/agent.c \
309 tools/mesh/mesh-db.h tools/mesh/mesh-db.c \
310 mesh/util.h mesh/util.c \
311 mesh/mesh-config.h mesh/mesh-config-json.c \
312 mesh/crypto.h mesh/crypto.c
314 tools_mesh_cfgclient_LDADD = lib/libbluetooth-internal.la src/libshared-ell.la src/libshared-glib.la \
315 @GLIB_LIBS@ @DBUS_LIBS@ $(ell_ldadd) -ljson-c -lreadline
319 EXTRA_DIST += tools/mesh-gatt/local_node.json tools/mesh-gatt/prov_db.json
322 bin_PROGRAMS += tools/btattach
323 bin_PROGRAMS += tools/btsnoop
325 noinst_PROGRAMS += tools/bdaddr tools/avinfo tools/avtest \
326 tools/scotest tools/amptest tools/hwdb \
327 tools/hcieventmask tools/hcisecfilter \
330 tools/btiotest tools/bneptest tools/mcaptest \
331 tools/cltest tools/oobtest tools/seq2bseq \
332 tools/nokfw tools/bcmfw tools/create-image \
333 tools/eddystone tools/ibeacon \
334 tools/btgatt-client tools/btgatt-server \
335 tools/test-runner tools/check-selftest
337 tools_bdaddr_SOURCES = tools/bdaddr.c src/oui.h src/oui.c
338 tools_bdaddr_LDADD = lib/libbluetooth-internal.la @UDEV_LIBS@
340 tools_avinfo_LDADD = lib/libbluetooth-internal.la
342 tools_avtest_LDADD = lib/libbluetooth-internal.la
344 tools_scotest_LDADD = lib/libbluetooth-internal.la
346 tools_amptest_LDADD = lib/libbluetooth-internal.la
348 tools_hwdb_LDADD = lib/libbluetooth-internal.la
350 tools_hcieventmask_LDADD = lib/libbluetooth-internal.la
352 tools_btinfo_SOURCES = tools/btinfo.c monitor/bt.h
353 tools_btinfo_LDADD = src/libshared-mainloop.la
355 tools_btattach_SOURCES = tools/btattach.c monitor/bt.h
356 tools_btattach_LDADD = src/libshared-mainloop.la
358 tools_btsnoop_SOURCES = tools/btsnoop.c
359 tools_btsnoop_LDADD = src/libshared-mainloop.la
361 tools_btproxy_SOURCES = tools/btproxy.c monitor/bt.h
362 tools_btproxy_LDADD = src/libshared-mainloop.la
364 tools_btiotest_SOURCES = tools/btiotest.c btio/btio.h btio/btio.c
365 tools_btiotest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
367 tools_mcaptest_SOURCES = tools/mcaptest.c \
368 btio/btio.h btio/btio.c \
369 src/log.c src/log.h \
370 profiles/health/mcap.h profiles/health/mcap.c
371 tools_mcaptest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS) \
372 src/libshared-mainloop.la -lrt
374 tools_bneptest_SOURCES = tools/bneptest.c \
375 btio/btio.h btio/btio.c \
376 src/log.h src/log.c \
377 profiles/network/bnep.h profiles/network/bnep.c
378 tools_bneptest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS) \
379 src/libshared-mainloop.la
381 tools_cltest_SOURCES = tools/cltest.c
382 tools_cltest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
384 tools_oobtest_SOURCES = tools/oobtest.c
385 tools_oobtest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
387 tools_seq2bseq_SOURCES = tools/seq2bseq.c
389 tools_nokfw_SOURCES = tools/nokfw.c
391 tools_create_image_SOURCES = tools/create-image.c
393 tools_eddystone_SOURCES = tools/eddystone.c monitor/bt.h
394 tools_eddystone_LDADD = src/libshared-mainloop.la
396 tools_ibeacon_SOURCES = tools/ibeacon.c monitor/bt.h
397 tools_ibeacon_LDADD = src/libshared-mainloop.la
399 tools_btgatt_client_SOURCES = tools/btgatt-client.c src/uuid-helper.c
400 tools_btgatt_client_LDADD = src/libshared-mainloop.la \
401 lib/libbluetooth-internal.la
403 tools_btgatt_server_SOURCES = tools/btgatt-server.c src/uuid-helper.c
404 tools_btgatt_server_LDADD = src/libshared-mainloop.la \
405 lib/libbluetooth-internal.la
407 dist_man_MANS += tools/btattach.1
409 EXTRA_DIST += tools/bdaddr.1
411 EXTRA_DIST += tools/btattach.1
415 noinst_PROGRAMS += attrib/gatttool tools/btmgmt \
416 tools/obex-client-tool tools/obex-server-tool \
417 tools/bluetooth-player tools/obexctl
419 attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
420 attrib/gattrib.c btio/btio.c \
421 attrib/gatttool.h attrib/interactive.c \
422 attrib/utils.c src/log.c client/display.c \
424 attrib_gatttool_LDADD = lib/libbluetooth-internal.la \
425 src/libshared-glib.la $(GLIB_LIBS) -lreadline
427 tools_obex_client_tool_SOURCES = $(gobex_sources) $(btio_sources) \
428 tools/obex-client-tool.c
429 tools_obex_client_tool_LDADD = lib/libbluetooth-internal.la \
430 $(GLIB_LIBS) -lreadline
432 tools_obex_server_tool_SOURCES = $(gobex_sources) $(btio_sources) \
433 tools/obex-server-tool.c
434 tools_obex_server_tool_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
436 tools_bluetooth_player_SOURCES = tools/bluetooth-player.c \
437 client/display.h client/display.c
438 tools_bluetooth_player_LDADD = gdbus/libgdbus-internal.la \
439 src/libshared-glib.la \
440 $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
442 tools_obexctl_SOURCES = tools/obexctl.c \
443 client/display.h client/display.c
444 tools_obexctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
445 $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
447 tools_btmgmt_SOURCES = tools/btmgmt.c src/uuid-helper.c client/display.c
448 tools_btmgmt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la \
453 noinst_PROGRAMS += tools/gatt-service
455 tools_gatt_service_SOURCES = tools/gatt-service.c
456 tools_gatt_service_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) gdbus/libgdbus-internal.la
458 noinst_PROGRAMS += profiles/iap/iapd
460 profiles_iap_iapd_SOURCES = profiles/iap/main.c
461 profiles_iap_iapd_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS)
465 cupsdir = $(libdir)/cups/backend
467 cups_PROGRAMS = profiles/cups/bluetooth
469 profiles_cups_bluetooth_SOURCES = profiles/cups/main.c \
470 profiles/cups/cups.h \
471 profiles/cups/sdp.c \
472 profiles/cups/spp.c \
475 profiles_cups_bluetooth_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) \
476 lib/libbluetooth-internal.la \
477 gdbus/libgdbus-internal.la
480 test_scripts += test/sap_client.py test/bluezutils.py \
481 test/dbusdef.py test/monitor-bluetooth test/list-devices \
482 test/test-discovery test/test-manager test/test-adapter \
483 test/test-device test/simple-agent \
484 test/simple-endpoint test/test-sap-server \
485 test/test-proximity test/test-network \
486 test/test-thermometer test/test-profile test/test-health \
487 test/test-health-sink test/service-record.dtd \
488 test/service-did.xml test/service-spp.xml test/service-opp.xml \
489 test/service-ftp.xml test/simple-player test/test-nap \
490 test/test-heartrate test/test-alert test/test-hfp \
491 test/test-cyclingspeed test/opp-client test/ftp-client \
492 test/pbap-client test/map-client test/example-advertisement \
493 test/example-gatt-server test/example-gatt-client \
494 test/test-gatt-profile test/test-mesh test/agent.py