summaryrefslogtreecommitdiff
path: root/Makefile.tools
blob: 991bdf8a4c7cb95c6d98d2f21cd022e5ed6a458f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177

if CLIENT
bin_PROGRAMS += client/bluetoothctl

client_bluetoothctl_SOURCES = $(gdbus_sources) \
					client/main.c client/display.h \
					client/agent.h client/agent.c
client_bluetoothctl_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ -lreadline
endif

if MONITOR
bin_PROGRAMS += monitor/btmon

monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \
					monitor/mainloop.h monitor/mainloop.c \
					monitor/display.h monitor/display.c \
					monitor/hcidump.h monitor/hcidump.c \
					monitor/btsnoop.h monitor/btsnoop.c \
					monitor/control.h monitor/control.c \
					monitor/packet.h monitor/packet.c \
					monitor/l2cap.h monitor/l2cap.c \
					monitor/uuid.h monitor/uuid.c \
					monitor/sdp.h monitor/sdp.c
monitor_btmon_LDADD = lib/libbluetooth-private.la
endif

if EXPERIMENTAL
noinst_PROGRAMS += emulator/btvirt emulator/b1ee

emulator_btvirt_SOURCES = emulator/main.c monitor/bt.h \
					monitor/mainloop.h monitor/mainloop.c \
					emulator/server.h emulator/server.c \
					emulator/vhci.h emulator/vhci.c \
					emulator/btdev.h emulator/btdev.c

emulator_b1ee_SOURCES = emulator/b1ee.c monitor/mainloop.h monitor/mainloop.c
endif

if TOOLS
bin_PROGRAMS += tools/hciattach tools/hciconfig tools/hcitool \
			tools/rfcomm tools/rctest tools/l2test tools/l2ping \
			tools/sdptool tools/ciptool tools/bccmd

tools_hciattach_SOURCES = tools/hciattach.c tools/hciattach.h \
						tools/hciattach_st.c \
						tools/hciattach_ti.c \
						tools/hciattach_tialt.c \
						tools/hciattach_ath3k.c \
						tools/hciattach_qualcomm.c \
						tools/hciattach_intel.c
tools_hciattach_LDADD = lib/libbluetooth-private.la

tools_hciconfig_SOURCES = tools/hciconfig.c tools/csr.h tools/csr.c
tools_hciconfig_LDADD = lib/libbluetooth-private.la

tools_hcitool_SOURCES = tools/hcitool.c src/oui.h src/oui.c
tools_hcitool_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@ @UDEV_LIBS@

tools_rfcomm_LDADD = lib/libbluetooth-private.la

tools_rctest_LDADD = lib/libbluetooth-private.la

tools_l2test_LDADD = lib/libbluetooth-private.la

tools_l2ping_LDADD = lib/libbluetooth-private.la

tools_sdptool_SOURCES = tools/sdptool.c src/sdp-xml.h src/sdp-xml.c
tools_sdptool_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@

tools_ciptool_LDADD = lib/libbluetooth-private.la

tools_bccmd_SOURCES = tools/bccmd.c tools/csr.h tools/csr.c \
			tools/csr_hci.c tools/csr_h4.c tools/csr_3wire.c \
			tools/csr_bcsp.c tools/ubcsp.h tools/ubcsp.c
tools_bccmd_LDADD = lib/libbluetooth-private.la

if USB
tools_bccmd_SOURCES += tools/csr_usb.c
tools_bccmd_LDADD += @USB_LIBS@
endif

dist_man_MANS += tools/hciattach.1 tools/hciconfig.1 tools/hcitool.1 \
			tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
			tools/sdptool.1 tools/ciptool.1 tools/bccmd.1
else
EXTRA_DIST += tools/hciattach.1 tools/hciconfig.1 tools/hcitool.1 \
			tools/rfcomm.1 tools/rctest.1 tools/l2ping.1 \
			tools/sdptool.1 tools/ciptool.1 tools/bccmd.1
endif

if HID2HCI
udevdir = @UDEV_DIR@

udev_PROGRAMS = tools/hid2hci

tools_hid2hci_LDADD = @USB_LIBS@ @UDEV_LIBS@

dist_man_MANS += tools/hid2hci.1
else
EXTRA_DIST += tools/hid2hci.1
endif

if EXPERIMENTAL
noinst_PROGRAMS += tools/bdaddr tools/avinfo tools/avtest tools/scotest \
			tools/hcieventmask tools/hcisecfilter \
			tools/btmgmt tools/btattach tools/btsnoop \
			tools/btiotest tools/mpris-player

tools_bdaddr_SOURCES = tools/bdaddr.c src/oui.h src/oui.c
tools_bdaddr_LDADD = lib/libbluetooth-private.la @UDEV_LIBS@

tools_avinfo_LDADD = lib/libbluetooth-private.la

tools_avtest_LDADD = lib/libbluetooth-private.la

tools_scotest_LDADD = lib/libbluetooth-private.la

tools_hcieventmask_LDADD = lib/libbluetooth-private.la

tools_btmgmt_SOURCES = tools/btmgmt.c src/glib-helper.c src/eir.c
tools_btmgmt_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@

tools_btiotest_SOURCES = tools/btiotest.c btio/btio.h btio/btio.c
tools_btiotest_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@

tools_mpris_player_LDADD = @GLIB_LIBS@ @DBUS_LIBS@

EXTRA_DIST += tools/bdaddr.1
endif

if READLINE
noinst_PROGRAMS += attrib/gatttool \
			tools/obex-client-tool tools/obex-server-tool

attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
				attrib/gattrib.c btio/btio.c \
				attrib/gatttool.h attrib/interactive.c \
				attrib/utils.c src/log.c
attrib_gatttool_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@ -lreadline

tools_obex_client_tool_SOURCES = $(gobex_sources) $(btio_sources) \
						tools/obex-client-tool.c
tools_obex_client_tool_LDADD = lib/libbluetooth-private.la \
						@GLIB_LIBS@ -lreadline

tools_obex_server_tool_SOURCES = $(gobex_sources) $(btio_sources) \
						tools/obex-server-tool.c
tools_obex_server_tool_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@
endif

if CUPS
cupsdir = $(libdir)/cups/backend

cups_PROGRAMS = profiles/cups/bluetooth

profiles_cups_bluetooth_SOURCES = $(gdbus_sources) profiles/cups/main.c \
					profiles/cups/cups.h \
					profiles/cups/sdp.c \
					profiles/cups/spp.c \
					profiles/cups/hcrp.c

profiles_cups_bluetooth_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ \
				lib/libbluetooth-private.la
endif

test_scripts += test/sap_client.py test/bluezutils.py \
		test/dbusdef.py test/monitor-bluetooth test/list-devices \
		test/test-discovery test/test-manager test/test-adapter \
		test/test-device test/test-service test/simple-agent \
		test/simple-service test/simple-endpoint test/test-sap-server \
		test/test-oob test/test-proximity \
		test/test-thermometer test/test-profile test/test-health \
		test/test-health-sink test/service-record.dtd \
		test/service-did.xml test/service-spp.xml test/service-opp.xml \
		test/service-ftp.xml test/simple-player test/test-nap \
		test/test-heartrate test/test-alert test/test-hfp \
		test/test-cyclingspeed