aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorConstanza Heath <[email protected]>2015-08-20 11:22:40 -0700
committerConstanza Heath <[email protected]>2015-08-20 11:22:40 -0700
commit1691f2b164fb5ff1e32265d6df643fc8b33cf112 (patch)
treef14ef31a75edf8a342e161ce92d4f2f741d8966c /tests/Makefile
Initial commit
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000..e4096d0
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,59 @@
+################################################################################
+#
+# Copyright (C) 2015 by Intel Corporation, All Rights Reserved.
+#
+# Tests Makefile.
+#
+################################################################################
+
+include ../Makefile.conf
+
+# Edit the all content to add/remove tests needed from TinyCrypt library:
+all: test_aes \
+ test_cbc_mode \
+ test_ctr_mode \
+ test_hmac \
+ test_hmac_prng \
+ test_sha256
+
+clean:
+ /bin/rm -f *.o *~
+ /bin/rm -f test_aes
+ /bin/rm -f test_cbc_mode
+ /bin/rm -f test_ctr_mode
+ /bin/rm -f test_hmac
+ /bin/rm -f test_hmac_prng
+ /bin/rm -f test_sha256
+
+
+
+
+
+# Dependencies
+test_aes: test_aes.o test_utils.o ../lib/aes_encrypt.o \
+ ../lib/aes_decrypt.o ../lib/utils.o
+
+test_cbc_mode: test_cbc_mode.o test_utils.o ../lib/cbc_mode.o \
+ ../lib/aes_encrypt.o ../lib/aes_decrypt.o \
+ ../lib/utils.o
+
+test_ctr_mode: test_ctr_mode.o test_utils.o ../lib/ctr_mode.o \
+ ../lib/aes_encrypt.o ../lib/utils.o
+
+test_hmac: test_hmac.o test_utils.o ../lib/hmac.o ../lib/sha256.o \
+ ../lib/utils.o
+
+test_hmac_prng: test_hmac_prng.o ../lib/hmac_prng.o ../lib/hmac.o \
+ ../lib/sha256.o ../lib/utils.o
+
+test_sha256: test_sha256.o test_utils.o ../lib/sha256.o ../lib/utils.o
+
+# Sub-dependencies
+test_aes.o: test_aes.c ../lib/aes.h
+test_cbc_mode.o: test_cbc_mode.c ../lib/cbc_mode.h ../lib/aes.h
+test_ctr_mode.o: test_ctr_mode.c ../lib/aes.h ../lib/ctr_mode.h
+test_hmac.o: test_hmac.c ../lib/hmac.h ../lib/sha256.h
+test_hmac_prng.o: test_hmac_prng.c ../lib/hmac_prng.h ../lib/utils.h
+test_sha256.o: test_sha256.c ../lib/sha256.h
+test_utils.o: test_utils.c test_utils.h
+