Prevent implicit -std=* passing from NXCFLAGS to NXCXXFLAGS.
[dragonfly.git] / lib / libusb / Makefile
blobac011f9484725df5adcb5d052e8ffad03c05456c
2 # $FreeBSD: head/lib/libusb/Makefile 275024 2014-11-25 11:07:26Z bapt $
4 # Makefile for the FreeBSD specific LibUSB 2.0
7 LIB= usb
8 SHLIB_MAJOR= 2
9 SHLIB_MINOR= 0
10 SRCS= libusb20.c
11 SRCS+= libusb20_desc.c
12 SRCS+= libusb20_ugen20.c
13 INCS+= libusb20.h
14 INCS+= libusb20_desc.h
15 MAN= libusb.3 libusb20.3
16 MKLINT= no
17 NOGCCERROR=
19 WARNS?= 3
21 DPADD= ${LIBPTHREAD}
22 LDADD= -lpthread
24 MLINKS+= libusb.3 usb.3
26 # libusb 0.1 compat
27 INCS+= usb.h
28 SRCS+= libusb01.c
30 # libusb 1.0 compat
31 INCS+= libusb.h
32 SRCS+= libusb10.c
33 SRCS+= libusb10_desc.c
34 SRCS+= libusb10_io.c
36 .if defined(COMPAT_32BIT)
37 CFLAGS+= -DCOMPAT_32BIT
38 .endif
40 beforeinstall:
41 ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
42 ${.CURDIR}/libusb-0.1.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
43 ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
44 ${.CURDIR}/libusb-1.0.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
45 ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
46 ${.CURDIR}/libusb-2.0.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
49 # Cross platform support
51 # Examples:
52 # make LIBUSB_GLOBAL_INCLUDE_FILE=libusb_global_linux.h
53 # make COMPAT_32BIT=YES \
54 # LIBUSB_GLOBAL_INCLUDE_FILE=libusb_global_linux.h \
55 # DEBUG_FLAGS="-g"
57 # From Ubuntu 10.04:
58 # freebsd-make LIBUSB_GLOBAL_INCLUDE_FILE=libusb_global_linux.h \
59 # PTHREAD_LIBS="-lpthread -lrt"
60 # freebsd-make COMPAT32_BIT=YES \
61 # LIBUSB_GLOBAL_INCLUDE_FILE=libusb_global_linux.h \
62 # PTHREAD_LIBS="-lpthread -lrt"
65 .if defined(LIBUSB_GLOBAL_INCLUDE_FILE)
66 CFLAGS+= -DLIBUSB_GLOBAL_INCLUDE_FILE=\"${LIBUSB_GLOBAL_INCLUDE_FILE}\"
67 CFLAGS+= -DUSB_GLOBAL_INCLUDE_FILE=\"${LIBUSB_GLOBAL_INCLUDE_FILE}\"
68 CFLAGS+= -I ../../sys
69 .endif
71 .include <bsd.lib.mk>
73 # LibUSB v1.0
74 MLINKS += libusb.3 libusb_init.3
75 MLINKS += libusb.3 libusb_exit.3
76 MLINKS += libusb.3 libusb_strerror.3
77 MLINKS += libusb.3 libusb_error_name.3
78 MLINKS += libusb.3 libusb_set_debug.3
79 MLINKS += libusb.3 libusb_get_device_list.3
80 MLINKS += libusb.3 libusb_free_device_list.3
81 MLINKS += libusb.3 libusb_get_bus_number.3
82 MLINKS += libusb.3 libusb_get_device_address.3
83 MLINKS += libusb.3 libusb_get_device_speed.3
84 MLINKS += libusb.3 libusb_get_max_packet_size.3
85 MLINKS += libusb.3 libusb_get_max_iso_packet_size.3
86 MLINKS += libusb.3 libusb_ref_device.3
87 MLINKS += libusb.3 libusb_unref_device.3
88 MLINKS += libusb.3 libusb_open.3
89 MLINKS += libusb.3 libusb_open_device_with_vid_pid.3
90 MLINKS += libusb.3 libusb_close.3
91 MLINKS += libusb.3 libusb_get_device.3
92 MLINKS += libusb.3 libusb_get_configuration.3
93 MLINKS += libusb.3 libusb_set_configuration.3
94 MLINKS += libusb.3 libusb_claim_interface.3
95 MLINKS += libusb.3 libusb_release_interface.3
96 MLINKS += libusb.3 libusb_set_interface_alt_setting.3
97 MLINKS += libusb.3 libusb_clear_halt.3
98 MLINKS += libusb.3 libusb_reset_device.3
99 MLINKS += libusb.3 libusb_check_connected.3
100 MLINKS += libusb.3 libusb_kernel_driver_active.3
101 MLINKS += libusb.3 libusb_get_driver.3
102 MLINKS += libusb.3 libusb_get_driver_np.3
103 MLINKS += libusb.3 libusb_detach_kernel_driver.3
104 MLINKS += libusb.3 libusb_detach_kernel_driver_np.3
105 MLINKS += libusb.3 libusb_attach_kernel_driver.3
106 MLINKS += libusb.3 libusb_get_device_descriptor.3
107 MLINKS += libusb.3 libusb_get_active_config_descriptor.3
108 MLINKS += libusb.3 libusb_get_config_descriptor.3
109 MLINKS += libusb.3 libusb_get_config_descriptor_by_value.3
110 MLINKS += libusb.3 libusb_free_config_descriptor.3
111 MLINKS += libusb.3 libusb_get_string_descriptor.3
112 MLINKS += libusb.3 libusb_get_string_descriptor_ascii.3
113 MLINKS += libusb.3 libusb_parse_ss_endpoint_comp.3
114 MLINKS += libusb.3 libusb_free_ss_endpoint_comp.3
115 MLINKS += libusb.3 libusb_parse_bos_descriptor.3
116 MLINKS += libusb.3 libusb_free_bos_descriptor.3
117 MLINKS += libusb.3 libusb_alloc_transfer.3
118 MLINKS += libusb.3 libusb_free_transfer.3
119 MLINKS += libusb.3 libusb_submit_transfer.3
120 MLINKS += libusb.3 libusb_cancel_transfer.3
121 MLINKS += libusb.3 libusb_control_transfer.3
122 MLINKS += libusb.3 libusb_bulk_transfer.3
123 MLINKS += libusb.3 libusb_interrupt_transfer.3
124 MLINKS += libusb.3 libusb_try_lock_events.3
125 MLINKS += libusb.3 libusb_lock_events.3
126 MLINKS += libusb.3 libusb_unlock_events.3
127 MLINKS += libusb.3 libusb_event_handling_ok.3
128 MLINKS += libusb.3 libusb_event_handler_active.3
129 MLINKS += libusb.3 libusb_lock_event_waiters.3
130 MLINKS += libusb.3 libusb_unlock_event_waiters.3
131 MLINKS += libusb.3 libusb_wait_for_event.3
132 MLINKS += libusb.3 libusb_handle_events_timeout_completed.3
133 MLINKS += libusb.3 libusb_handle_events_completed.3
134 MLINKS += libusb.3 libusb_handle_events_timeout.3
135 MLINKS += libusb.3 libusb_handle_events.3
136 MLINKS += libusb.3 libusb_handle_events_locked.3
137 MLINKS += libusb.3 libusb_get_next_timeout.3
138 MLINKS += libusb.3 libusb_set_pollfd_notifiers.3
139 MLINKS += libusb.3 libusb_get_pollfds.3
141 # LibUSB v0.1
142 MLINKS += libusb.3 usb_open.3
143 MLINKS += libusb.3 usb_close.3
144 MLINKS += libusb.3 usb_get_string.3
145 MLINKS += libusb.3 usb_get_string_simple.3
146 MLINKS += libusb.3 usb_get_descriptor_by_endpoint.3
147 MLINKS += libusb.3 usb_get_descriptor.3
148 MLINKS += libusb.3 usb_parse_descriptor.3
149 MLINKS += libusb.3 usb_parse_configuration.3
150 MLINKS += libusb.3 usb_destroy_configuration.3
151 MLINKS += libusb.3 usb_fetch_and_parse_descriptors.3
152 MLINKS += libusb.3 usb_bulk_write.3
153 MLINKS += libusb.3 usb_bulk_read.3
154 MLINKS += libusb.3 usb_interrupt_write.3
155 MLINKS += libusb.3 usb_interrupt_read.3
156 MLINKS += libusb.3 usb_control_msg.3
157 MLINKS += libusb.3 usb_set_configuration.3
158 MLINKS += libusb.3 usb_claim_interface.3
159 MLINKS += libusb.3 usb_release_interface.3
160 MLINKS += libusb.3 usb_set_altinterface.3
161 MLINKS += libusb.3 usb_resetep.3
162 MLINKS += libusb.3 usb_clear_halt.3
163 MLINKS += libusb.3 usb_reset.3
164 MLINKS += libusb.3 usb_strerror.3
165 MLINKS += libusb.3 usb_init.3
166 MLINKS += libusb.3 usb_set_debug.3
167 MLINKS += libusb.3 usb_find_busses.3
168 MLINKS += libusb.3 usb_find_devices.3
169 MLINKS += libusb.3 usb_device.3
170 MLINKS += libusb.3 usb_get_busses.3
171 MLINKS += libusb.3 usb_check_connected.3
173 # LibUSB v2.0
174 MLINKS += libusb20.3 libusb20_tr_close.3
175 MLINKS += libusb20.3 libusb20_tr_open.3
176 MLINKS += libusb20.3 libusb20_tr_get_pointer.3
177 MLINKS += libusb20.3 libusb20_tr_get_time_complete.3
178 MLINKS += libusb20.3 libusb20_tr_get_actual_frames.3
179 MLINKS += libusb20.3 libusb20_tr_get_actual_length.3
180 MLINKS += libusb20.3 libusb20_tr_get_max_frames.3
181 MLINKS += libusb20.3 libusb20_tr_get_max_packet_length.3
182 MLINKS += libusb20.3 libusb20_tr_get_max_total_length.3
183 MLINKS += libusb20.3 libusb20_tr_get_status.3
184 MLINKS += libusb20.3 libusb20_tr_pending.3
185 MLINKS += libusb20.3 libusb20_tr_callback_wrapper.3
186 MLINKS += libusb20.3 libusb20_tr_clear_stall_sync.3
187 MLINKS += libusb20.3 libusb20_tr_drain.3
188 MLINKS += libusb20.3 libusb20_tr_set_buffer.3
189 MLINKS += libusb20.3 libusb20_tr_set_callback.3
190 MLINKS += libusb20.3 libusb20_tr_set_flags.3
191 MLINKS += libusb20.3 libusb20_tr_get_length.3
192 MLINKS += libusb20.3 libusb20_tr_set_length.3
193 MLINKS += libusb20.3 libusb20_tr_set_priv_sc0.3
194 MLINKS += libusb20.3 libusb20_tr_set_priv_sc1.3
195 MLINKS += libusb20.3 libusb20_tr_set_timeout.3
196 MLINKS += libusb20.3 libusb20_tr_set_total_frames.3
197 MLINKS += libusb20.3 libusb20_tr_setup_bulk.3
198 MLINKS += libusb20.3 libusb20_tr_setup_control.3
199 MLINKS += libusb20.3 libusb20_tr_setup_intr.3
200 MLINKS += libusb20.3 libusb20_tr_setup_isoc.3
201 MLINKS += libusb20.3 libusb20_tr_bulk_intr_sync.3
202 MLINKS += libusb20.3 libusb20_tr_start.3
203 MLINKS += libusb20.3 libusb20_tr_stop.3
204 MLINKS += libusb20.3 libusb20_tr_submit.3
205 MLINKS += libusb20.3 libusb20_tr_get_priv_sc0.3
206 MLINKS += libusb20.3 libusb20_tr_get_priv_sc1.3
207 MLINKS += libusb20.3 libusb20_dev_get_backend_name.3
208 MLINKS += libusb20.3 libusb20_dev_get_info.3
209 MLINKS += libusb20.3 libusb20_dev_get_iface_desc.3
210 MLINKS += libusb20.3 libusb20_dev_get_desc.3
211 MLINKS += libusb20.3 libusb20_dev_close.3
212 MLINKS += libusb20.3 libusb20_dev_detach_kernel_driver.3
213 MLINKS += libusb20.3 libusb20_dev_set_config_index.3
214 MLINKS += libusb20.3 libusb20_dev_get_debug.3
215 MLINKS += libusb20.3 libusb20_dev_get_fd.3
216 MLINKS += libusb20.3 libusb20_dev_kernel_driver_active.3
217 MLINKS += libusb20.3 libusb20_dev_open.3
218 MLINKS += libusb20.3 libusb20_dev_process.3
219 MLINKS += libusb20.3 libusb20_dev_request_sync.3
220 MLINKS += libusb20.3 libusb20_dev_req_string_sync.3
221 MLINKS += libusb20.3 libusb20_dev_req_string_simple_sync.3
222 MLINKS += libusb20.3 libusb20_dev_reset.3
223 MLINKS += libusb20.3 libusb20_dev_check_connected.3
224 MLINKS += libusb20.3 libusb20_dev_set_power_mode.3
225 MLINKS += libusb20.3 libusb20_dev_get_power_mode.3
226 MLINKS += libusb20.3 libusb20_dev_get_port_path.3
227 MLINKS += libusb20.3 libusb20_dev_get_power_usage.3
228 MLINKS += libusb20.3 libusb20_dev_set_alt_index.3
229 MLINKS += libusb20.3 libusb20_dev_get_device_desc.3
230 MLINKS += libusb20.3 libusb20_dev_alloc_config.3
231 MLINKS += libusb20.3 libusb20_dev_alloc.3
232 MLINKS += libusb20.3 libusb20_dev_get_address.3
233 MLINKS += libusb20.3 libusb20_dev_get_parent_address.3
234 MLINKS += libusb20.3 libusb20_dev_get_parent_port.3
235 MLINKS += libusb20.3 libusb20_dev_get_bus_number.3
236 MLINKS += libusb20.3 libusb20_dev_get_mode.3
237 MLINKS += libusb20.3 libusb20_dev_get_speed.3
238 MLINKS += libusb20.3 libusb20_dev_get_config_index.3
239 MLINKS += libusb20.3 libusb20_dev_free.3
240 MLINKS += libusb20.3 libusb20_dev_set_debug.3
241 MLINKS += libusb20.3 libusb20_dev_wait_process.3
242 MLINKS += libusb20.3 libusb20_be_get_template.3
243 MLINKS += libusb20.3 libusb20_be_set_template.3
244 MLINKS += libusb20.3 libusb20_be_get_dev_quirk.3
245 MLINKS += libusb20.3 libusb20_be_get_quirk_name.3
246 MLINKS += libusb20.3 libusb20_be_add_dev_quirk.3
247 MLINKS += libusb20.3 libusb20_be_remove_dev_quirk.3
248 MLINKS += libusb20.3 libusb20_be_alloc_default.3
249 MLINKS += libusb20.3 libusb20_be_device_foreach.3
250 MLINKS += libusb20.3 libusb20_be_dequeue_device.3
251 MLINKS += libusb20.3 libusb20_be_enqueue_device.3
252 MLINKS += libusb20.3 libusb20_be_free.3
253 MLINKS += libusb20.3 libusb20_me_get_1.3
254 MLINKS += libusb20.3 libusb20_me_get_2.3
255 MLINKS += libusb20.3 libusb20_me_encode.3
256 MLINKS += libusb20.3 libusb20_me_decode.3
257 MLINKS += libusb20.3 libusb20_desc_foreach.3
258 MLINKS += libusb20.3 libusb20_strerror.3
259 MLINKS += libusb20.3 libusb20_error_name.3