1 KERNEL_DIR
= /lib
/modules
/$(shell uname
-r
)/build
4 cryptodev-objs
= cryptodev_main.o cryptodev_cipher.o
9 make
-C
$(KERNEL_DIR
) SUBDIRS
=`pwd` modules
12 @echo
"#define VERSION \"$(VERSION)\"" > version.h
15 make
-C
$(KERNEL_DIR
) SUBDIRS
=`pwd` modules_install
16 @echo
"Installing cryptodev.h in /usr/include/crypto ..."
17 @
install -D cryptodev.h
/usr
/include/crypto
/cryptodev.h
20 make
-C
$(KERNEL_DIR
) SUBDIRS
=`pwd` clean
22 KERNEL_DIR
=$(KERNEL_DIR
) make
-C examples
clean
25 KERNEL_DIR
=$(KERNEL_DIR
) make
-C examples
check
27 FILEBASE
= cryptodev-linux-
$(VERSION
)
29 OUTPUT
= $(FILEBASE
).
tar.gz
34 @mkdir
$(TMPDIR
)/$(FILEBASE
)
35 @cp
-ar extras examples Makefile
*.c
*.h README NEWS \
36 AUTHORS COPYING
$(TMPDIR
)/$(FILEBASE
)
37 @
rm -rf
$(TMPDIR
)/$(FILEBASE
)/.git
* $(TMPDIR
)/$(FILEBASE
)/releases
$(TMPDIR
)/$(FILEBASE
)/scripts
38 @
tar -C
/tmp
-czf .
/$(OUTPUT
) $(FILEBASE
)
39 @
rm -rf
$(TMPDIR
)/$(FILEBASE
)
40 @echo Signing
$(OUTPUT
)
41 @gpg
--output
$(OUTPUT
).sig
-sb
$(OUTPUT
)
42 @gpg
--verify
$(OUTPUT
).sig
$(OUTPUT
)
43 @mv
$(OUTPUT
) $(OUTPUT
).sig releases
/