adapter: Fix issue where adv stop request disables unintended instance
[platform/upstream/bluez.git] / Makefile.tools
1 # SPDX-License-Identifier: GPL-2.0
2 if CLIENT
3 bin_PROGRAMS += client/bluetoothctl
4
5 client_bluetoothctl_SOURCES = client/main.c \
6                                         client/print.h client/print.c \
7                                         client/display.h client/display.c \
8                                         client/agent.h client/agent.c \
9                                         client/advertising.h \
10                                         client/advertising.c \
11                                         client/adv_monitor.h \
12                                         client/adv_monitor.c \
13                                         client/gatt.h client/gatt.c \
14                                         client/admin.h client/admin.c \
15                                         client/player.h client/player.c \
16                                         client/mgmt.h client/mgmt.c
17                                         monitor/uuid.h monitor/uuid.c
18 client_bluetoothctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
19                                 lib/libbluetooth-internal.la \
20                                 $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
21
22 endif
23
24 if MONITOR
25 bin_PROGRAMS += monitor/btmon
26
27 monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \
28                                 monitor/display.h monitor/display.c \
29                                 monitor/hcidump.h monitor/hcidump.c \
30                                 monitor/ellisys.h monitor/ellisys.c \
31                                 monitor/control.h monitor/control.c \
32                                 monitor/packet.h monitor/packet.c \
33                                 monitor/vendor.h monitor/vendor.c \
34                                 monitor/lmp.h monitor/lmp.c \
35                                 monitor/crc.h monitor/crc.c \
36                                 monitor/ll.h monitor/ll.c \
37                                 monitor/l2cap.h monitor/l2cap.c \
38                                 monitor/sdp.h monitor/sdp.c \
39                                 monitor/avctp.h monitor/avctp.c \
40                                 monitor/avdtp.h monitor/avdtp.c \
41                                 monitor/a2dp.h monitor/a2dp.c \
42                                 monitor/rfcomm.h monitor/rfcomm.c \
43                                 monitor/bnep.h monitor/bnep.c \
44                                 monitor/uuid.h monitor/uuid.c \
45                                 monitor/hwdb.h monitor/hwdb.c \
46                                 monitor/keys.h monitor/keys.c \
47                                 monitor/analyze.h monitor/analyze.c \
48                                 monitor/intel.h monitor/intel.c \
49                                 monitor/broadcom.h monitor/broadcom.c \
50                                 monitor/msft.h monitor/msft.c \
51                                 monitor/jlink.h monitor/jlink.c \
52                                 monitor/tty.h monitor/emulator.h \
53                                 monitor/att.h monitor/att.c \
54                                 src/log.h src/bluez-log.c src/log.c \
55                                 src/textfile.h src/textfile.c \
56                                 src/settings.h src/settings.c
57 monitor_btmon_LDADD = lib/libbluetooth-internal.la \
58                                 src/libshared-mainloop.la \
59                                 $(GLIB_LIBS) $(UDEV_LIBS) -ldl @LIBXML_LIBS@
60 if MANPAGES
61 man_MANS += monitor/btmon.1
62 endif
63 endif
64 manual_pages += monitor/btmon.1
65
66 if LOGGER
67 libexec_PROGRAMS += tools/btmon-logger
68
69 tools_btmon_logger_SOURCES = tools/btmon-logger.c
70 tools_btmon_logger_LDADD = src/libshared-mainloop.la
71 tools_btmon_logger_DEPENDENCIES = src/libshared-mainloop.la \
72                                         tools/bluetooth-logger.service
73
74 if SYSTEMD
75 systemdsystemunit_DATA += tools/bluetooth-logger.service
76 endif
77 endif
78
79 CLEANFILES += tools/bluetooth-logger.service
80 EXTRA_DIST += tools/bluetooth-logger.service.in
81
82 if TESTING
83 noinst_PROGRAMS += emulator/btvirt emulator/b1ee emulator/hfp \
84                                         peripheral/btsensor tools/3dsp \
85                                         tools/mgmt-tester tools/gap-tester \
86                                         tools/l2cap-tester tools/sco-tester \
87                                         tools/smp-tester tools/hci-tester \
88                                         tools/rfcomm-tester tools/bnep-tester \
89                                         tools/userchan-tester tools/iso-tester \
90                                         tools/mesh-tester tools/ioctl-tester
91
92 emulator_btvirt_SOURCES = emulator/main.c monitor/bt.h \
93                                 emulator/serial.h emulator/serial.c \
94                                 emulator/server.h emulator/server.c \
95                                 emulator/vhci.h emulator/vhci.c \
96                                 emulator/btdev.h emulator/btdev.c \
97                                 emulator/bthost.h emulator/bthost.c \
98                                 emulator/smp.c \
99                                 emulator/phy.h emulator/phy.c \
100                                 emulator/amp.h emulator/amp.c \
101                                 emulator/le.h emulator/le.c
102 emulator_btvirt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
103
104 emulator_b1ee_SOURCES = emulator/b1ee.c
105 emulator_b1ee_LDADD = src/libshared-mainloop.la
106
107 emulator_hfp_SOURCES = emulator/hfp.c
108 emulator_hfp_LDADD = src/libshared-mainloop.la
109
110 peripheral_btsensor_SOURCES = peripheral/main.c \
111                                 peripheral/efivars.h peripheral/efivars.c \
112                                 peripheral/attach.h peripheral/attach.c \
113                                 peripheral/log.h peripheral/log.c \
114                                 peripheral/gap.h peripheral/gap.c \
115                                 peripheral/gatt.h peripheral/gatt.c
116 peripheral_btsensor_LDADD = src/libshared-mainloop.la \
117                                 lib/libbluetooth-internal.la
118
119 tools_3dsp_SOURCES = tools/3dsp.c monitor/bt.h
120 tools_3dsp_LDADD = src/libshared-mainloop.la
121
122 tools_mgmt_tester_SOURCES = tools/mgmt-tester.c monitor/bt.h \
123                                 emulator/hciemu.h emulator/hciemu.c \
124                                 emulator/vhci.h emulator/vhci.c \
125                                 emulator/btdev.h emulator/btdev.c \
126                                 emulator/bthost.h emulator/bthost.c \
127                                 emulator/smp.c
128 tools_mgmt_tester_LDADD = lib/libbluetooth-internal.la \
129                                 src/libshared-glib.la $(GLIB_LIBS)
130
131 tools_mesh_tester_SOURCES = tools/mesh-tester.c monitor/bt.h \
132                                 emulator/hciemu.h emulator/hciemu.c \
133                                 emulator/vhci.h emulator/vhci.c \
134                                 emulator/btdev.h emulator/btdev.c \
135                                 emulator/bthost.h emulator/bthost.c \
136                                 emulator/smp.c
137 tools_mesh_tester_LDADD = lib/libbluetooth-internal.la \
138                                 src/libshared-glib.la $(GLIB_LIBS)
139
140 tools_l2cap_tester_SOURCES = tools/l2cap-tester.c monitor/bt.h \
141                                 emulator/hciemu.h emulator/hciemu.c \
142                                 emulator/vhci.h emulator/vhci.c \
143                                 emulator/btdev.h emulator/btdev.c \
144                                 emulator/bthost.h emulator/bthost.c \
145                                 emulator/smp.c
146 tools_l2cap_tester_LDADD = lib/libbluetooth-internal.la \
147                                 src/libshared-glib.la $(GLIB_LIBS)
148
149 tools_rfcomm_tester_SOURCES = tools/rfcomm-tester.c monitor/bt.h \
150                                 emulator/hciemu.h emulator/hciemu.c \
151                                 emulator/vhci.h emulator/vhci.c \
152                                 emulator/btdev.h emulator/btdev.c \
153                                 emulator/bthost.h emulator/bthost.c \
154                                 emulator/smp.c
155 tools_rfcomm_tester_LDADD = lib/libbluetooth-internal.la \
156                                 src/libshared-glib.la $(GLIB_LIBS)
157
158 tools_bnep_tester_SOURCES = tools/bnep-tester.c monitor/bt.h \
159                                 emulator/hciemu.h emulator/hciemu.c \
160                                 emulator/vhci.h emulator/vhci.c \
161                                 emulator/btdev.h emulator/btdev.c \
162                                 emulator/bthost.h emulator/bthost.c \
163                                 emulator/smp.c
164 tools_bnep_tester_LDADD = lib/libbluetooth-internal.la \
165                                 src/libshared-glib.la $(GLIB_LIBS)
166
167 tools_smp_tester_SOURCES = tools/smp-tester.c monitor/bt.h \
168                                 emulator/hciemu.h emulator/hciemu.c \
169                                 emulator/vhci.h emulator/vhci.c \
170                                 emulator/btdev.h emulator/btdev.c \
171                                 emulator/bthost.h emulator/bthost.c \
172                                 emulator/smp.c
173 tools_smp_tester_LDADD = lib/libbluetooth-internal.la \
174                                 src/libshared-glib.la $(GLIB_LIBS)
175
176 tools_gap_tester_SOURCES = tools/gap-tester.c monitor/bt.h \
177                                 emulator/hciemu.h emulator/hciemu.c \
178                                 emulator/vhci.h emulator/vhci.c \
179                                 emulator/btdev.h emulator/btdev.c \
180                                 emulator/bthost.h emulator/bthost.c \
181                                 emulator/smp.c
182 tools_gap_tester_LDADD =  lib/libbluetooth-internal.la \
183                                 gdbus/libgdbus-internal.la \
184                                 src/libshared-glib.la \
185                                 $(GLIB_LIBS) $(DBUS_LIBS)
186
187 tools_sco_tester_SOURCES = tools/sco-tester.c monitor/bt.h \
188                                 emulator/hciemu.h emulator/hciemu.c \
189                                 emulator/vhci.h emulator/vhci.c \
190                                 emulator/btdev.h emulator/btdev.c \
191                                 emulator/bthost.h emulator/bthost.c \
192                                 emulator/smp.c
193 tools_sco_tester_LDADD = lib/libbluetooth-internal.la \
194                                 src/libshared-glib.la $(GLIB_LIBS)
195
196 tools_hci_tester_SOURCES = tools/hci-tester.c monitor/bt.h
197 tools_hci_tester_LDADD = src/libshared-glib.la $(GLIB_LIBS)
198
199 tools_userchan_tester_SOURCES = tools/userchan-tester.c monitor/bt.h \
200                                 emulator/hciemu.h emulator/hciemu.c \
201                                 emulator/vhci.h emulator/vhci.c \
202                                 emulator/btdev.h emulator/btdev.c \
203                                 emulator/bthost.h emulator/bthost.c \
204                                 emulator/smp.c
205 tools_userchan_tester_LDADD = lib/libbluetooth-internal.la \
206                                 src/libshared-glib.la $(GLIB_LIBS)
207
208 tools_iso_tester_SOURCES = tools/iso-tester.c monitor/bt.h \
209                                 emulator/hciemu.h emulator/hciemu.c \
210                                 emulator/vhci.h emulator/vhci.c \
211                                 emulator/btdev.h emulator/btdev.c \
212                                 emulator/bthost.h emulator/bthost.c \
213                                 emulator/smp.c
214 tools_iso_tester_LDADD = lib/libbluetooth-internal.la \
215                                 src/libshared-glib.la $(GLIB_LIBS)
216
217 tools_ioctl_tester_SOURCES = tools/ioctl-tester.c monitor/bt.h \
218                                 emulator/hciemu.h emulator/hciemu.c \
219                                 emulator/vhci.h emulator/vhci.c \
220                                 emulator/btdev.h emulator/btdev.c \
221                                 emulator/bthost.h emulator/bthost.c \
222                                 emulator/smp.c
223 tools_ioctl_tester_LDADD = lib/libbluetooth-internal.la \
224                                 src/libshared-glib.la $(GLIB_LIBS)
225 endif
226
227 if TOOLS
228 bin_PROGRAMS += tools/hciattach tools/hciconfig tools/hcitool tools/hcidump \
229                         tools/rfcomm tools/rctest tools/l2test tools/l2ping \
230                         tools/sdptool tools/ciptool \
231                         tools/bluemoon tools/hex2hcd tools/mpris-proxy tools/isotest
232
233 tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
234                                                 tools/hciattach_st.c \
235                                                 tools/hciattach_ti.c \
236                                                 tools/hciattach_tialt.c \
237                                                 tools/hciattach_ath3k.c \
238                                                 tools/hciattach_qualcomm.c \
239                                                 tools/hciattach_intel.c \
240                                                 tools/hciattach_sprd.c \
241                                                 tools/pskey_get.c \
242                                                 tools/hciattach_bcm43xx.c
243 tools_hciattach_LDADD = lib/libbluetooth-internal.la @LIBXML_LIBS@ @INIPARSER_LIBS@
244
245 tools_hciconfig_SOURCES = tools/hciconfig.c
246 tools_hciconfig_LDADD = lib/libbluetooth-internal.la
247
248 tools_hcitool_SOURCES = tools/hcitool.c src/oui.h src/oui.c
249 tools_hcitool_LDADD = lib/libbluetooth-internal.la $(UDEV_LIBS)
250
251 tools_hcidump_SOURCES = tools/hcidump.c \
252                                 tools/parser/parser.h tools/parser/parser.c \
253                                 tools/parser/lmp.c \
254                                 tools/parser/hci.c \
255                                 tools/parser/l2cap.h tools/parser/l2cap.c \
256                                 tools/parser/amp.c \
257                                 tools/parser/smp.c \
258                                 tools/parser/att.c \
259                                 tools/parser/sdp.h tools/parser/sdp.c \
260                                 tools/parser/rfcomm.h tools/parser/rfcomm.c \
261                                 tools/parser/bnep.c \
262                                 tools/parser/cmtp.c \
263                                 tools/parser/hidp.c \
264                                 tools/parser/hcrp.c \
265                                 tools/parser/avdtp.c \
266                                 tools/parser/avctp.c \
267                                 tools/parser/avrcp.c \
268                                 tools/parser/sap.c \
269                                 tools/parser/obex.c \
270                                 tools/parser/capi.c \
271                                 tools/parser/ppp.c \
272                                 tools/parser/tcpip.c \
273                                 tools/parser/ericsson.c \
274                                 tools/parser/csr.c \
275                                 tools/parser/bpa.c
276 tools_hcidump_LDADD = lib/libbluetooth-internal.la
277
278 tools_rfcomm_LDADD = lib/libbluetooth-internal.la
279
280 tools_rctest_LDADD = lib/libbluetooth-internal.la
281
282 tools_l2test_LDADD = lib/libbluetooth-internal.la
283
284 tools_l2ping_LDADD = lib/libbluetooth-internal.la
285
286 tools_sdptool_SOURCES = tools/sdptool.c src/sdp-xml.h src/sdp-xml.c
287 tools_sdptool_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
288
289 tools_ciptool_LDADD = lib/libbluetooth-internal.la
290
291 tools_bluemoon_SOURCES = tools/bluemoon.c monitor/bt.h
292 tools_bluemoon_LDADD = src/libshared-mainloop.la
293
294 tools_hex2hcd_SOURCES = tools/hex2hcd.c
295
296 tools_mpris_proxy_SOURCES = tools/mpris-proxy.c
297 tools_mpris_proxy_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS)
298
299 if MANPAGES
300 man_MANS += tools/hciattach.1 tools/hciconfig.1 \
301                         tools/btmgmt.1 tools/btattach.1 \
302                         client/bluetoothctl-mgmt.1 client/bluetoothctl-monitor.1 \
303                         tools/hcitool.1 tools/hcidump.1 \
304                         tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
305                         tools/sdptool.1 tools/ciptool.1
306 endif
307 endif
308 manual_pages += tools/hciattach.1 tools/hciconfig.1 \
309                         tools/hcitool.1 tools/hcidump.1 \
310                         tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
311                         tools/sdptool.1 tools/ciptool.1 \
312                         tools/bdaddr.1 tools/isotest.1 tools/btmgmt.1 \
313                         client/bluetoothctl-mgmt.1 client/bluetoothctl-monitor.1 
314
315 if HID2HCI
316 udevdir = $(UDEV_DIR)
317
318 udev_PROGRAMS = tools/hid2hci
319
320 tools_hid2hci_LDADD = $(UDEV_LIBS)
321
322 if MANPAGES
323 man_MANS += tools/hid2hci.1
324 endif
325 endif
326 manual_pages += tools/hid2hci.1
327
328 if MESH
329 bin_PROGRAMS += tools/meshctl
330
331 tools_meshctl_SOURCES = tools/meshctl.c \
332                                tools/mesh/config-model.h\
333                                tools/mesh-gatt/mesh-net.h \
334                                tools/mesh-gatt/node.h tools/mesh-gatt/node.c \
335                                tools/mesh-gatt/gatt.h tools/mesh-gatt/gatt.c \
336                                tools/mesh-gatt/crypto.h\
337                                tools/mesh-gatt/crypto.c \
338                                tools/mesh-gatt/keys.h \
339                                tools/mesh-gatt/net.h tools/mesh-gatt/net.c \
340                                tools/mesh-gatt/prov.h tools/mesh-gatt/prov.c \
341                                tools/mesh-gatt/util.h tools/mesh-gatt/util.c \
342                                tools/mesh-gatt/agent.h tools/mesh-gatt/agent.c \
343                                tools/mesh-gatt/prov-db.h \
344                                tools/mesh-gatt/prov-db.c \
345                                tools/mesh-gatt/config-client.c \
346                                tools/mesh-gatt/config-server.c \
347                                tools/mesh-gatt/onoff-model.h \
348                                tools/mesh-gatt/onoff-model.c
349 tools_meshctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
350                                lib/libbluetooth-internal.la \
351                                $(GLIB_LIBS) $(DBUS_LIBS) -ljson-c -lreadline
352
353
354 bin_PROGRAMS +=  tools/mesh-cfgclient
355
356 tools_mesh_cfgclient_SOURCES = tools/mesh-cfgclient.c \
357                                tools/mesh/model.h tools/mesh/config-model.h \
358                                tools/mesh/cfgcli.h tools/mesh/cfgcli.c \
359                                tools/mesh/keys.h tools/mesh/keys.c \
360                                tools/mesh/util.h tools/mesh/util.c \
361                                tools/mesh/remote.h tools/mesh/remote.c \
362                                tools/mesh/agent.h tools/mesh/agent.c \
363                                tools/mesh/mesh-db.h tools/mesh/mesh-db.c \
364                                mesh/util.h mesh/util.c \
365                                 mesh/crypto.h mesh/crypto.c
366
367 tools_mesh_cfgclient_LDADD = lib/libbluetooth-internal.la src/libshared-ell.la  src/libshared-glib.la \
368                                                 @GLIB_LIBS@ @DBUS_LIBS@ $(ell_ldadd) -ljson-c -lreadline
369  
370 endif
371
372 EXTRA_DIST += tools/mesh-gatt/local_node.json tools/mesh-gatt/prov_db.json
373
374 if EXPERIMENTAL
375 bin_PROGRAMS += tools/btattach
376 bin_PROGRAMS += tools/btsnoop
377 bin_PROGRAMS += tools/avtest
378
379 noinst_PROGRAMS += tools/bdaddr tools/avinfo \
380                         tools/scotest tools/amptest tools/hwdb \
381                         tools/hcieventmask tools/hcisecfilter \
382                         tools/btinfo \
383                         tools/btproxy \
384                         tools/btiotest tools/bneptest tools/mcaptest \
385                         tools/cltest tools/oobtest tools/seq2bseq \
386                         tools/nokfw tools/bcmfw tools/create-image \
387                         tools/eddystone tools/ibeacon \
388                         tools/btgatt-client tools/btgatt-server \
389                         tools/test-runner tools/check-selftest
390
391 tools_bdaddr_SOURCES = tools/bdaddr.c src/oui.h src/oui.c
392 tools_bdaddr_LDADD = lib/libbluetooth-internal.la @UDEV_LIBS@
393
394 tools_avinfo_LDADD = lib/libbluetooth-internal.la
395
396 tools_avtest_LDADD = lib/libbluetooth-internal.la
397
398 tools_scotest_LDADD = lib/libbluetooth-internal.la
399
400 tools_amptest_LDADD = lib/libbluetooth-internal.la
401
402 tools_hwdb_LDADD = lib/libbluetooth-internal.la
403
404 tools_hcieventmask_LDADD = lib/libbluetooth-internal.la
405
406 tools_btinfo_SOURCES = tools/btinfo.c monitor/bt.h
407 tools_btinfo_LDADD = src/libshared-mainloop.la
408
409 tools_btattach_SOURCES = tools/btattach.c monitor/bt.h
410 tools_btattach_LDADD = src/libshared-mainloop.la
411
412 tools_btsnoop_SOURCES = tools/btsnoop.c
413 tools_btsnoop_LDADD = src/libshared-mainloop.la
414
415 tools_btproxy_SOURCES = tools/btproxy.c monitor/bt.h
416 tools_btproxy_LDADD = src/libshared-mainloop.la
417
418 tools_btiotest_SOURCES = tools/btiotest.c btio/btio.h btio/btio.c
419 tools_btiotest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
420
421 tools_mcaptest_SOURCES = tools/mcaptest.c \
422                                 btio/btio.h btio/btio.c \
423                                 src/log.c src/bluez-log.c src/log.h \
424                                 profiles/health/mcap.h profiles/health/mcap.c
425 tools_mcaptest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS) @LIBXML_LIBS@ \
426                                 src/libshared-mainloop.la -lrt
427
428 tools_bneptest_SOURCES = tools/bneptest.c \
429                                 btio/btio.h btio/btio.c \
430                                 src/log.h src/log.c src/bluez-log.c \
431                                 profiles/network/bnep.h profiles/network/bnep.c
432 tools_bneptest_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS) @LIBXML_LIBS@ \
433                                 src/libshared-mainloop.la
434
435 tools_cltest_SOURCES = tools/cltest.c
436 tools_cltest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
437
438 tools_oobtest_SOURCES = tools/oobtest.c
439 tools_oobtest_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la
440
441 tools_seq2bseq_SOURCES = tools/seq2bseq.c
442
443 tools_nokfw_SOURCES = tools/nokfw.c
444
445 tools_create_image_SOURCES = tools/create-image.c
446
447 tools_eddystone_SOURCES = tools/eddystone.c monitor/bt.h
448 tools_eddystone_LDADD = src/libshared-mainloop.la
449
450 tools_ibeacon_SOURCES = tools/ibeacon.c monitor/bt.h
451 tools_ibeacon_LDADD = src/libshared-mainloop.la
452
453 tools_btgatt_client_SOURCES = tools/btgatt-client.c src/uuid-helper.c
454 tools_btgatt_client_LDADD = src/libshared-mainloop.la \
455                                                 lib/libbluetooth-internal.la
456
457 tools_btgatt_server_SOURCES = tools/btgatt-server.c src/uuid-helper.c
458 tools_btgatt_server_LDADD = src/libshared-mainloop.la \
459                                                 lib/libbluetooth-internal.la
460
461 if MANPAGES
462 man_MANS += tools/btattach.1 tools/isotest.1
463 endif
464 endif
465 EXTRA_DIST += tools/btattach.1 tools/bdaddr.1
466
467 if READLINE
468 noinst_PROGRAMS += attrib/gatttool tools/btmgmt \
469                         tools/obex-client-tool tools/obex-server-tool \
470                         tools/bluetooth-player tools/obexctl
471
472 attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
473                                 attrib/gattrib.c btio/btio.c \
474                                 attrib/gatttool.h attrib/interactive.c \
475                                 attrib/utils.c src/log.c src/bluez-log.c client/display.c \
476                                 client/display.h
477 attrib_gatttool_LDADD = lib/libbluetooth-internal.la \
478                         src/libshared-glib.la $(GLIB_LIBS) -lreadline @LIBXML_LIBS@
479
480 tools_obex_client_tool_SOURCES = $(gobex_sources) $(btio_sources) \
481                                                 tools/obex-client-tool.c
482 tools_obex_client_tool_LDADD = lib/libbluetooth-internal.la \
483                                                 $(GLIB_LIBS) -lreadline
484
485 tools_obex_server_tool_SOURCES = $(gobex_sources) $(btio_sources) \
486                                                 tools/obex-server-tool.c
487 tools_obex_server_tool_LDADD = lib/libbluetooth-internal.la $(GLIB_LIBS)
488
489 tools_bluetooth_player_SOURCES = tools/bluetooth-player.c client/print.c \
490                                 client/player.c
491                                 client/display.h client/display.c
492 tools_bluetooth_player_LDADD = gdbus/libgdbus-internal.la \
493                                 src/libshared-glib.la \
494                                 $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
495
496 tools_obexctl_SOURCES = tools/obexctl.c \
497                                 client/display.h client/display.c
498 tools_obexctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
499                         $(GLIB_LIBS) $(DBUS_LIBS) -lreadline
500
501 tools_btmgmt_SOURCES = tools/btmgmt.c src/uuid-helper.c client/display.c \
502                         client/mgmt.c
503 tools_btmgmt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la \
504                                 -lreadline
505 endif
506
507 if EXPERIMENTAL
508 noinst_PROGRAMS += tools/gatt-service
509
510 tools_gatt_service_SOURCES = tools/gatt-service.c
511 tools_gatt_service_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) gdbus/libgdbus-internal.la
512
513 tools_isotest_LDADD = lib/libbluetooth-internal.la
514
515 noinst_PROGRAMS += profiles/iap/iapd
516
517 profiles_iap_iapd_SOURCES = profiles/iap/main.c
518 profiles_iap_iapd_LDADD = gdbus/libgdbus-internal.la $(GLIB_LIBS) $(DBUS_LIBS)
519 endif
520
521 if CUPS
522 cupsdir = $(libdir)/cups/backend
523
524 cups_PROGRAMS = profiles/cups/bluetooth
525
526 profiles_cups_bluetooth_SOURCES = profiles/cups/main.c \
527                                         profiles/cups/cups.h \
528                                         profiles/cups/sdp.c \
529                                         profiles/cups/spp.c \
530                                         profiles/cups/hcrp.c
531
532 profiles_cups_bluetooth_LDADD = $(GLIB_LIBS) $(DBUS_LIBS) \
533                                 lib/libbluetooth-internal.la \
534                                 gdbus/libgdbus-internal.la
535 endif
536
537 test_scripts += test/sap_client.py test/bluezutils.py \
538                 test/dbusdef.py test/monitor-bluetooth test/list-devices \
539                 test/test-discovery test/test-manager test/test-adapter \
540                 test/test-device test/simple-agent \
541                 test/simple-endpoint test/test-sap-server \
542                 test/test-proximity test/test-network \
543                 test/test-thermometer test/test-profile test/test-health \
544                 test/test-health-sink test/service-record.dtd \
545                 test/service-did.xml test/service-spp.xml test/service-opp.xml \
546                 test/service-ftp.xml test/simple-player test/test-nap \
547                 test/test-heartrate test/test-alert test/test-hfp \
548                 test/test-cyclingspeed test/opp-client test/ftp-client \
549                 test/pbap-client test/map-client test/example-advertisement \
550                 test/example-gatt-server test/example-gatt-client \
551                 test/test-gatt-profile test/test-mesh test/agent.py