summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-06-19 11:12:35 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-06-19 11:26:19 +0200
commit57434b3f1d6e62a5c8aacd471f0be6b5b986b580 (patch)
treee0386dfc4566dc2a7f3dc1df4782092adbc75a5e /Makefile
parentb8859274b0e841b58f258d60f8d72311c1668452 (diff)
downloadcryptodev-linux-57434b3f1d6e62a5c8aacd471f0be6b5b986b580.tar.gz
cryptodev-linux-57434b3f1d6e62a5c8aacd471f0be6b5b986b580.tar.xz
cryptodev-linux-57434b3f1d6e62a5c8aacd471f0be6b5b986b580.zip
Version is shown on module load.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 815549b..3eda015 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build
-VERSION = 0.1
+KERNEL_DIR = /lib/modules/$(shell uname -r)/build
+VERSION = 0.3
cryptodev-objs = cryptodev_main.o cryptodev_cipher.o ncr.o \
ncr-data.o ncr-key.o ncr-limits.o ncr-sessions.o \
@@ -8,7 +8,8 @@ cryptodev-objs = cryptodev_main.o cryptodev_cipher.o ncr.o \
obj-m += cryptodev.o
build:
- make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules
+ @echo "#define VERSION \"$(VERSION)\"" > version.h
+ make -C $(KERNEL_DIR) VERSION="$VERSION" SUBDIRS=`pwd` modules
install:
make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install