summaryrefslogtreecommitdiff
path: root/kslog/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kslog/Makefile')
-rw-r--r--kslog/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/kslog/Makefile b/kslog/Makefile
new file mode 100644
index 0000000..57e30e3
--- /dev/null
+++ b/kslog/Makefile
@@ -0,0 +1,18 @@
+SRC = kslog
+
+all: lkm cli
+
+lkm:
+ gcc -D_KERNEL -I/sys -c $(SRC).c
+
+cli:
+ cd kslog_cli; make; cd ..
+
+load:
+ sudo modload -o $(SRC) -ehandler $(SRC).o
+
+unload:
+ sudo modunload -n $(SRC)
+
+clean:
+ rm -rf $(SRC) $(SRC).o; cd kslog_cli; make clean; cd ..