aboutsummaryrefslogtreecommitdiff
path: root/mod/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/Makefile')
-rw-r--r--mod/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/Makefile b/mod/Makefile
new file mode 100644
index 0000000..0c25810
--- /dev/null
+++ b/mod/Makefile
@@ -0,0 +1,17 @@
+ifneq ($(KERNELRELEASE),)
+include Kbuild
+else
+KDIR ?= /lib/modules/`uname -r`/build
+
+modules:
+ @$(MAKE) -C $(KDIR) M=$$PWD modules
+
+clean:
+ @$(MAKE) -C $(KDIR) M=$$PWD clean
+
+install:
+ @$(MAKE) -C $(KDIR) M=$$PWD modules_install
+ @depmod -a
+
+endif
+