summaryrefslogtreecommitdiffstats
path: root/sys/modules/usb/Makefile
blob: 780613b709e2427b169e0d7ff83be85d87242f7c (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
#       $FreeBSD$ 

MAINTAINER	 = n_hibma@freebsd.org
S		 = ${.CURDIR}/../..

.PATH:		 $S/dev/usb $S/pci
KMOD		 = usb
SRCS		 = bus_if.h device_if.h usb_if.h usb_if.c \
		   vnode_if.c vnode_if.h \
		   opt_usb.h \
		   hid.c hid.h usbhid.h \
		   uhub.c \
		   usb.c usb.h \
		   usb_mem.h \
		   usb_port.h \
		   usb_quirks.c usb_quirks.h \
		   usb_subr.c \
		   usbdevs.h usbdevs_data.h \
		   usbdi.c usbdi.h usbdivar.h \
		   usbdi_util.c usbdi_util.h

SRCS		+= uhci_pci.c uhci.c uhcireg.h uhcivar.h
SRCS		+= ohci_pci.c ohci.c ohcireg.h ohcivar.h
SRCS		+= opt_bus.h pci_if.h

NOMAN		 =
CFLAGS		+= -g
CLEANFILES	+= bus_if.h device_if.h pci_if.h usb_if.h usb_if.c \
		   vnode_if.c vnode_if.h \
		   uhci_pci.o uhci.o \
		   ohci_pci.o ohci.o \
		   opt_usb.h

opt_usb.h:
	echo > opt_usb.h
#	echo "#define USB_DEBUG 1" >> opt_usb.h
#	echo "#define UHCI_DEBUG 1" >> opt_usb.h
#	echo "#define OHCI_DEBUG 1" >> opt_usb.h
opt_bus.h:
	echo > opt_bus.h

bus_if.h:
	perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
device_if.h:
	perl $S/kern/makedevops.pl -h $S/kern/device_if.m
usb_if.h:
	perl $S/kern/makedevops.pl -h $S/dev/usb/usb_if.m
usb_if.c:
	perl $S/kern/makedevops.pl -c $S/dev/usb/usb_if.m
pci_if.h:
	perl $S/kern/makedevops.pl -h $S/pci/pci_if.m

usb_devs.h:
	perl $S/kern/makedevlist.pl -h $S/dev/usb/usb.devs

.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud