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-24 20:58:32 +0200
commit8dd0eec3d92fabb20a691af58c4d4885eff315dc (patch)
tree19d4de9e66a1c9bf31b1a5468d1f36106c8b4839 /examples/Makefile
parent92717fd5e2efe8dc4fae42948987f3e88275d5d7 (diff)
downloadcryptodev-linux-8dd0eec3d92fabb20a691af58c4d4885eff315dc.tar.gz
cryptodev-linux-8dd0eec3d92fabb20a691af58c4d4885eff315dc.tar.xz
cryptodev-linux-8dd0eec3d92fabb20a691af58c4d4885eff315dc.zip
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