OSDN Git Service

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