Makefile tweaks

This commit is contained in:
Arne Keller 2021-09-13 10:03:58 +02:00
parent 0aba665489
commit e363ff04dd

View File

@ -1 +1,14 @@
obj-m += hid-microsoft-ergonomic.o
KERNELRELEASE ?= $(shell uname -r)
KERNEL_DIR ?= /lib/modules/$(KERNELRELEASE)/build
PWD := $(shell pwd)
obj-m := hid-microsoft-ergonomic.o
all:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules
install:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules_install
clean:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean