aboutsummaryrefslogtreecommitdiff
path: root/mod/Makefile
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2023-07-11 09:43:44 +0200
committerFelix Morgner <felix.morgner@gmail.com>2023-07-11 09:43:44 +0200
commitfd89f87ee3d2721155124954dca4156866001562 (patch)
tree1ddde744143fe2ff99060bea542564a5b74f4c5f /mod/Makefile
parent478bff552c2c01700893d19333dead6f6d11d4d5 (diff)
downloaddev-cyber-fd89f87ee3d2721155124954dca4156866001562.tar.xz
dev-cyber-fd89f87ee3d2721155124954dca4156866001562.zip
mod: move files to subdirectories
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
+