diff --git a/Makefile b/Makefile index 1557cb2..7dfe38a 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,15 @@ ifeq ($(KERNELRELEASE),) KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) -.PHONY: build clean +.PHONY: build clean modules_install build: - $(MAKE) -C $(KERNELDIR) M=$(PWD) modules + $(MAKE) -C $(KERNELDIR) -j$(NPROC) M=$(PWD) modules clean: rm -f *.o core .depend .*.cmd *.ko *.mod.c *.mod .*.o.d modules.order Module.symvers - rm -rf .tmp_versions + rm -rf .tmp_versions .module-common.o + +modules_install: + $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install else