]> granicus.if.org Git - intel_nuc_led/commitdiff
Create Makefile
authormilesp20 <milesp@gmail.com>
Fri, 12 May 2017 14:02:12 +0000 (08:02 -0600)
committerGitHub <noreply@github.com>
Fri, 12 May 2017 14:02:12 +0000 (08:02 -0600)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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)