1 # SPDX-License-Identifier: GPL-2.0
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/adv_monitor.h \
11 client/adv_monitor.c \
12 client/gatt.h client/gatt.c \
15 monitor/uuid.h monitor/uuid.c
16 client_bluetoothctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
17 $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
21 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/uuid.h monitor/uuid.c \
41 monitor/hwdb.h monitor/hwdb.c \
42 monitor/keys.h monitor/keys.c \
43 monitor/analyze.h monitor/analyze.c \
44 monitor/intel.h monitor/intel.c \
45 monitor/broadcom.h monitor/broadcom.c \
46 monitor/msft.h monitor/msft.c \
47 monitor/jlink.h monitor/jlink.c \
49 monitor_btmon_LDADD = lib/libbluetooth-internal.la \
50 src/libshared-mainloop.la $(UDEV_LIBS) -ldl
52 man_MANS += monitor/btmon.1
55 manual_pages += monitor/btmon.1
58 libexec_PROGRAMS += tools/btmon-logger
60 tools_btmon_logger_SOURCES = tools/btmon-logger.c
61 tools_btmon_logger_LDADD = src/libshared-mainloop.la
62 tools_btmon_logger_DEPENDENCIES = src/libshared-mainloop.la \
63 tools/bluetooth-logger.service
66 systemdsystemunit_DATA += tools/bluetooth-logger.service
70 CLEANFILES += tools/bluetooth-logger.service
71 EXTRA_DIST += tools/bluetooth-logger.service.in
74 noinst_PROGRAMS += emulator/btvirt emulator/b1ee emulator/hfp \
75 peripheral/btsensor tools/3dsp \
76 tools/mgmt-tester tools/gap-tester \
77 tools/l2cap-tester tools/sco-tester \
78 tools/smp-tester tools/hci-tester \
79 tools/rfcomm-tester tools/bnep-tester \
82 emulator_btvirt_SOURCES = emulator/main.c monitor/bt.h \
83 emulator/serial.h emulator/serial.c \
84 emulator/server.h emulator/server.c \
85 emulator/vhci.h emulator/vhci.c \
86 emulator/btdev.h emulator/btdev.c \
87 emulator/bthost.h emulator/bthost.c \
89 emulator/phy.h emulator/phy.c \
90 emulator/amp.h emulator/amp.c \
91 emulator/le.h emulator/le.c
92 emulator_btvirt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
94 emulator_b1ee_SOURCES = emulator/b1ee.c
95 emulator_b1ee_LDADD = src/libshared-mainloop.la
97 emulator_hfp_SOURCES = emulator/hfp.c
98 emulator_hfp_LDADD = src/libshared-mainloop.la
100 peripheral_btsensor_SOURCES = peripheral/main.c \
101 peripheral/efivars.h peripheral/efivars.c \
102 peripheral/attach.h peripheral/attach.c \
103 peripheral/log.h peripheral/log.c \
104 peripheral/gap.h peripheral/gap.c \
105 peripheral/gatt.h peripheral/gatt.c
106 peripheral_btsensor_LDADD = src/libshared-mainloop.la \
107 lib/libbluetooth-internal.la
109 tools_3dsp_SOURCES = tools/3dsp.c monitor/bt.h
110 tools_3dsp_LDADD = src/libshared-mainloop.la
112 tools_mgmt_tester_SOURCES = tools/mgmt-tester.c monitor/bt.h \
113 emulator/hciemu.h emulator/hciemu.c \
114 emulator/vhci.h emulator/vhci.c \
115 emulator/btdev.h emulator/btdev.c \
116 emulator/bthost.h emulator/bthost.c \
118 tools_mgmt_tester_LDADD = lib/libbluetooth-internal.la \
119 src/libshared-glib.la $(GLIB_LIBS)
121 tools_l2cap_tester_SOURCES = tools/l2cap-tester.c monitor/bt.h \
122 emulator/hciemu.h emulator/hciemu.c \
123 emulator/vhci.h emulator/vhci.c \
124 emulator/btdev.h emulator/btdev.c \
125 emulator/bthost.h emulator/bthost.c \
127 tools_l2cap_tester_LDADD = lib/libbluetooth-internal.la \
128 src/libshared-glib.la $(GLIB_LIBS)
130 tools_rfcomm_tester_SOURCES = tools/rfcomm-tester.c monitor/bt.h \
131 emulator/hciemu.h emulator/hciemu.c \
132 emulator/vhci.h emulator/vhci.c \
133 emulator/btdev.h emulator/btdev.c \
134 emulator/bthost.h emulator/bthost.c \
136 tools_rfcomm_tester_LDADD = lib/libbluetooth-internal.la \
137 src/libshared-glib.la $(GLIB_LIBS)
139 tools_bnep_tester_SOURCES = tools/bnep-tester.c monitor/bt.h \
140 emulator/hciemu.h emulator/hciemu.c \
141 emulator/vhci.h emulator/vhci.c \
142 emulator/btdev.h emulator/btdev.c \
143 emulator/bthost.h emulator/bthost.c \
145 tools_bnep_tester_LDADD = lib/libbluetooth-internal.la \
146 src/libshared-glib.la $(GLIB_LIBS)
148 tools_smp_tester_SOURCES = tools/smp-tester.c monitor/bt.h \
149 emulator/hciemu.h emulator/hciemu.c \
150 emulator/vhci.h emulator/vhci.c \
151 emulator/btdev.h emulator/btdev.c \
152 emulator/bthost.h emulator/bthost.c \
154 tools_smp_tester_LDADD = lib/libbluetooth-internal.la \
155 src/libshared-glib.la $(GLIB_LIBS)
157 tools_gap_tester_SOURCES = tools/gap-tester.c monitor/bt.h \
158 emulator/hciemu.h emulator/hciemu.c \
159 emulator/vhci.h emulator/vhci.c \
160 emulator/btdev.h emulator/btdev.c \
161 emulator/bthost.h emulator/bthost.c \
163 tools_gap_tester_LDADD = lib/libbluetooth-internal.la \
164 gdbus/libgdbus-internal.la \
165 src/libshared-glib.la \
166 $(GLIB_LIBS) $(DBUS_LIBS)
168 tools_sco_tester_SOURCES = tools/sco-tester.c monitor/bt.h \
169 emulator/hciemu.h emulator/hciemu.c \
170 emulator/vhci.h emulator/vhci.c \
171 emulator/btdev.h emulator/btdev.c \
172 emulator/bthost.h emulator/bthost.c \
174 tools_sco_tester_LDADD = lib/libbluetooth-internal.la \
175 src/libshared-glib.la $(GLIB_LIBS)
177 tools_hci_tester_SOURCES = tools/hci-tester.c monitor/bt.h
178 tools_hci_tester_LDADD = src/libshared-glib.la $(GLIB_LIBS)
180 tools_userchan_tester_SOURCES = tools/userchan-tester.c monitor/bt.h \
181 emulator/hciemu.h emulator/hciemu.c \
182 emulator/vhci.h emulator/vhci.c \
183 emulator/btdev.h emulator/btdev.c \
184 emulator/bthost.h emulator/bthost.c \
186 tools_userchan_tester_LDADD = lib/libbluetooth-internal.la \
187 src/libshared-glib.la $(GLIB_LIBS)
191 bin_PROGRAMS += tools/hciattach tools/hciconfig tools/hcitool tools/hcidump \
192 tools/rfcomm tools/rctest tools/l2test tools/l2ping \
193 tools/sdptool tools/ciptool \
194 tools/bluemoon tools/hex2hcd tools/mpris-proxy
196 tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
197 tools/hciattach_st.c \
198 tools/hciattach_ti.c \
199 tools/hciattach_tialt.c \
200 tools/hciattach_ath3k.c \
201 tools/hciattach_qualcomm.c \
202 tools/hciattach_intel.c \
203 tools/hciattach_sprd.c \
205 tools/hciattach_bcm43xx.c
206 tools_hciattach_LDADD = lib/libbluetooth-internal.la @LIBXML_LIBS@ @INIPARSER_LIBS@
208 tools_hciconfig_SOURCES = tools/hciconfig.c
209 tools_hciconfig_LDADD = lib/libbluetooth-internal.la
211 tools_hcitool_SOURCES = tools/hcitool.c src/oui.h src/oui.c
212 tools_hcitool_LDADD = lib/libbluetooth-internal.la $(UDEV_LIBS)
214 tools_hcidump_SOURCES = tools/hcidump.c \
215 tools/parser/parser.h tools/parser/parser.c \
218 tools/parser/l2cap.h tools/parser/l2cap.c \
222 tools/parser/sdp.h tools/parser/sdp.c \
223 tools/parser/rfcomm.h tools/parser/rfcomm.c \
224 tools/parser/bnep.c \
225 tools/parser/cmtp.c \
226 tools/parser/hidp.c \
227 tools/parser/hcrp.c \
228 tools/parser/avdtp.c \
229 tools/parser/avctp.c \
230 tools/parser/avrcp.c \
232 tools/parser/obex.c \
233 tools/parser/capi.c \
235 tools/parser/tcpip.c \
236 tools/parser/ericsson.c \
239 tools_hcidump_LDADD = lib/libbluetooth-internal.la
241 tools_rfcomm_LDADD = lib/libbluetooth-internal.la
243 tools_rctest_LDADD = lib/libbluetooth-internal.la
245 tools_l2test_LDADD = lib/libbluetooth-internal.la
247 tools_l2ping_LDADD = lib/libbluetooth-internal.la
249 tools_sdptool_SOURCES = tools/sdptool.c src/sdp-xml.h src/sdp-xml.c
250 tools_sdptool_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
252 tools_ciptool_LDADD = lib/libbluetooth-internal.la
254 tools_bluemoon_SOURCES = tools/bluemoon.c monitor/bt.h
255 tools_bluemoon_LDADD = src/libshared-mainloop.la
257 tools_hex2hcd_SOURCES = tools/hex2hcd.c
259 tools_mpris_proxy_SOURCES = tools/mpris-proxy.c
260 tools_mpris_proxy_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS)
263 man_MANS += tools/hciattach.1 tools/hciconfig.1 \
264 tools/hcitool.1 tools/hcidump.1 \
265 tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
266 tools/sdptool.1 tools/ciptool.1
269 manual_pages += tools/hciattach.1 tools/hciconfig.1 \
270 tools/hcitool.1 tools/hcidump.1 \
271 tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
272 tools/sdptool.1 tools/ciptool.1
275 udevdir = $(UDEV_DIR)
277 udev_PROGRAMS = tools/hid2hci
279 tools_hid2hci_LDADD = $(UDEV_LIBS)
282 man_MANS += tools/hid2hci.1
285 manual_pages += tools/hid2hci.1
288 bin_PROGRAMS += tools/meshctl
290 tools_meshctl_SOURCES = tools/meshctl.c \
291 tools/mesh/config-model.h\
292 tools/mesh-gatt/mesh-net.h \
293 tools/mesh-gatt/node.h tools/mesh-gatt/node.c \
294 tools/mesh-gatt/gatt.h tools/mesh-gatt/gatt.c \
295 tools/mesh-gatt/crypto.h\
296 tools/mesh-gatt/crypto.c \
297 tools/mesh-gatt/keys.h \
298 tools/mesh-gatt/net.h tools/mesh-gatt/net.c \
299 tools/mesh-gatt/prov.h tools/mesh-gatt/prov.c \
300 tools/mesh-gatt/util.h tools/mesh-gatt/util.c \
301 tools/mesh-gatt/agent.h tools/mesh-gatt/agent.c \
302 tools/mesh-gatt/prov-db.h \
303 tools/mesh-gatt/prov-db.c \
304 tools/mesh-gatt/config-client.c \
305 tools/mesh-gatt/config-server.c \
306 tools/mesh-gatt/onoff-model.h \
307 tools/mesh-gatt/onoff-model.c
308 tools_meshctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
309 lib/libbluetooth-internal.la \
310 $(GLIB_LIBS) $(DBUS_LIBS) -ljson-c -lreadline
313 bin_PROGRAMS += tools/mesh-cfgclient
315 tools_mesh_cfgclient_SOURCES = tools/mesh-cfgclient.c \
316 tools/mesh/model.h tools/mesh/config-model.h \
317 tools/mesh/cfgcli.h tools/mesh/cfgcli.c \
318 tools/mesh/keys.h tools/mesh/keys.c \
319 tools/mesh/util.h tools/mesh/util.c \
320 tools/mesh/remote.h tools/mesh/remote.c \
321 tools/mesh/agent.h tools/mesh/agent.c \
322 tools/mesh/mesh-db.h tools/mesh/mesh-db.c \
323 mesh/util.h mesh/util.c \
324 mesh/crypto.h mesh/crypto.c
326 tools_mesh_cfgclient_LDADD = lib/libbluetooth-internal.la src/libshared-ell.la src/libshared-glib.la \
327 @GLIB_LIBS@ @DBUS_LIBS@ $(ell_ldadd) -ljson-c -lreadline
331 EXTRA_DIST += tools/mesh-gatt/local_node.json tools/mesh-gatt/prov_db.json
334 bin_PROGRAMS += tools/btattach
335 bin_PROGRAMS += tools/btsnoop
336 bin_PROGRAMS += tools/avtest
338 noinst_PROGRAMS += tools/bdaddr tools/avinfo \
339 tools/scotest tools/amptest tools/hwdb \
340 tools/hcieventmask tools/hcisecfilter \
343 tools/btiotest tools/bneptest tools/mcaptest \
344 tools/cltest tools/oobtest tools/seq2bseq \
345 tools/nokfw tools/bcmfw tools/create-image \
346 tools/eddystone tools/ibeacon \
347 tools/btgatt-client tools/btgatt-server \
348 tools/test-runner tools/check-selftest
350 tools_bdaddr_SOURCES = tools/bdaddr.c src/oui.h src/oui.c
351 tools_bdaddr_LDADD = lib/libbluetooth-internal.la @UDEV_LIBS@
353 tools_avinfo_LDADD = lib/libbluetooth-internal.la
355 tools_avtest_LDADD = lib/libbluetooth-internal.la
357 tools_scotest_LDADD = lib/libbluetooth-internal.la
359 tools_amptest_LDADD = lib/libbluetooth-internal.la
361 tools_hwdb_LDADD = lib/libbluetooth-internal.la
363 tools_hcieventmask_LDADD = lib/libbluetooth-internal.la
365 tools_btinfo_SOURCES = tools/btinfo.c monitor/bt.h
366 tools_btinfo_LDADD = src/libshared-mainloop.la
368 tools_btattach_SOURCES = tools/btattach.c monitor/bt.h
369 tools_btattach_LDADD = src/libshared-mainloop.la
371 tools_btsnoop_SOURCES = tools/btsnoop.c
372 tools_btsnoop_LDADD = src/libshared-mainloop.la
374 tools_btproxy_SOURCES = tools/btproxy.c monitor/bt.h
375 tools_btproxy_LDADD = src/libshared-mainloop.la
377 tools_btiotest_SOURCES = tools/btiotest.c btio/btio.h btio/btio.c
378 tools_btiotest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
380 tools_mcaptest_SOURCES = tools/mcaptest.c \
381 btio/btio.h btio/btio.c \
382 src/log.c src/bluez-log.c src/log.h \
383 profiles/health/mcap.h profiles/health/mcap.c
384 tools_mcaptest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS) @LIBXML_LIBS@ \
385 src/libshared-mainloop.la -lrt
387 tools_bneptest_SOURCES = tools/bneptest.c \
388 btio/btio.h btio/btio.c \
389 src/log.h src/log.c src/bluez-log.c \
390 profiles/network/bnep.h profiles/network/bnep.c
391 tools_bneptest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS) @LIBXML_LIBS@ \
392 src/libshared-mainloop.la
394 tools_cltest_SOURCES = tools/cltest.c
395 tools_cltest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
397 tools_oobtest_SOURCES = tools/oobtest.c
398 tools_oobtest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
400 tools_seq2bseq_SOURCES = tools/seq2bseq.c
402 tools_nokfw_SOURCES = tools/nokfw.c
404 tools_create_image_SOURCES = tools/create-image.c
406 tools_eddystone_SOURCES = tools/eddystone.c monitor/bt.h
407 tools_eddystone_LDADD = src/libshared-mainloop.la
409 tools_ibeacon_SOURCES = tools/ibeacon.c monitor/bt.h
410 tools_ibeacon_LDADD = src/libshared-mainloop.la
412 tools_btgatt_client_SOURCES = tools/btgatt-client.c src/uuid-helper.c
413 tools_btgatt_client_LDADD = src/libshared-mainloop.la \
414 lib/libbluetooth-internal.la
416 tools_btgatt_server_SOURCES = tools/btgatt-server.c src/uuid-helper.c
417 tools_btgatt_server_LDADD = src/libshared-mainloop.la \
418 lib/libbluetooth-internal.la
421 man_MANS += tools/btattach.1
424 EXTRA_DIST += tools/btattach.1 tools/bdaddr.1
427 noinst_PROGRAMS += attrib/gatttool tools/btmgmt \
428 tools/obex-client-tool tools/obex-server-tool \
429 tools/bluetooth-player tools/obexctl
431 attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
432 attrib/gattrib.c btio/btio.c \
433 attrib/gatttool.h attrib/interactive.c \
434 attrib/utils.c src/log.c src/bluez-log.c client/display.c \
436 attrib_gatttool_LDADD = lib/libbluetooth-internal.la \
437 src/libshared-glib.la $(GLIB_LIBS) -lreadline @LIBXML_LIBS@
439 tools_obex_client_tool_SOURCES = $(gobex_sources) $(btio_sources) \
440 tools/obex-client-tool.c
441 tools_obex_client_tool_LDADD = lib/libbluetooth-internal.la \
442 $(GLIB_LIBS) -lreadline
444 tools_obex_server_tool_SOURCES = $(gobex_sources) $(btio_sources) \
445 tools/obex-server-tool.c
446 tools_obex_server_tool_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
448 tools_bluetooth_player_SOURCES = tools/bluetooth-player.c \
449 client/display.h client/display.c
450 tools_bluetooth_player_LDADD = gdbus/libgdbus-internal.la \
451 src/libshared-glib.la \
452 $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
454 tools_obexctl_SOURCES = tools/obexctl.c \
455 client/display.h client/display.c
456 tools_obexctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
457 $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
459 tools_btmgmt_SOURCES = tools/btmgmt.c src/uuid-helper.c client/display.c
460 tools_btmgmt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la \
465 noinst_PROGRAMS += tools/gatt-service
467 tools_gatt_service_SOURCES = tools/gatt-service.c
468 tools_gatt_service_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) gdbus/libgdbus-internal.la
470 noinst_PROGRAMS += profiles/iap/iapd
472 profiles_iap_iapd_SOURCES = profiles/iap/main.c
473 profiles_iap_iapd_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS)
477 cupsdir = $(libdir)/cups/backend
479 cups_PROGRAMS = profiles/cups/bluetooth
481 profiles_cups_bluetooth_SOURCES = profiles/cups/main.c \
482 profiles/cups/cups.h \
483 profiles/cups/sdp.c \
484 profiles/cups/spp.c \
487 profiles_cups_bluetooth_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) \
488 lib/libbluetooth-internal.la \
489 gdbus/libgdbus-internal.la
492 test_scripts += test/sap_client.py test/bluezutils.py \
493 test/dbusdef.py test/monitor-bluetooth test/list-devices \
494 test/test-discovery test/test-manager test/test-adapter \
495 test/test-device test/simple-agent \
496 test/simple-endpoint test/test-sap-server \
497 test/test-proximity test/test-network \
498 test/test-thermometer test/test-profile test/test-health \
499 test/test-health-sink test/service-record.dtd \
500 test/service-did.xml test/service-spp.xml test/service-opp.xml \
501 test/service-ftp.xml test/simple-player test/test-nap \
502 test/test-heartrate test/test-alert test/test-hfp \
503 test/test-cyclingspeed test/opp-client test/ftp-client \
504 test/pbap-client test/map-client test/example-advertisement \
505 test/example-gatt-server test/example-gatt-client \
506 test/test-gatt-profile test/test-mesh test/agent.py