blob: 5a8eb2b85c5fb00aea0a29920950de258d448996 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
KERNEL_DIR := /lib/modules/$(shell uname -r)/build
cryptodev-objs = cryptodev_main.o cryptodev_cipher.o
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/cryptodev.h
clean:
make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean
rm -f $(hostprogs)
hostprogs := example-cipher example-hmac
example-cipher-objs := example-cipher.o
example-hmac-objs := example-hmac.o
check: $(hostprogs)
./example-cipher
./example-hmac
|