diff options
| author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-07 19:33:33 +0200 |
|---|---|---|
| committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-07 19:33:33 +0200 |
| commit | b673efed4a10dc31567b1c29b140b7910daeaf95 (patch) | |
| tree | 9dbd383a19543719bf6f3e25b7c3259aa1f461f6 /examples/Makefile | |
| parent | 4334f22638344873c4361f663be9d3dcad2b6bc4 (diff) | |
| download | cryptodev-linux-b673efed4a10dc31567b1c29b140b7910daeaf95.tar.gz cryptodev-linux-b673efed4a10dc31567b1c29b140b7910daeaf95.tar.xz cryptodev-linux-b673efed4a10dc31567b1c29b140b7910daeaf95.zip | |
Public and private keys are being generated in a new workqueue. Some other fixes and optimizations.
Diffstat (limited to 'examples/Makefile')
| -rw-r--r-- | examples/Makefile | 29 |
1 files changed, 21 insertions, 8 deletions
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 |
