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.
27 lines
452 B
27 lines
452 B
modname := usb_gpio
|
|
obj-m := $(modname).o
|
|
|
|
DEFINES := -DDEBUG
|
|
ccflags-y= $(DEFINES) -I/usr/include/
|
|
|
|
KVERSION := $(shell uname -r)
|
|
KMACHINE := $(shell uname -m)
|
|
|
|
KDIR := /lib/modules/$(KVERSION)/build
|
|
PWD := "$$(pwd)"
|
|
|
|
default:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
|
$(MAKE) -f Makefile.helper clean
|
|
rm -rf *~
|
|
|
|
load:
|
|
-/sbin/rmmod $(modname)
|
|
/sbin/insmod $(modname).ko
|
|
|
|
helper:
|
|
$(MAKE) -f Makefile.helper
|
|
|
|
|