summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsyn <isaqtm@gmail.com>2020-01-30 20:31:23 +0300
committersyn <isaqtm@gmail.com>2020-01-30 20:31:23 +0300
commit6662cea6b2572cd70a60aadfb28312e2bbef6ecc (patch)
tree1a4a527af10c11ba47224efd14cf866158ca774e /Makefile
downloadsad-6662cea6b2572cd70a60aadfb28312e2bbef6ecc.tar.gz
Faulty first implementation of echo module
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8fd4a5d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+obj-m += mod_add.o
+all:
+ make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
+
+ins:
+ sudo insmod mod_add.ko
+
+rm:
+ sudo rmmod mod_add
+ sudo rm -f dev
+
+nod: all ins
+ sudo mknod dev c 238 0
+ sudo chmod 666 dev
+
+clean:
+ make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
+