aboutsummaryrefslogtreecommitdiff
path: root/src/module/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/module/Makefile')
-rw-r--r--src/module/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/module/Makefile b/src/module/Makefile
new file mode 100644
index 0000000..c9db2e0
--- /dev/null
+++ b/src/module/Makefile
@@ -0,0 +1,8 @@
+obj-m += $(name).o
+$(name)-y := module.o
+
+all:
+ make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules
+
+clean:
+ make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean