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