summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
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)