summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-07 08:14:00 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-07 08:14:00 +0200
commitfaaf7cb8b4f7a929bbda96fa160478d85383d4b5 (patch)
tree609f0851efd4dec5f3ba458996b9849be9efb8c8 /tests/Makefile
parentd8d0c330215326abdd8973a489a72acc404fef02 (diff)
downloadcryptodev-linux-faaf7cb8b4f7a929bbda96fa160478d85383d4b5.tar.gz
cryptodev-linux-faaf7cb8b4f7a929bbda96fa160478d85383d4b5.tar.xz
cryptodev-linux-faaf7cb8b4f7a929bbda96fa160478d85383d4b5.zip
Examples directory renamed -> tests
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000..883529e
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,26 @@
+CC = gcc
+CFLAGS = -Wall -g -O2
+
+progs := ncr pk speed
+
+all: $(progs)
+
+speed: speed.c
+ $(CC) $(CFLAGS) $< -o $@
+
+ncr: ncr.c
+ $(CC) $(CFLAGS) $< -o $@
+
+pk: pk.c
+ $(CC) $(CFLAGS) $< -o $@ -L/usr/local/lib -lgnutls
+
+uspeed: shm/aes_cbc.c shm/shm.c shm/aes.h
+ $(CC) $(CFLAGS) shm/aes_cbc.c shm/shm.c -o $@ -Ishm -lpthread
+
+check: $(progs)
+ ./ncr
+ ./pk
+ ./speed
+
+clean:
+ rm -f *.o *~ $(progs)