From b673efed4a10dc31567b1c29b140b7910daeaf95 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 7 Jul 2010 19:33:33 +0200 Subject: Public and private keys are being generated in a new workqueue. Some other fixes and optimizations. --- examples/Makefile | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'examples/Makefile') diff --git a/examples/Makefile b/examples/Makefile index 3190c4a..9dce9b7 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,14 +1,27 @@ -KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build +CC = gcc +CFLAGS = -Wall -g -O2 -hostprogs := cipher hmac new -example-cipher-objs := cipher.o -example-hmac-objs := hmac.o -new-objs := new.o +progs := cipher hmac ncr pk -check: $(hostprogs) - ./new +all: $(progs) + +cipher: cipher.c + $(CC) $(CFLAGS) $< -o $@ + +hmac: hmac.c + $(CC) $(CFLAGS) $< -o $@ + +ncr: ncr.c + $(CC) $(CFLAGS) $< -o $@ + +pk: pk.c + $(CC) $(CFLAGS) $< -o $@ -L/usr/local/lib -lgnutls + +check: $(progs) + ./ncr + ./pk ./cipher ./hmac clean: - rm -f *.o *~ hmac cipher new + rm -f *.o *~ hmac cipher ncr pk -- cgit