You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
FTDI_kernel_space_gpio_driver/Makefile

20 lines
333 B

modname := usb_gpio
obj-m := $(modname).o
DEFINES := -DDEBUG
ccflags-y= $(DEFINES)
KVERSION := $(shell uname -r)
KDIR := /lib/modules/$(KVERSION)/build
PWD := "$$(pwd)"
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
rm -rf *~
load:
-/sbin/rmmod $(modname)
/sbin/insmod $(modname).ko