diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-08-05 16:26:08 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-23 20:01:58 +0200 |
commit | c3c5893c98b575a6316d313d9c7439260778c72c (patch) | |
tree | a1d9b4aa1af5476c83511dba360442a452712147 | |
parent | 63db14a8400c31325f62b82acb91df8fee6ef654 (diff) | |
download | cryptodev-linux-c3c5893c98b575a6316d313d9c7439260778c72c.tar.gz cryptodev-linux-c3c5893c98b575a6316d313d9c7439260778c72c.tar.xz cryptodev-linux-c3c5893c98b575a6316d313d9c7439260778c72c.zip |
Integrate examples/ncr_lib.c
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | examples/Makefile | 7 |
2 files changed, 7 insertions, 1 deletions
@@ -10,6 +10,7 @@ modules.order examples/cipher examples/hmac examples/ncr +examples/ncr_lib examples/pk examples/speed releases diff --git a/examples/Makefile b/examples/Makefile index 749a4b8..56b92b2 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,7 +1,8 @@ CC = gcc CFLAGS = -Wall -g -O2 +USERSPACE_LDFLAGS = -L../userspace -lcryptodev -progs := cipher hmac ncr pk speed +progs := cipher hmac ncr ncr_lib pk speed all: $(progs) @@ -17,11 +18,15 @@ hmac: hmac.c ncr: ncr.c $(CC) $(CFLAGS) $< -o $@ +ncr_lib: ncr_lib.c + $(CC) $(CFLAGS) $< $(USERSPACE_LDFLAGS) -o $@ + pk: pk.c $(CC) $(CFLAGS) $< -o $@ -L/usr/local/lib -lgnutls check: $(progs) ./ncr + LD_LIBRARY_PATH=../userspace ./ncr_lib ./pk ./cipher ./hmac |