# # If have trouble compiling, try changing the KERNEL_VERSION(2, 4, 9) # around line 158 to KERNEL_VERSION(2, 4, 11), if still doesn't work, try # the last number as the third number in your kernel version or 1 greater. # CC = gcc RELEASE = `uname -r` # use this line to force build on standard RH7.2 with 2.4.7-10 kernel #KERNELDIR = /usr/src/linux-2.4.7-10 # use this line to force build on RH7.2 with 2.4.16 kernel #KERNELDIR = /usr/src/linux-2.4.16 # hopefully this should generally work KERNELDIR = /usr/src/linux-$(RELEASE) CFLAGS = -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include -O -Wall all: usbvb.o clean: /bin/rm -f usbvb.o unload: /sbin/rmmod usbvb load: usbvb.o /sbin/insmod usbvb.o fload: usbvb.o /sbin/insmod -f usbvb.o devs: mknod /dev/usb/vbc0 c 180 200 mknod /dev/usb/vbc1 c 180 201 mknod /dev/usb/vbc2 c 180 202 mknod /dev/usb/vbc3 c 180 203 mknod /dev/usb/vbv0 c 180 204 mknod /dev/usb/vbv1 c 180 205 mknod /dev/usb/vbv2 c 180 206 mknod /dev/usb/vbv3 c 180 207