KDIR ?= /lib/modules/`uname -r`/build

obj-m := low-speed-spidev.o

SRC := $(shell pwd)

all:
	$(MAKE) -C $(KDIR) M=$(SRC)

modules_install:
	$(MAKE) -C $(KDIR) M=$(SRC) modules_install

clean:
	rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
	rm -f Module.markers Module.symvers modules.order
	rm -rf .tmp_versions Modules.symvers
