summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2009-11-28 15:47:11 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2009-11-28 15:47:11 +0200
commit3900f010e89c004b23fc648ed16c661aae4da785 (patch)
tree5f4f088fd39277ff4907599e19dcc6ed8b79a0f5 /Makefile
downloadcryptodev-linux-3900f010e89c004b23fc648ed16c661aae4da785.tar.gz
cryptodev-linux-3900f010e89c004b23fc648ed16c661aae4da785.tar.xz
cryptodev-linux-3900f010e89c004b23fc648ed16c661aae4da785.zip
Added files.
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