bbswitch-g14/Makefile
Lekensteyn 619d95e7d7 bbswitch/Makefile: don't fail on paths with special chars
Don't expand the current directory in the Makefile, let the shell expand
it. Furthermore, replace all occurences of the modulename by a variable
2011-12-12 21:15:00 +01:00

17 lines
279 B
Makefile

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