summaryrefslogtreecommitdiffstats
path: root/examples/Makefile
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-06 02:33:17 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-23 20:01:59 +0200
commit9195a0942b821d2c0c78477fec78a413a081f2f6 (patch)
tree1ccd8c850e3b6f7fad5985889fe62f6db7b27a71 /examples/Makefile
parent7ce2ba83b7c5aa729d2f6118f039ee0fffceceae (diff)
Add port of examples/pk.c to libcryptodev
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 56b92b2..fb07989 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,8 +1,9 @@
CC = gcc
CFLAGS = -Wall -g -O2
+GNUTLS_LDFLAGS = -L/usr/local/lib -lgnutls
USERSPACE_LDFLAGS = -L../userspace -lcryptodev
-progs := cipher hmac ncr ncr_lib pk speed
+progs := cipher hmac ncr ncr_lib pk pk_lib speed
all: $(progs)
@@ -22,12 +23,16 @@ ncr_lib: ncr_lib.c
$(CC) $(CFLAGS) $< $(USERSPACE_LDFLAGS) -o $@
pk: pk.c
- $(CC) $(CFLAGS) $< -o $@ -L/usr/local/lib -lgnutls
+ $(CC) $(CFLAGS) $< -o $@ $(GNUTLS_LDFLAGS)
+
+pk_lib: pk_lib.c
+ $(CC) $(CFLAGS) $< $(GNUTLS_LDFLAGS) $(USERSPACE_LDFLAGS) -o $@
check: $(progs)
./ncr
LD_LIBRARY_PATH=../userspace ./ncr_lib
./pk
+ LD_LIBRARY_PATH=../userspace ./pk_lib
./cipher
./hmac
./speed