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.
 
 

17 lines
312 B

obj-m := pony.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
rm -f modules.order Module.symvers *.ko pony.mod.c *.o .pony.ko.cmd .pony.mod.o.cmd .pony.o.cmd
rm -rf .tmp_versions
load:
sudo insmod pony.ko
unload:
sudo rmmod pony