1# $FreeBSD$ 2 3MAINTAINER = n_hibma@freebsd.org 4S = ${.CURDIR}/../.. 5 6.PATH: $S/dev/usb $S/pci 7KMOD = usb 8SRCS = bus_if.h device_if.h usb_if.h usb_if.c \ 9 vnode_if.h \ 10 opt_usb.h \ 11 hid.c hid.h usbhid.h \ 12 uhub.c \ 13 usb.c usb.h \ 14 usb_mem.h \ 15 usb_port.h \ 16 usb_quirks.c usb_quirks.h \ 17 usb_subr.c \ 18 usbdevs.h usbdevs_data.h \ 19 usbdi.c usbdi.h usbdivar.h \ 20 usbdi_util.c usbdi_util.h 21 22SRCS += uhci_pci.c uhci.c uhcireg.h uhcivar.h 23SRCS += ohci_pci.c ohci.c ohcireg.h ohcivar.h 24SRCS += opt_bus.h pci_if.h 25 26NOMAN = 27CFLAGS += -g 28CLEANFILES += bus_if.h device_if.h pci_if.h usb_if.h usb_if.c \ 29 vnode_if.c vnode_if.h \ 30 uhci_pci.o uhci.o \ 31 ohci_pci.o ohci.o \ 32 opt_usb.h opt_bus.h 33 34opt_usb.h: 35 echo > opt_usb.h 36# echo "#define USB_DEBUG 1" >> opt_usb.h 37# echo "#define UHCI_DEBUG 1" >> opt_usb.h 38# echo "#define OHCI_DEBUG 1" >> opt_usb.h 39opt_bus.h: 40 echo > opt_bus.h 41 42bus_if.h: 43 perl $S/kern/makedevops.pl -h $S/kern/bus_if.m 44device_if.h: 45 perl $S/kern/makedevops.pl -h $S/kern/device_if.m 46usb_if.h: 47 perl $S/kern/makedevops.pl -h $S/dev/usb/usb_if.m 48usb_if.c: 49 perl $S/kern/makedevops.pl -c $S/dev/usb/usb_if.m 50pci_if.h: 51 perl $S/kern/makedevops.pl -h $S/pci/pci_if.m 52 53usb_devs.h: 54 perl $S/kern/makedevlist.pl -h $S/dev/usb/usb.devs 55 56.include <bsd.kmod.mk> 57