summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..12bb5e2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+KERNEL_DIR := /lib/modules/$(shell uname -r)/build
+
+obj-m += cryptodev.o
+
+build:
+ make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules
+
+install:
+ make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install
+ @echo "Installing cryptodev.h in /usr/include/crypto ..."
+ @install -D cryptodev.h /usr/include/crypto
+
+clean:
+ make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean