# Out-of-tree build of the Linux spidev driver for the mafp8800-spidev KMP.
#
# The source file spidev.c is the unmodified drivers/spi/spidev.c from the
# openSUSE kernel-source package (or the vendored copy in this directory,
# see the spec file).  The kernel build system is invoked as
#   make -C <kernel-obj-dir> M=$(PWD) modules
# by the RPM spec; this Makefile only declares the module object.

obj-m := spidev.o

# Convenience targets for manual, non-RPM builds against the running kernel.
KDIR ?= /lib/modules/$(shell uname -r)/build

modules:
	$(MAKE) -C $(KDIR) M=$(CURDIR) modules

clean:
	$(MAKE) -C $(KDIR) M=$(CURDIR) clean

.PHONY: modules clean
