From: milesp20 Date: Fri, 12 May 2017 14:02:12 +0000 (-0600) Subject: Create Makefile X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bfc3ab3e67d1ab330a0ba185ff98a0199a4b6f44;p=intel_nuc_led Create Makefile --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3a8439a --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +obj-m := nuc_led.o + +KVERSION := $(shell uname -r) +KDIR := /lib/modules/$(KVERSION)/build +PWD := $(shell pwd) + +default: + $(MAKE) -C $(KDIR) M=$(PWD) modules + +clean: + $(MAKE) -C $(KDIR) M=$(PWD) clean + +install: + $(MAKE) -C $(KDIR) M=$(PWD) modules_install + @depmod -a $(KVERSION)