Modified supported feature for Target role in AVRCP profile
[framework/connectivity/bluez.git] / Makefile.tools
1
2 if TOOLS
3 if DATAFILES
4 conf_DATA += tools/rfcomm.conf
5 endif
6
7 bin_PROGRAMS += tools/rfcomm tools/l2ping \
8                                 tools/hcitool tools/sdptool tools/ciptool
9
10 sbin_PROGRAMS += tools/hciattach tools/hciconfig
11
12 noinst_PROGRAMS += tools/avinfo tools/ppporc \
13                                 tools/hcieventmask tools/hcisecfilter
14
15 tools/kword.c: tools/parser.h
16
17 tools_rfcomm_SOURCES = tools/rfcomm.c tools/parser.y tools/lexer.l \
18                                         tools/kword.h tools/kword.c
19 EXTRA_tools_rfcomm_SOURCES = tools/parser.h tools/parser.c \
20                                                         tools/lexer.c
21 tools_rfcomm_LDADD = lib/libbluetooth-private.la
22
23 tools_l2ping_LDADD = lib/libbluetooth-private.la
24
25 tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
26                                                 tools/hciattach_st.c \
27                                                 tools/hciattach_ti.c \
28                                                 tools/hciattach_tialt.c \
29                                                 tools/hciattach_ath3k.c \
30                                                 tools/hciattach_qualcomm.c \
31                                                 tools/hciattach_intel.c
32 tools_hciattach_LDADD = lib/libbluetooth-private.la
33
34 tools_hciconfig_SOURCES = tools/hciconfig.c tools/csr.h tools/csr.c \
35                                                 src/textfile.h src/textfile.c
36 tools_hciconfig_LDADD = lib/libbluetooth-private.la
37
38 tools_hcitool_SOURCES = tools/hcitool.c src/oui.h src/oui.c \
39                                                 src/textfile.h src/textfile.c
40 tools_hcitool_LDADD = lib/libbluetooth-private.la
41
42 tools_sdptool_SOURCES = tools/sdptool.c src/sdp-xml.h src/sdp-xml.c
43 tools_sdptool_LDADD = lib/libbluetooth-private.la
44
45 tools_ciptool_LDADD = lib/libbluetooth-private.la
46
47 tools_avinfo_LDADD = lib/libbluetooth-private.la
48
49 tools_ppporc_LDADD = lib/libbluetooth-private.la
50
51 tools_hcieventmask_LDADD = lib/libbluetooth-private.la
52
53 noinst_PROGRAMS += mgmt/btmgmt monitor/btmon emulator/btvirt
54
55 mgmt_btmgmt_SOURCES = mgmt/main.c src/glib-helper.c
56 mgmt_btmgmt_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@
57
58 monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \
59                                         monitor/mainloop.h monitor/mainloop.c \
60                                         monitor/hcidump.h monitor/hcidump.c \
61                                         monitor/btsnoop.h monitor/btsnoop.c \
62                                         monitor/control.h monitor/control.c \
63                                         monitor/packet.h monitor/packet.c
64 monitor_btmon_LDADD = lib/libbluetooth-private.la
65
66 emulator_btvirt_SOURCES = emulator/main.c monitor/bt.h \
67                                         monitor/mainloop.h monitor/mainloop.c \
68                                         emulator/server.h emulator/server.c \
69                                         emulator/vhci.h emulator/vhci.c \
70                                         emulator/btdev.h emulator/btdev.c
71
72 if READLINE
73 bin_PROGRAMS += attrib/gatttool
74
75 attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
76                                 attrib/gattrib.c btio/btio.c \
77                                 attrib/gatttool.h attrib/interactive.c \
78                                 attrib/utils.c src/log.c
79 attrib_gatttool_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@ @READLINE_LIBS@
80 endif
81
82 dist_man_MANS += tools/rfcomm.1 tools/l2ping.8 \
83                         tools/hciattach.8 tools/hciconfig.8 \
84                         tools/hcitool.1 tools/sdptool.1 tools/ciptool.1
85 else
86 EXTRA_DIST += tools/rfcomm.1 tools/l2ping.8 \
87                         tools/hciattach.8 tools/hciconfig.8 \
88                         tools/hcitool.1 tools/sdptool.1 tools/ciptool.1
89 endif
90
91 CLEANFILES += tools/lexer.c tools/parser.c tools/parser.h
92
93 EXTRA_DIST += tools/rfcomm.conf
94
95 if BCCMD
96 sbin_PROGRAMS += tools/bccmd
97
98 tools_bccmd_SOURCES = tools/bccmd.c tools/csr.h tools/csr.c \
99                         tools/csr_hci.c tools/csr_h4.c tools/csr_3wire.c \
100                         tools/csr_bcsp.c tools/ubcsp.h tools/ubcsp.c
101 tools_bccmd_LDADD = lib/libbluetooth-private.la
102
103 if USB
104 tools_bccmd_SOURCES += tools/csr_usb.c
105 tools_bccmd_LDADD += @USB_LIBS@
106 endif
107
108 dist_man_MANS += tools/bccmd.8
109 else
110 EXTRA_DIST += tools/bccmd.8
111 endif
112
113 if HID2HCI
114 udevdir = @UDEV_DIR@
115
116 udev_PROGRAMS = tools/hid2hci
117
118 tools_hid2hci_LDADD = @USB_LIBS@ @UDEV_LIBS@
119
120 dist_man_MANS += tools/hid2hci.8
121 else
122 EXTRA_DIST += tools/hid2hci.8
123 endif
124
125 if DFUTOOL
126 bin_PROGRAMS += tools/dfutool
127
128 tools_dfutool_SOURCES = tools/dfutool.c tools/dfu.h tools/dfu.c
129 tools_dfutool_LDADD = @USB_LIBS@
130
131 dist_man_MANS += tools/dfutool.1
132 else
133 EXTRA_DIST += tools/dfutool.1
134 endif
135
136
137 if USB
138 noinst_PROGRAMS += tools/dfubabel tools/avctrl
139
140 tools_dfubabel_LDADD = @USB_LIBS@
141
142 tools_avctrl_LDADD = @USB_LIBS@
143 endif
144
145 EXTRA_DIST += tools/dfubabel.1 tools/avctrl.8
146
147
148 if CUPS
149 cupsdir = $(libdir)/cups/backend
150
151 cups_PROGRAMS = cups/bluetooth
152
153 cups_bluetooth_SOURCES = $(gdbus_sources) cups/main.c cups/cups.h \
154                                         cups/sdp.c cups/spp.c cups/hcrp.c
155
156 cups_bluetooth_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ lib/libbluetooth-private.la
157 endif
158
159
160 if TEST
161 sbin_PROGRAMS += test/hciemu
162
163 bin_PROGRAMS += test/l2test test/rctest
164
165 noinst_PROGRAMS += test/gaptest test/sdptest test/scotest \
166                         test/attest test/hstest test/avtest test/ipctest \
167                                         test/lmptest test/bdaddr test/agent \
168                                         test/btiotest test/test-textfile \
169                                         test/uuidtest test/mpris-player
170
171 test_hciemu_LDADD = lib/libbluetooth-private.la
172
173 test_l2test_LDADD = lib/libbluetooth-private.la
174
175 test_rctest_LDADD = lib/libbluetooth-private.la
176
177 test_gaptest_LDADD = @DBUS_LIBS@
178
179 test_sdptest_LDADD = lib/libbluetooth-private.la
180
181 test_scotest_LDADD = lib/libbluetooth-private.la
182
183 test_attest_LDADD = lib/libbluetooth-private.la
184
185 test_hstest_LDADD = lib/libbluetooth-private.la
186
187 test_avtest_LDADD = lib/libbluetooth-private.la
188
189 test_lmptest_LDADD = lib/libbluetooth-private.la
190
191 test_ipctest_SOURCES = test/ipctest.c audio/ipc.h audio/ipc.c
192 test_ipctest_LDADD= @GLIB_LIBS@ sbc/libsbc.la
193
194 test_bdaddr_SOURCES = test/bdaddr.c src/oui.h src/oui.c
195 test_bdaddr_LDADD = lib/libbluetooth-private.la
196
197 test_agent_LDADD = @DBUS_LIBS@
198
199 test_btiotest_SOURCES = test/btiotest.c btio/btio.h btio/btio.c
200 test_btiotest_LDADD = @GLIB_LIBS@ lib/libbluetooth-private.la
201
202 test_uuidtest_SOURCES = test/uuidtest.c
203 test_uuidtest_LDADD = lib/libbluetooth-private.la
204
205 test_mpris_player_SOURCES = test/mpris-player.c
206 test_mpris_player_LDADD = @DBUS_LIBS@ @GLIB_LIBS@
207
208 test_test_textfile_SOURCES = test/test-textfile.c src/textfile.h src/textfile.c
209
210 dist_man_MANS += test/rctest.1 test/hciemu.1
211
212 EXTRA_DIST += test/bdaddr.8
213 else
214 EXTRA_DIST += test/rctest.1 test/hciemu.1 test/bdaddr.8
215 endif
216
217 EXTRA_DIST += test/sap-client test/hsplay test/hsmicro \
218                 test/dbusdef.py test/monitor-bluetooth test/list-devices \
219                 test/test-discovery test/test-manager test/test-adapter \
220                 test/test-device test/test-service test/test-serial \
221                 test/test-telephony test/test-network test/simple-agent \
222                 test/simple-service test/simple-endpoint test/test-audio \
223                 test/test-input test/test-sap-server test/test-oob \
224                 test/test-attrib test/test-proximity test/test-thermometer \
225                 test/test-serial-proxy test/test-health test/test-health-sink \
226                 test/service-record.dtd test/service-did.xml \
227                 test/service-spp.xml test/service-opp.xml test/service-ftp.xml \
228                 test/simple-player test/test-nap
229
230 if HIDD
231 bin_PROGRAMS += compat/hidd
232
233 compat_hidd_SOURCES = compat/hidd.c compat/hidd.h src/uinput.h \
234                                 compat/sdp.h compat/sdp.c compat/fakehid.c \
235                                                 src/textfile.h src/textfile.c
236 compat_hidd_LDADD = -lm lib/libbluetooth-private.la
237
238 dist_man_MANS += compat/hidd.1
239 else
240 EXTRA_DIST += compat/hidd.1
241 endif
242
243 if PAND
244 bin_PROGRAMS += compat/pand
245
246 compat_pand_SOURCES = compat/pand.c compat/pand.h \
247                                 compat/bnep.c compat/sdp.h compat/sdp.c \
248                                                 src/textfile.h src/textfile.c
249 compat_pand_LDADD = lib/libbluetooth-private.la
250
251 dist_man_MANS += compat/pand.1
252 else
253 EXTRA_DIST += compat/pand.1
254 endif
255
256 if DUND
257 bin_PROGRAMS += compat/dund
258
259 compat_dund_SOURCES = compat/dund.c compat/dund.h compat/lib.h \
260                         compat/sdp.h compat/sdp.c compat/dun.c compat/msdun.c \
261                                                 src/textfile.h src/textfile.c
262 compat_dund_LDADD = lib/libbluetooth-private.la
263
264 dist_man_MANS += compat/dund.1
265 else
266 EXTRA_DIST += compat/dund.1
267 endif