~ubuntu-branches/ubuntu/wily/bluez/wily

« back to all changes in this revision

Viewing changes to Makefile.tools

ImportĀ upstreamĀ versionĀ 4.81

Show diffs side-by-side

added added

removed removed

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