1 2 3 4 5 6 7 8 9 10 11 12
KERNELRELEASE ?= $(shell uname -r) KDIR ?= /lib/modules/$(KERNELRELEASE)/build PWD ?= $(shell pwd) obj-m := drivers/misc/ntsync.o ccflags-y := -I$(src)/include -Werror default: modules install: modules_install modules modules_install clean: $(MAKE) -C $(KDIR) M=$(PWD) $@