xref: /freebsd/lib/libusb/Makefile (revision 892f48069d7bbd4680fe887a77f0d2c954e539ab)
1df4b8c2aSAndrew Thompson#
2df4b8c2aSAndrew Thompson# $FreeBSD$
3df4b8c2aSAndrew Thompson#
4df4b8c2aSAndrew Thompson# Makefile for the FreeBSD specific LibUSB 2.0
5df4b8c2aSAndrew Thompson#
6df4b8c2aSAndrew Thompson
7df4b8c2aSAndrew ThompsonLIB=		usb
83ca3047aSKen SmithSHLIB_MAJOR=	2
9df4b8c2aSAndrew ThompsonSHLIB_MINOR=	0
10df4b8c2aSAndrew ThompsonSRCS=		libusb20.c
11df4b8c2aSAndrew ThompsonSRCS+=		libusb20_desc.c
12df4b8c2aSAndrew ThompsonSRCS+=		libusb20_ugen20.c
13df4b8c2aSAndrew ThompsonINCS+=		libusb20.h
14df4b8c2aSAndrew ThompsonINCS+=		libusb20_desc.h
15a5118bdfSAndrew ThompsonMAN=		libusb.3 libusb20.3
16df4b8c2aSAndrew ThompsonMKLINT=		no
17df4b8c2aSAndrew ThompsonNOGCCERROR=
18df4b8c2aSAndrew Thompson
19daaf5759SEd SchoutenWARNS?=		2
20daaf5759SEd Schouten
21a5118bdfSAndrew ThompsonMLINKS+=	libusb.3 usb.3
224eaae44dSAndrew Thompson
23df4b8c2aSAndrew Thompson# libusb 0.1 compat
24df4b8c2aSAndrew ThompsonINCS+=		usb.h
25a5118bdfSAndrew ThompsonSRCS+=		libusb20_compat01.c
26a5118bdfSAndrew Thompson
27a5118bdfSAndrew Thompson# libusb 1.0 compat
28a5118bdfSAndrew ThompsonINCS+=		libusb.h
29a5118bdfSAndrew ThompsonSRCS+=		libusb10.c
30a5118bdfSAndrew ThompsonSRCS+=		libusb10_desc.c
31a5118bdfSAndrew ThompsonSRCS+=		libusb10_io.c
32df4b8c2aSAndrew Thompson
3351fd3d75SHans Petter Selasky.if defined(COMPAT_32BIT)
3451fd3d75SHans Petter SelaskyCFLAGS+=	-DCOMPAT_32BIT
3551fd3d75SHans Petter Selasky.endif
3651fd3d75SHans Petter Selasky
37df4b8c2aSAndrew Thompson.include <bsd.lib.mk>
38df4b8c2aSAndrew Thompson
39*892f4806SHans Petter Selasky# LibUSB v1.0
40*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_init.3
41*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_exit.3
42*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_strerror.3
43*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_set_debug.3
44*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_device_list.3
45*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_free_device_list.3
46*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_bus_number.3
47*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_device_address.3
48*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_max_packet_size.3
49*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_ref_device.3
50*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_unref_device.3
51*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_open.3
52*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_open_device_with_vid_pid.3
53*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_close.3
54*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_device.3
55*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_configuration.3
56*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_set_configuration.3
57*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_claim_interface.3
58*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_release_interface.3
59*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_set_interface_alt_setting.3
60*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_clear_halt.3
61*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_reset_device.3
62*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_check_connected.3
63*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_kernel_driver_active.3
64*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_driver.3
65*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_driver_np.3
66*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_detach_kernel_driver.3
67*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_detach_kernel_driver_np.3
68*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_attach_kernel_driver.3
69*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_device_descriptor.3
70*892f4806SHans Petter SelaskyMLINKS += libusb.3 libsub_get_active_config_descriptor.3
71*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_config_descriptor.3
72*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_config_descriptor_by_value.3
73*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_free_config_descriptor.3
74*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_string_descriptor_ascii.3
75*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_alloc_transfer.3
76*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_free_transfer.3
77*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_submit_transfer.3
78*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_cancel_transfer.3
79*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_control_transfer.3
80*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_bulk_transfer.3
81*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_interrupt_transfer.3
82*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_try_lock_events.3
83*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_lock_events.3
84*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_unlock_events.3
85*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_event_handling_ok.3
86*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_event_handler_active.3
87*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_lock_event_waiters.3
88*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_unlock_event_waiters.3
89*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_wait_for_event.3
90*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_handle_events_timeout.3
91*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_handle_events.3
92*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_handle_events_locked.3
93*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_next_timeout.3
94*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_set_pollfd_notifiers.3
95*892f4806SHans Petter SelaskyMLINKS += libusb.3 libusb_get_pollfds.3
96*892f4806SHans Petter Selasky
97*892f4806SHans Petter Selasky# LibUSB v0.1
98*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_open.3
99*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_close.3
100*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_get_string.3
101*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_get_string_simple.3
102*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_get_descriptor_by_endpoint.3
103*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_get_descriptor.3
104*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_parse_descriptor.3
105*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_parse_configuration.3
106*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_destroy_configuration.3
107*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_fetch_and_parse_descriptors.3
108*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_bulk_write.3
109*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_bulk_read.3
110*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_interrupt_write.3
111*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_interrupt_read.3
112*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_control_msg.3
113*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_set_configuration.3
114*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_claim_interface.3
115*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_release_interface.3
116*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_set_altinterface.3
117*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_resetep.3
118*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_clear_halt.3
119*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_reset.3
120*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_strerror.3
121*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_init.3
122*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_set_debug.3
123*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_find_busses.3
124*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_find_devices.3
125*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_device.3
126*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_get_busses.3
127*892f4806SHans Petter SelaskyMLINKS += libusb.3 usb_check_connected.3
128*892f4806SHans Petter Selasky
129*892f4806SHans Petter Selasky# LibUSB v2.0
130*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_close.3
131*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_open.3
132*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_pointer.3
133*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_time_complete.3
134*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_actual_frames.3
135*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_actual_length.3
136*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_max_frames.3
137*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_max_packet_length.3
138*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_max_total_length.3
139*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_status.3
140*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_pending.3
141*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_callback_wrapper.3
142*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_clear_stall_sync.3
143*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_drain.3
144*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_set_buffer.3
145*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_set_callback.3
146*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_set_flags.3
147*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_length.3
148*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_set_length.3
149*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_set_priv_sc0.3
150*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_set_priv_sc1.3
151*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_set_timeout.3
152*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_set_total_frames.3
153*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_setup_bulk.3
154*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_setup_control.3
155*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_setup_intr.3
156*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_setup_isoc.3
157*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_bulk_intr_sync.3
158*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_start.3
159*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_stop.3
160*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_submit.3
161*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_priv_sc0.3
162*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_tr_get_priv_sc1.3
163*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_backend_name.3
164*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_info.3
165*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_iface_desc.3
166*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_desc.3
167*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_close.3
168*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_detach_kernel_driver.3
169*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_set_config_index.3
170*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_debug.3
171*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_fd.3
172*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_kernel_driver_active.3
173*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_open.3
174*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_process.3
175*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_request_sync.3
176*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_req_string_sync.3
177*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_req_string_simple_sync.3
178*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_reset.3
179*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_check_connected.3
180*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_set_power_mode.3
181*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_power_mode.3
182*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_set_alt_index.3
183*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_device_desc.3
184*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_alloc_config.3
185*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_alloc.3
186*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_address.3
187*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_bus_number.3
188*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_mode.3
189*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_speed.3
190*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_get_config_index.3
191*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_free.3
192*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_set_debug.3
193*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_dev_wait_process.3
194*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_get_template.3
195*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_set_template.3
196*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_get_dev_quirk.3
197*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_get_quirk_name.3
198*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_add_dev_quirk.3
199*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_remove_dev_quirk.3
200*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_alloc_default.3
201*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_device_foreach.3
202*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_dequeue_device.3
203*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_enqueue_device.3
204*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_be_free.3
205*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_me_get_1.3
206*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_me_get_2.3
207*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_me_encode.3
208*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_me_decode.3
209*892f4806SHans Petter SelaskyMLINKS += libusb20.3 libusb20_desc_foreach.3
210