blob: 3632554499d2e78cce91d3936c787cad21c552b0 [file] [log] [blame]
Paul Bakker0049c2f2009-07-11 19:15:43 +00001
2# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS
Paul Bakker43b7e352011-01-18 15:27:19 +00003# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
Paul Bakker0049c2f2009-07-11 19:15:43 +00004
Alon Bar-Levf7a9f302015-02-18 17:55:05 +02005CFLAGS ?= -O2
6WARNING_CFLAGS ?= -Wall -W -Wdeclaration-after-statement -Wno-unused-function -Wno-unused-value
Alon Bar-Levada41052015-02-18 17:47:52 +02007LDFLAGS ?=
Paul Bakker0049c2f2009-07-11 19:15:43 +00008
Alon Bar-Levf7a9f302015-02-18 17:55:05 +02009LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020010LOCAL_LDFLAGS = -L../library \
Manuel Pégourié-Gonnard21e1ac22015-06-25 08:45:12 +020011 -lmbedtls$(SHARED_SUFFIX) \
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020012 -lmbedx509$(SHARED_SUFFIX) \
Manuel Pégourié-Gonnard21e1ac22015-06-25 08:45:12 +020013 -lmbedcrypto$(SHARED_SUFFIX)
Paul Bakker0049c2f2009-07-11 19:15:43 +000014
Nicholas Wilson61fa4362018-06-25 12:10:00 +010015# Enable definition of various functions used throughout the testsuite
16# (gethostname, strdup, fileno...) even when compiling with -std=c99. Harmless
17# on non-POSIX platforms.
18LOCAL_CFLAGS += -D_POSIX_C_SOURCE=200809L
19
Paul Bakker674e0b02014-03-26 13:26:52 +010020ifndef SHARED
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020021DEP=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a
Paul Bakker674e0b02014-03-26 13:26:52 +010022else
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020023DEP=../library/libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT)
Paul Bakker674e0b02014-03-26 13:26:52 +010024endif
25
Paul Bakkerc7ffd362012-04-05 12:08:29 +000026ifdef DEBUG
Alon Bar-Levf7a9f302015-02-18 17:55:05 +020027LOCAL_CFLAGS += -g3
Paul Bakkerc7ffd362012-04-05 12:08:29 +000028endif
29
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020030# if we're running on Windows, build for Windows
Paul Bakkercd5b5292012-05-10 20:49:10 +000031ifdef WINDOWS
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020032WINDOWS_BUILD=1
33endif
34
35ifdef WINDOWS_BUILD
36DLEXT=dll
37EXEXT=.exe
Alon Bar-Levada41052015-02-18 17:47:52 +020038LOCAL_LDFLAGS += -lws2_32
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020039ifdef SHARED
40SHARED_SUFFIX=.$(DLEXT)
41endif
Manuel Pégourié-Gonnard8d4a6132015-06-24 12:16:20 +020042else
Andres Amaya Garcia420f0cc2018-03-27 19:17:21 +010043DLEXT ?= so
Manuel Pégourié-Gonnard8d4a6132015-06-24 12:16:20 +020044EXEXT=
45SHARED_SUFFIX=
Paul Bakkercd5b5292012-05-10 20:49:10 +000046endif
47
Paul Bakker2770fbd2012-07-03 13:30:23 +000048# Zlib shared library extensions:
49ifdef ZLIB
Alon Bar-Levada41052015-02-18 17:47:52 +020050LOCAL_LDFLAGS += -lz
Paul Bakker2770fbd2012-07-03 13:30:23 +000051endif
52
Manuel Pégourié-Gonnard9c82e2c2018-06-04 12:30:04 +020053APPS = test_suite_aes.ecb$(EXEXT) test_suite_aes.cbc$(EXEXT) \
Simon Butcherad4e4932018-04-29 00:43:47 +010054 test_suite_aes.cfb$(EXEXT) test_suite_aes.ofb$(EXEXT) \
Jaeden Ameroe22ba802018-05-08 17:23:40 +010055 test_suite_aes.xts$(EXEXT) \
Manuel Pégourié-Gonnard0dadba22018-06-19 11:11:15 +020056 test_suite_aes.rest$(EXEXT) test_suite_arc4$(EXEXT) \
57 test_suite_aria$(EXEXT) test_suite_asn1write$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020058 test_suite_base64$(EXEXT) test_suite_blowfish$(EXEXT) \
59 test_suite_camellia$(EXEXT) test_suite_ccm$(EXEXT) \
Manuel Pégourié-Gonnarddca3a5d2018-05-07 10:43:27 +020060 test_suite_chacha20$(EXEXT) test_suite_chachapoly$(EXEXT) \
61 test_suite_cmac$(EXEXT) \
62 test_suite_cipher.chachapoly$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020063 test_suite_cipher.aes$(EXEXT) \
64 test_suite_cipher.arc4$(EXEXT) test_suite_cipher.ccm$(EXEXT) \
Daniel Kingbd920622016-05-15 19:56:20 -030065 test_suite_cipher.chacha20$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020066 test_suite_cipher.gcm$(EXEXT) \
67 test_suite_cipher.blowfish$(EXEXT) \
68 test_suite_cipher.camellia$(EXEXT) \
69 test_suite_cipher.des$(EXEXT) test_suite_cipher.null$(EXEXT) \
70 test_suite_cipher.padding$(EXEXT) \
71 test_suite_ctr_drbg$(EXEXT) test_suite_debug$(EXEXT) \
72 test_suite_des$(EXEXT) test_suite_dhm$(EXEXT) \
73 test_suite_ecdh$(EXEXT) test_suite_ecdsa$(EXEXT) \
Manuel Pégourié-Gonnard4d8685b2015-08-05 15:44:42 +020074 test_suite_ecjpake$(EXEXT) test_suite_ecp$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020075 test_suite_error$(EXEXT) test_suite_entropy$(EXEXT) \
76 test_suite_gcm.aes128_de$(EXEXT) \
77 test_suite_gcm.aes192_de$(EXEXT) \
78 test_suite_gcm.aes256_de$(EXEXT) \
79 test_suite_gcm.aes128_en$(EXEXT) \
80 test_suite_gcm.aes192_en$(EXEXT) \
81 test_suite_gcm.aes256_en$(EXEXT) \
Manuel Pégourié-Gonnardec4a3392015-03-24 16:59:49 +010082 test_suite_gcm.camellia$(EXEXT) \
Thomas Fossati656864b2016-07-17 08:51:22 +010083 test_suite_hkdf$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020084 test_suite_hmac_drbg.misc$(EXEXT) \
85 test_suite_hmac_drbg.no_reseed$(EXEXT) \
86 test_suite_hmac_drbg.nopr$(EXEXT) \
87 test_suite_hmac_drbg.pr$(EXEXT) \
88 test_suite_md$(EXEXT) test_suite_mdx$(EXEXT) \
89 test_suite_memory_buffer_alloc$(EXEXT) \
Manuel Pégourié-Gonnardb6b16bd2015-03-11 11:20:43 +000090 test_suite_mpi$(EXEXT) \
Ron Eldor8dd03cd2018-07-15 09:37:28 +030091 test_suite_nist_kw$(EXEXT) \
Simon Butcherf8758b82016-04-12 11:31:00 +010092 test_suite_pem$(EXEXT) test_suite_pkcs1_v15$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020093 test_suite_pkcs1_v21$(EXEXT) test_suite_pkcs5$(EXEXT) \
94 test_suite_pkparse$(EXEXT) test_suite_pkwrite$(EXEXT) \
95 test_suite_pk$(EXEXT) \
Daniel Kingadc32c02016-05-16 18:25:45 -030096 test_suite_poly1305$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020097 test_suite_rsa$(EXEXT) test_suite_shax$(EXEXT) \
Paul Bakker50157ff2016-07-19 14:57:00 +010098 test_suite_ssl$(EXEXT) test_suite_timing$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020099 test_suite_x509parse$(EXEXT) test_suite_x509write$(EXEXT) \
100 test_suite_xtea$(EXEXT) test_suite_version$(EXEXT)
Paul Bakker0049c2f2009-07-11 19:15:43 +0000101
102.SILENT:
103
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200104.PHONY: all check test clean
105
Paul Bakker0049c2f2009-07-11 19:15:43 +0000106all: $(APPS)
107
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200108$(DEP):
Manuel Pégourié-Gonnardfc367082015-06-26 16:50:24 +0200109 $(MAKE) -C ../library
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200110
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200111# invoke perl explicitly for the sake of mingw32-make
112
Paul Bakker19343182013-08-16 13:31:10 +0200113test_suite_aes.ecb.c : suites/test_suite_aes.function suites/test_suite_aes.ecb.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100114 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200115 perl scripts/generate_code.pl suites test_suite_aes test_suite_aes.ecb
Paul Bakker286bf3c2013-04-08 18:09:51 +0200116
Paul Bakker19343182013-08-16 13:31:10 +0200117test_suite_aes.cbc.c : suites/test_suite_aes.function suites/test_suite_aes.cbc.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100118 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200119 perl scripts/generate_code.pl suites test_suite_aes test_suite_aes.cbc
Paul Bakker286bf3c2013-04-08 18:09:51 +0200120
Paul Bakker19343182013-08-16 13:31:10 +0200121test_suite_aes.cfb.c : suites/test_suite_aes.function suites/test_suite_aes.cfb.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100122 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200123 perl scripts/generate_code.pl suites test_suite_aes test_suite_aes.cfb
Paul Bakker286bf3c2013-04-08 18:09:51 +0200124
Simon Butcher03018842018-04-22 22:57:58 +0100125test_suite_aes.ofb.c : suites/test_suite_aes.function suites/test_suite_aes.ofb.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
126 echo " Gen $@"
127 perl scripts/generate_code.pl suites test_suite_aes test_suite_aes.ofb
128
Paul Bakker19343182013-08-16 13:31:10 +0200129test_suite_aes.rest.c : suites/test_suite_aes.function suites/test_suite_aes.rest.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100130 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200131 perl scripts/generate_code.pl suites test_suite_aes test_suite_aes.rest
Paul Bakker286bf3c2013-04-08 18:09:51 +0200132
Jaeden Ameroe22ba802018-05-08 17:23:40 +0100133test_suite_aes.xts.c : suites/test_suite_aes.function suites/test_suite_aes.xts.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
134 echo " Gen $@"
135 perl scripts/generate_code.pl suites test_suite_aes test_suite_aes.xts
136
Paul Bakker19343182013-08-16 13:31:10 +0200137test_suite_cipher.aes.c : suites/test_suite_cipher.function suites/test_suite_cipher.aes.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100138 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200139 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.aes
Paul Bakker46c17942011-07-13 14:54:54 +0000140
Manuel Pégourié-Gonnard37e230c2013-08-28 13:50:42 +0200141test_suite_cipher.arc4.c : suites/test_suite_cipher.function suites/test_suite_cipher.arc4.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100142 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200143 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.arc4
Manuel Pégourié-Gonnard37e230c2013-08-28 13:50:42 +0200144
Manuel Pégourié-Gonnard542eac52014-05-15 16:03:07 +0200145test_suite_cipher.ccm.c : suites/test_suite_cipher.function suites/test_suite_cipher.ccm.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100146 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200147 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.ccm
Manuel Pégourié-Gonnard542eac52014-05-15 16:03:07 +0200148
Daniel Kingbd920622016-05-15 19:56:20 -0300149test_suite_cipher.chacha20.c : suites/test_suite_cipher.function suites/test_suite_cipher.chacha20.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
150 echo " Gen $@"
151 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.chacha20
152
Manuel Pégourié-Gonnarddca3a5d2018-05-07 10:43:27 +0200153test_suite_cipher.chachapoly.c : suites/test_suite_cipher.function suites/test_suite_cipher.chachapoly.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
154 echo " Gen $@"
155 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.chachapoly
156
Manuel Pégourié-Gonnard07f8fa52013-08-30 18:34:08 +0200157test_suite_cipher.gcm.c : suites/test_suite_cipher.function suites/test_suite_cipher.gcm.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100158 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200159 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.gcm
Manuel Pégourié-Gonnard07f8fa52013-08-30 18:34:08 +0200160
Paul Bakker19343182013-08-16 13:31:10 +0200161test_suite_cipher.blowfish.c : suites/test_suite_cipher.function suites/test_suite_cipher.blowfish.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100162 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200163 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.blowfish
Paul Bakker6132d0a2012-07-04 17:10:40 +0000164
Paul Bakker19343182013-08-16 13:31:10 +0200165test_suite_cipher.camellia.c : suites/test_suite_cipher.function suites/test_suite_cipher.camellia.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100166 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200167 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.camellia
Paul Bakker46c17942011-07-13 14:54:54 +0000168
Paul Bakker19343182013-08-16 13:31:10 +0200169test_suite_cipher.des.c : suites/test_suite_cipher.function suites/test_suite_cipher.des.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100170 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200171 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.des
Paul Bakker46c17942011-07-13 14:54:54 +0000172
Paul Bakker19343182013-08-16 13:31:10 +0200173test_suite_cipher.null.c : suites/test_suite_cipher.function suites/test_suite_cipher.null.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100174 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200175 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.null
Paul Bakkerfab5c822012-02-06 16:45:10 +0000176
Paul Bakker19343182013-08-16 13:31:10 +0200177test_suite_cipher.padding.c : suites/test_suite_cipher.function suites/test_suite_cipher.padding.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100178 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200179 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.padding
Manuel Pégourié-Gonnardd5fdcaf2013-07-24 18:05:00 +0200180
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200181test_suite_gcm.aes128_de.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes128_de.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100182 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200183 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_de
Paul Bakker89e80c92012-03-20 13:50:09 +0000184
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200185test_suite_gcm.aes192_de.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes192_de.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100186 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200187 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_de
Paul Bakker286bf3c2013-04-08 18:09:51 +0200188
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200189test_suite_gcm.aes256_de.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes256_de.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100190 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200191 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_de
Paul Bakker286bf3c2013-04-08 18:09:51 +0200192
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200193test_suite_gcm.aes128_en.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes128_en.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100194 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200195 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_en
Paul Bakker286bf3c2013-04-08 18:09:51 +0200196
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200197test_suite_gcm.aes192_en.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes192_en.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100198 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200199 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_en
Paul Bakker286bf3c2013-04-08 18:09:51 +0200200
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200201test_suite_gcm.aes256_en.c : suites/test_suite_gcm.function suites/test_suite_gcm.aes256_en.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100202 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200203 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_en
Paul Bakker89e80c92012-03-20 13:50:09 +0000204
Manuel Pégourié-Gonnard13e0d442013-10-24 12:59:00 +0200205test_suite_gcm.camellia.c : suites/test_suite_gcm.function suites/test_suite_gcm.camellia.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100206 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200207 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.camellia
Paul Bakker0049c2f2009-07-11 19:15:43 +0000208
Thomas Fossati656864b2016-07-17 08:51:22 +0100209test_suite_hkdf.c : suites/test_suite_hkdf.function suites/test_suite_hkdf.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
210 echo " Gen $@"
211 perl scripts/generate_code.pl suites test_suite_hkdf test_suite_hkdf
212
Manuel Pégourié-Gonnard48bc3e82014-01-30 21:11:16 +0100213test_suite_hmac_drbg.misc.c : suites/test_suite_hmac_drbg.function suites/test_suite_hmac_drbg.misc.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100214 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200215 perl scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.misc
Manuel Pégourié-Gonnard48bc3e82014-01-30 21:11:16 +0100216
Manuel Pégourié-Gonnard6801f392014-01-30 17:22:14 +0100217test_suite_hmac_drbg.no_reseed.c : suites/test_suite_hmac_drbg.function suites/test_suite_hmac_drbg.no_reseed.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100218 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200219 perl scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.no_reseed
Manuel Pégourié-Gonnard6801f392014-01-30 17:22:14 +0100220
Manuel Pégourié-Gonnard24600b72014-01-31 09:54:14 +0100221test_suite_hmac_drbg.nopr.c : suites/test_suite_hmac_drbg.function suites/test_suite_hmac_drbg.nopr.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100222 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200223 perl scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.nopr
Manuel Pégourié-Gonnard24600b72014-01-31 09:54:14 +0100224
Manuel Pégourié-Gonnard62273b82014-01-31 10:16:57 +0100225test_suite_hmac_drbg.pr.c : suites/test_suite_hmac_drbg.function suites/test_suite_hmac_drbg.pr.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100226 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200227 perl scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.pr
Manuel Pégourié-Gonnard62273b82014-01-31 10:16:57 +0100228
Paul Bakker19343182013-08-16 13:31:10 +0200229%.c : suites/%.function suites/%.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100230 echo " Gen $@"
Manuel Pégourié-Gonnard6cacde22015-07-08 16:02:43 +0200231 perl scripts/generate_code.pl suites $* $*
Paul Bakker0049c2f2009-07-11 19:15:43 +0000232
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200233test_suite_aes.ecb$(EXEXT): test_suite_aes.ecb.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100234 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200235 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200236
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200237test_suite_aes.cbc$(EXEXT): test_suite_aes.cbc.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100238 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200239 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200240
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200241test_suite_aes.cfb$(EXEXT): test_suite_aes.cfb.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100242 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200243 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200244
Simon Butcher03018842018-04-22 22:57:58 +0100245test_suite_aes.ofb$(EXEXT): test_suite_aes.ofb.c $(DEP)
246 echo " CC $<"
247 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
248
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200249test_suite_aes.rest$(EXEXT): test_suite_aes.rest.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100250 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200251 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000252
Jaeden Ameroe22ba802018-05-08 17:23:40 +0100253test_suite_aes.xts$(EXEXT): test_suite_aes.xts.c $(DEP)
254 echo " CC $<"
255 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
256
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200257test_suite_arc4$(EXEXT): test_suite_arc4.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100258 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200259 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000260
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200261test_suite_asn1write$(EXEXT): test_suite_asn1write.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100262 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200263 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard36178ff2014-05-29 14:26:03 +0200264
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200265test_suite_base64$(EXEXT): test_suite_base64.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100266 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200267 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000268
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200269test_suite_blowfish$(EXEXT): test_suite_blowfish.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100270 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200271 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkera9379c02012-07-04 11:02:11 +0000272
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200273test_suite_camellia$(EXEXT): test_suite_camellia.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100274 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200275 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000276
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200277test_suite_ccm$(EXEXT): test_suite_ccm.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100278 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200279 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnarda6916fa2014-05-02 15:17:29 +0200280
Daniel King34b822c2016-05-15 17:28:08 -0300281test_suite_chacha20$(EXEXT): test_suite_chacha20.c $(DEP)
282 echo " CC $<"
283 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
284
Manuel Pégourié-Gonnarddca3a5d2018-05-07 10:43:27 +0200285test_suite_chachapoly$(EXEXT): test_suite_chachapoly.c $(DEP)
286 echo " CC $<"
287 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
288
Simon Butcherd812fa62016-10-05 14:13:31 +0100289test_suite_cmac$(EXEXT): test_suite_cmac.c $(DEP)
290 echo " CC $<"
291 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
292
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200293test_suite_cipher.aes$(EXEXT): test_suite_cipher.aes.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100294 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200295 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker46c17942011-07-13 14:54:54 +0000296
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200297test_suite_cipher.arc4$(EXEXT): test_suite_cipher.arc4.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100298 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200299 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard37e230c2013-08-28 13:50:42 +0200300
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200301test_suite_cipher.ccm$(EXEXT): test_suite_cipher.ccm.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100302 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200303 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard542eac52014-05-15 16:03:07 +0200304
Daniel Kingbd920622016-05-15 19:56:20 -0300305test_suite_cipher.chacha20$(EXEXT): test_suite_cipher.chacha20.c $(DEP)
306 echo " CC $<"
307 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
308
Manuel Pégourié-Gonnarddca3a5d2018-05-07 10:43:27 +0200309test_suite_cipher.chachapoly$(EXEXT): test_suite_cipher.chachapoly.c $(DEP)
310 echo " CC $<"
311 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
312
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200313test_suite_cipher.gcm$(EXEXT): test_suite_cipher.gcm.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100314 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200315 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard07f8fa52013-08-30 18:34:08 +0200316
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200317test_suite_cipher.blowfish$(EXEXT): test_suite_cipher.blowfish.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100318 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200319 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker6132d0a2012-07-04 17:10:40 +0000320
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200321test_suite_cipher.camellia$(EXEXT): test_suite_cipher.camellia.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100322 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200323 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker46c17942011-07-13 14:54:54 +0000324
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200325test_suite_cipher.des$(EXEXT): test_suite_cipher.des.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100326 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200327 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000328
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200329test_suite_cipher.null$(EXEXT): test_suite_cipher.null.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100330 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200331 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerfab5c822012-02-06 16:45:10 +0000332
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200333test_suite_cipher.padding$(EXEXT): test_suite_cipher.padding.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100334 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200335 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnardd5fdcaf2013-07-24 18:05:00 +0200336
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200337test_suite_ctr_drbg$(EXEXT): test_suite_ctr_drbg.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100338 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200339 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker8123e9d2011-01-06 15:37:30 +0000340
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200341test_suite_des$(EXEXT): test_suite_des.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100342 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200343 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000344
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200345test_suite_dhm$(EXEXT): test_suite_dhm.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100346 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200347 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000348
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200349test_suite_ecdh$(EXEXT): test_suite_ecdh.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100350 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200351 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerd589a0d2013-03-13 16:30:17 +0100352
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200353test_suite_ecdsa$(EXEXT): test_suite_ecdsa.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100354 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200355 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerd589a0d2013-03-13 16:30:17 +0100356
Manuel Pégourié-Gonnard4d8685b2015-08-05 15:44:42 +0200357test_suite_ecjpake$(EXEXT): test_suite_ecjpake.c $(DEP)
358 echo " CC $<"
359 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
360
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200361test_suite_ecp$(EXEXT): test_suite_ecp.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100362 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200363 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkera95919b2013-01-16 17:00:05 +0100364
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200365test_suite_entropy$(EXEXT): test_suite_entropy.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100366 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200367 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard2c25eb02014-05-30 10:38:18 +0200368
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200369test_suite_error$(EXEXT): test_suite_error.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100370 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200371 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker9d781402011-05-09 16:17:09 +0000372
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200373test_suite_gcm.aes128_de$(EXEXT): test_suite_gcm.aes128_de.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100374 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200375 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker89e80c92012-03-20 13:50:09 +0000376
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200377test_suite_gcm.aes192_de$(EXEXT): test_suite_gcm.aes192_de.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100378 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200379 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200380
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200381test_suite_gcm.aes256_de$(EXEXT): test_suite_gcm.aes256_de.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100382 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200383 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200384
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200385test_suite_gcm.aes128_en$(EXEXT): test_suite_gcm.aes128_en.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100386 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200387 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200388
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200389test_suite_gcm.aes192_en$(EXEXT): test_suite_gcm.aes192_en.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100390 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200391 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200392
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200393test_suite_gcm.aes256_en$(EXEXT): test_suite_gcm.aes256_en.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100394 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200395 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker89e80c92012-03-20 13:50:09 +0000396
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200397test_suite_gcm.camellia$(EXEXT): test_suite_gcm.camellia.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100398 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200399 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker9dcc3222011-03-08 14:16:06 +0000400
Thomas Fossati656864b2016-07-17 08:51:22 +0100401test_suite_hkdf$(EXEXT): test_suite_hkdf.c $(DEP)
402 echo " CC $<"
403 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
404
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200405test_suite_hmac_drbg.misc$(EXEXT): test_suite_hmac_drbg.misc.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100406 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200407 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard48bc3e82014-01-30 21:11:16 +0100408
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200409test_suite_hmac_drbg.no_reseed$(EXEXT): test_suite_hmac_drbg.no_reseed.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100410 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200411 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard6801f392014-01-30 17:22:14 +0100412
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200413test_suite_hmac_drbg.nopr$(EXEXT): test_suite_hmac_drbg.nopr.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100414 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200415 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard24600b72014-01-31 09:54:14 +0100416
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200417test_suite_hmac_drbg.pr$(EXEXT): test_suite_hmac_drbg.pr.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100418 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200419 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard62273b82014-01-31 10:16:57 +0100420
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200421test_suite_md$(EXEXT): test_suite_md.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100422 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200423 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker17373852011-01-06 14:20:01 +0000424
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200425test_suite_mdx$(EXEXT): test_suite_mdx.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100426 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200427 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000428
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200429test_suite_memory_buffer_alloc$(EXEXT): test_suite_memory_buffer_alloc.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100430 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200431 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard765bb312014-11-27 11:55:27 +0100432
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200433test_suite_mpi$(EXEXT): test_suite_mpi.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100434 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200435 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000436
Ron Eldor8dd03cd2018-07-15 09:37:28 +0300437test_suite_nist_kw$(EXEXT): test_suite_nist_kw.c $(DEP)
438 echo " CC $<"
439 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
440
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200441test_suite_pem$(EXEXT): test_suite_pem.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100442 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200443 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker16300582014-04-11 13:28:43 +0200444
Simon Butcherf8758b82016-04-12 11:31:00 +0100445test_suite_pkcs1_v15$(EXEXT): test_suite_pkcs1_v15.c $(DEP)
446 echo " CC $<"
447 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
448
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200449test_suite_pkcs1_v21$(EXEXT): test_suite_pkcs1_v21.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100450 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200451 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker9dcc3222011-03-08 14:16:06 +0000452
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200453test_suite_pkcs5$(EXEXT): test_suite_pkcs5.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100454 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200455 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerb0c19a42013-06-24 19:26:38 +0200456
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200457test_suite_pkparse$(EXEXT): test_suite_pkparse.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100458 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200459 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker1a7550a2013-09-15 13:01:22 +0200460
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200461test_suite_pkwrite$(EXEXT): test_suite_pkwrite.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100462 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200463 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerc7bb02b2013-09-15 14:54:56 +0200464
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200465test_suite_pk$(EXEXT): test_suite_pk.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100466 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200467 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker32925622013-10-28 17:32:48 +0100468
Daniel Kingadc32c02016-05-16 18:25:45 -0300469test_suite_poly1305$(EXEXT): test_suite_poly1305.c $(DEP)
470 echo " CC $<"
471 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
472
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200473test_suite_rsa$(EXEXT): test_suite_rsa.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100474 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200475 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000476
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200477test_suite_shax$(EXEXT): test_suite_shax.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100478 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200479 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000480
Manuel Pégourié-Gonnardd901d172015-02-16 18:37:53 +0000481test_suite_ssl$(EXEXT): test_suite_ssl.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100482 echo " CC $<"
Manuel Pégourié-Gonnard7f7aebc2015-03-13 17:15:49 +0000483 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard4956fd72014-09-24 11:13:44 +0200484
Paul Bakker50157ff2016-07-19 14:57:00 +0100485test_suite_timing$(EXEXT): test_suite_timing.c $(DEP)
486 echo " CC $<"
487 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
488
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200489test_suite_x509parse$(EXEXT): test_suite_x509parse.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100490 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200491 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000492
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200493test_suite_x509write$(EXEXT): test_suite_x509write.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100494 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200495 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker6d620502012-02-16 14:09:13 +0000496
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200497test_suite_xtea$(EXEXT): test_suite_xtea.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100498 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200499 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000500
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200501test_suite_debug$(EXEXT): test_suite_debug.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100502 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200503 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker7d7f4f42010-02-18 18:26:04 +0000504
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200505test_suite_version$(EXEXT): test_suite_version.c $(DEP)
Manuel Pégourié-Gonnard78ec2b02015-07-08 22:12:06 +0100506 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200507 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker3ac1b2d2010-06-18 22:47:29 +0000508
Markku-Juhani O. Saarinen8df81e02017-12-01 14:26:40 +0000509test_suite_aria$(EXEXT): test_suite_aria.c $(DEP)
510 echo " CC $<"
511 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
512
Paul Bakker0049c2f2009-07-11 19:15:43 +0000513clean:
Paul Bakker62f88dc2012-05-10 21:26:28 +0000514ifndef WINDOWS
Manuel Pégourié-Gonnardea9556a2015-06-25 14:18:20 +0200515 rm -f $(APPS) *.c
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200516else
Paul Bakker62f88dc2012-05-10 21:26:28 +0000517 del /Q /F *.c *.exe
518endif
Paul Bakker0049c2f2009-07-11 19:15:43 +0000519
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200520check: $(APPS)
Manuel Pégourié-Gonnard85113842015-07-08 21:20:03 +0100521 perl scripts/run-test-suites.pl
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200522
523test: check