# Out-of-tree build of the in-tree uniwill-laptop driver (one module from two objects). ifneq ($(KERNELRELEASE),) obj-m := uniwill-laptop.o uniwill-laptop-y := uniwill-acpi.o uniwill-wmi.o else KDIR ?= /lib/modules/$(shell uname -r)/build all: $(MAKE) -C $(KDIR) M=$(CURDIR) modules clean: $(MAKE) -C $(KDIR) M=$(CURDIR) clean endif