aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile
blob: e4096d0a272da5ef995ce9899b320ae798230688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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