From 8dd0eec3d92fabb20a691af58c4d4885eff315dc Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Fri, 6 Aug 2010 02:33:17 +0200 Subject: Add port of examples/pk.c to libcryptodev --- examples/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'examples/Makefile') 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 -- cgit