1 KERNEL_DIR
= /lib
/modules
/$(shell uname
-r
)/build
4 cryptodev-objs
= cryptodev_main.o cryptodev_cipher.o
9 @echo
"#define VERSION \"$(VERSION)\"" > version.h
10 make
-C
$(KERNEL_DIR
) VERSION
="$VERSION" SUBDIRS
=`pwd` modules
13 make
-C
$(KERNEL_DIR
) SUBDIRS
=`pwd` modules_install
14 @echo
"Installing cryptodev.h in /usr/include/crypto ..."
15 @
install -D cryptodev.h
/usr
/include/crypto
/cryptodev.h
18 make
-C
$(KERNEL_DIR
) SUBDIRS
=`pwd` clean
20 KERNEL_DIR
=$(KERNEL_DIR
) make
-C examples
clean
23 KERNEL_DIR
=$(KERNEL_DIR
) make
-C examples
check
25 FILEBASE
= cryptodev-linux-
$(VERSION
)
27 OUTPUT
= $(FILEBASE
).
tar.gz
32 @mkdir
$(TMPDIR
)/$(FILEBASE
)
33 @cp
-ar .
$(TMPDIR
)/$(FILEBASE
)
34 @
rm -rf
$(TMPDIR
)/$(FILEBASE
)/.git
* $(TMPDIR
)/$(FILEBASE
)/releases
$(TMPDIR
)/$(FILEBASE
)/scripts
35 @
tar -C
/tmp
-czf .
/$(OUTPUT
) $(FILEBASE
)
36 @
rm -rf
$(TMPDIR
)/$(FILEBASE
)
37 @echo Signing
$(OUTPUT
)
38 @gpg
--output
$(OUTPUT
).sig
-sb
$(OUTPUT
)
39 @gpg
--verify
$(OUTPUT
).sig
$(OUTPUT
)
40 @mv
$(OUTPUT
) $(OUTPUT
).sig releases
/