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