diff options
| -rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..89cf763 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +# out-of-tree module build of the mhs35 panel driver. + +# defaults to *your* current running kernel! +KDIR ?= /lib/modules/$(shell uname -r)/build +# kernel module artifacts output to build. +BUILD := build + +all: + mkdir -p $(BUILD) + ln -sf ../mhs35.c ../Kbuild $(BUILD)/ + $(MAKE) -C $(KDIR) M=$(CURDIR)/$(BUILD) modules + +clean: + rm -rf $(BUILD) |
