modname := bbswitch
obj-m := $(modname).o
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
load:
-/sbin/rmmod $(modname)
/sbin/insmod $(modname).ko
Proudly self-hosted by Cole Deck. Fast loading powered by Turbo.