xref: /freebsd/lib/libusb/Makefile (revision 51fd3d75feb1341e70c0e6a63db16ae2af4600f1)
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
33*51fd3d75SHans Petter Selasky.if defined(COMPAT_32BIT)
34*51fd3d75SHans Petter SelaskyCFLAGS+=	-DCOMPAT_32BIT
35*51fd3d75SHans Petter Selasky.endif
36*51fd3d75SHans Petter Selasky
37df4b8c2aSAndrew Thompson.include <bsd.lib.mk>
38df4b8c2aSAndrew Thompson
39