OSDN Git Service

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