summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-05 16:26:08 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-23 20:01:58 +0200
commitc3c5893c98b575a6316d313d9c7439260778c72c (patch)
treea1d9b4aa1af5476c83511dba360442a452712147 /examples
parent63db14a8400c31325f62b82acb91df8fee6ef654 (diff)
Integrate examples/ncr_lib.c
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile7
1 files changed, 6 insertions, 1 deletions
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