blob: dee7fdbda402a769aee9dac4aa28bd98b48e2786 [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
Paul Bakker674e0b02014-03-26 13:26:52 +010015ifndef SHARED
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020016DEP=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a
Paul Bakker674e0b02014-03-26 13:26:52 +010017else
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020018DEP=../library/libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT)
Paul Bakker674e0b02014-03-26 13:26:52 +010019endif
20
Paul Bakkerc7ffd362012-04-05 12:08:29 +000021ifdef DEBUG
Alon Bar-Levf7a9f302015-02-18 17:55:05 +020022LOCAL_CFLAGS += -g3
Paul Bakkerc7ffd362012-04-05 12:08:29 +000023endif
24
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020025# if we're running on Windows, build for Windows
Paul Bakkercd5b5292012-05-10 20:49:10 +000026ifdef WINDOWS
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020027WINDOWS_BUILD=1
28endif
29
30ifdef WINDOWS_BUILD
31DLEXT=dll
32EXEXT=.exe
Alon Bar-Levada41052015-02-18 17:47:52 +020033LOCAL_LDFLAGS += -lws2_32
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020034ifdef SHARED
35SHARED_SUFFIX=.$(DLEXT)
36endif
Manuel Pégourié-Gonnard8d4a6132015-06-24 12:16:20 +020037else
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020038DLEXT=so
Manuel Pégourié-Gonnard8d4a6132015-06-24 12:16:20 +020039EXEXT=
40SHARED_SUFFIX=
Paul Bakkercd5b5292012-05-10 20:49:10 +000041endif
42
Paul Bakker2770fbd2012-07-03 13:30:23 +000043# Zlib shared library extensions:
44ifdef ZLIB
Alon Bar-Levada41052015-02-18 17:47:52 +020045LOCAL_LDFLAGS += -lz
Paul Bakker2770fbd2012-07-03 13:30:23 +000046endif
47
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020048APPS = test_suite_aes.ecb$(EXEXT) test_suite_aes.cbc$(EXEXT) \
49 test_suite_aes.cfb$(EXEXT) test_suite_aes.rest$(EXEXT) \
50 test_suite_arc4$(EXEXT) test_suite_asn1write$(EXEXT) \
51 test_suite_base64$(EXEXT) test_suite_blowfish$(EXEXT) \
52 test_suite_camellia$(EXEXT) test_suite_ccm$(EXEXT) \
53 test_suite_cipher.aes$(EXEXT) \
54 test_suite_cipher.arc4$(EXEXT) test_suite_cipher.ccm$(EXEXT) \
55 test_suite_cipher.gcm$(EXEXT) \
56 test_suite_cipher.blowfish$(EXEXT) \
57 test_suite_cipher.camellia$(EXEXT) \
58 test_suite_cipher.des$(EXEXT) test_suite_cipher.null$(EXEXT) \
59 test_suite_cipher.padding$(EXEXT) \
60 test_suite_ctr_drbg$(EXEXT) test_suite_debug$(EXEXT) \
61 test_suite_des$(EXEXT) test_suite_dhm$(EXEXT) \
62 test_suite_ecdh$(EXEXT) test_suite_ecdsa$(EXEXT) \
63 test_suite_ecp$(EXEXT) \
64 test_suite_error$(EXEXT) test_suite_entropy$(EXEXT) \
65 test_suite_gcm.aes128_de$(EXEXT) \
66 test_suite_gcm.aes192_de$(EXEXT) \
67 test_suite_gcm.aes256_de$(EXEXT) \
68 test_suite_gcm.aes128_en$(EXEXT) \
69 test_suite_gcm.aes192_en$(EXEXT) \
70 test_suite_gcm.aes256_en$(EXEXT) \
Manuel Pégourié-Gonnardec4a3392015-03-24 16:59:49 +010071 test_suite_gcm.camellia$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020072 test_suite_hmac_drbg.misc$(EXEXT) \
73 test_suite_hmac_drbg.no_reseed$(EXEXT) \
74 test_suite_hmac_drbg.nopr$(EXEXT) \
75 test_suite_hmac_drbg.pr$(EXEXT) \
76 test_suite_md$(EXEXT) test_suite_mdx$(EXEXT) \
77 test_suite_memory_buffer_alloc$(EXEXT) \
Manuel Pégourié-Gonnardb6b16bd2015-03-11 11:20:43 +000078 test_suite_mpi$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020079 test_suite_pem$(EXEXT) \
80 test_suite_pkcs1_v21$(EXEXT) test_suite_pkcs5$(EXEXT) \
81 test_suite_pkparse$(EXEXT) test_suite_pkwrite$(EXEXT) \
82 test_suite_pk$(EXEXT) \
83 test_suite_rsa$(EXEXT) test_suite_shax$(EXEXT) \
Manuel Pégourié-Gonnardd901d172015-02-16 18:37:53 +000084 test_suite_ssl$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020085 test_suite_x509parse$(EXEXT) test_suite_x509write$(EXEXT) \
86 test_suite_xtea$(EXEXT) test_suite_version$(EXEXT)
Paul Bakker0049c2f2009-07-11 19:15:43 +000087
88.SILENT:
89
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020090.PHONY: all check test clean
91
Paul Bakker0049c2f2009-07-11 19:15:43 +000092all: $(APPS)
93
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020094$(DEP):
Manuel Pégourié-Gonnardfc367082015-06-26 16:50:24 +020095 $(MAKE) -C ../library
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +020096
Paul Bakker19343182013-08-16 13:31:10 +020097test_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é-Gonnard6dc26512015-06-25 10:48:24 +020098 echo " Gen $@"
Paul Bakker286bf3c2013-04-08 18:09:51 +020099 scripts/generate_code.pl suites test_suite_aes test_suite_aes.ecb
100
Paul Bakker19343182013-08-16 13:31:10 +0200101test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200102 echo " Gen $@"
Paul Bakker286bf3c2013-04-08 18:09:51 +0200103 scripts/generate_code.pl suites test_suite_aes test_suite_aes.cbc
104
Paul Bakker19343182013-08-16 13:31:10 +0200105test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200106 echo " Gen $@"
Paul Bakker286bf3c2013-04-08 18:09:51 +0200107 scripts/generate_code.pl suites test_suite_aes test_suite_aes.cfb
108
Paul Bakker19343182013-08-16 13:31:10 +0200109test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200110 echo " Gen $@"
Paul Bakker286bf3c2013-04-08 18:09:51 +0200111 scripts/generate_code.pl suites test_suite_aes test_suite_aes.rest
112
Paul Bakker19343182013-08-16 13:31:10 +0200113test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200114 echo " Gen $@"
Paul Bakker46c17942011-07-13 14:54:54 +0000115 scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.aes
116
Manuel Pégourié-Gonnard37e230c2013-08-28 13:50:42 +0200117test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200118 echo " Gen $@"
Manuel Pégourié-Gonnard37e230c2013-08-28 13:50:42 +0200119 scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.arc4
120
Manuel Pégourié-Gonnard542eac52014-05-15 16:03:07 +0200121test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200122 echo " Gen $@"
Manuel Pégourié-Gonnard542eac52014-05-15 16:03:07 +0200123 scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.ccm
124
Manuel Pégourié-Gonnard07f8fa52013-08-30 18:34:08 +0200125test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200126 echo " Gen $@"
Manuel Pégourié-Gonnard07f8fa52013-08-30 18:34:08 +0200127 scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.gcm
128
Paul Bakker19343182013-08-16 13:31:10 +0200129test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200130 echo " Gen $@"
Paul Bakker6132d0a2012-07-04 17:10:40 +0000131 scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.blowfish
132
Paul Bakker19343182013-08-16 13:31:10 +0200133test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200134 echo " Gen $@"
Paul Bakker46c17942011-07-13 14:54:54 +0000135 scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.camellia
136
Paul Bakker19343182013-08-16 13:31:10 +0200137test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200138 echo " Gen $@"
Paul Bakker46c17942011-07-13 14:54:54 +0000139 scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.des
140
Paul Bakker19343182013-08-16 13:31:10 +0200141test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200142 echo " Gen $@"
Paul Bakkerfab5c822012-02-06 16:45:10 +0000143 scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.null
144
Paul Bakker19343182013-08-16 13:31:10 +0200145test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200146 echo " Gen $@"
Manuel Pégourié-Gonnardd5fdcaf2013-07-24 18:05:00 +0200147 scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.padding
148
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200149test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200150 echo " Gen $@"
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200151 scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_de
Paul Bakker89e80c92012-03-20 13:50:09 +0000152
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200153test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200154 echo " Gen $@"
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200155 scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_de
Paul Bakker286bf3c2013-04-08 18:09:51 +0200156
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200157test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200158 echo " Gen $@"
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200159 scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_de
Paul Bakker286bf3c2013-04-08 18:09:51 +0200160
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200161test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200162 echo " Gen $@"
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200163 scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_en
Paul Bakker286bf3c2013-04-08 18:09:51 +0200164
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200165test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200166 echo " Gen $@"
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200167 scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_en
Paul Bakker286bf3c2013-04-08 18:09:51 +0200168
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200169test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200170 echo " Gen $@"
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200171 scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_en
Paul Bakker89e80c92012-03-20 13:50:09 +0000172
Manuel Pégourié-Gonnard13e0d442013-10-24 12:59:00 +0200173test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200174 echo " Gen $@"
Manuel Pégourié-Gonnard13e0d442013-10-24 12:59:00 +0200175 scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.camellia
Paul Bakker0049c2f2009-07-11 19:15:43 +0000176
Manuel Pégourié-Gonnard48bc3e82014-01-30 21:11:16 +0100177test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200178 echo " Gen $@"
Manuel Pégourié-Gonnard48bc3e82014-01-30 21:11:16 +0100179 scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.misc
180
Manuel Pégourié-Gonnard6801f392014-01-30 17:22:14 +0100181test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200182 echo " Gen $@"
Manuel Pégourié-Gonnard6801f392014-01-30 17:22:14 +0100183 scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.no_reseed
184
Manuel Pégourié-Gonnard24600b72014-01-31 09:54:14 +0100185test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200186 echo " Gen $@"
Manuel Pégourié-Gonnard24600b72014-01-31 09:54:14 +0100187 scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.nopr
188
Manuel Pégourié-Gonnard62273b82014-01-31 10:16:57 +0100189test_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é-Gonnard6dc26512015-06-25 10:48:24 +0200190 echo " Gen $@"
Manuel Pégourié-Gonnard62273b82014-01-31 10:16:57 +0100191 scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.pr
192
Paul Bakker19343182013-08-16 13:31:10 +0200193%.c : suites/%.function suites/%.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Manuel Pégourié-Gonnard6dc26512015-06-25 10:48:24 +0200194 echo " Gen $@"
Paul Bakker46c17942011-07-13 14:54:54 +0000195 scripts/generate_code.pl suites $* $*
Paul Bakker0049c2f2009-07-11 19:15:43 +0000196
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200197test_suite_aes.ecb$(EXEXT): test_suite_aes.ecb.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200198 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200199 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200200
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200201test_suite_aes.cbc$(EXEXT): test_suite_aes.cbc.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200202 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200203 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200204
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200205test_suite_aes.cfb$(EXEXT): test_suite_aes.cfb.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200206 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200207 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200208
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200209test_suite_aes.rest$(EXEXT): test_suite_aes.rest.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200210 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200211 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000212
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200213test_suite_arc4$(EXEXT): test_suite_arc4.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200214 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200215 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000216
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200217test_suite_asn1write$(EXEXT): test_suite_asn1write.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200218 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200219 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard36178ff2014-05-29 14:26:03 +0200220
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200221test_suite_base64$(EXEXT): test_suite_base64.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200222 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200223 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000224
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200225test_suite_blowfish$(EXEXT): test_suite_blowfish.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200226 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200227 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkera9379c02012-07-04 11:02:11 +0000228
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200229test_suite_camellia$(EXEXT): test_suite_camellia.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200230 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200231 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000232
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200233test_suite_ccm$(EXEXT): test_suite_ccm.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200234 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200235 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnarda6916fa2014-05-02 15:17:29 +0200236
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200237test_suite_cipher.aes$(EXEXT): test_suite_cipher.aes.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200238 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200239 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker46c17942011-07-13 14:54:54 +0000240
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200241test_suite_cipher.arc4$(EXEXT): test_suite_cipher.arc4.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200242 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200243 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard37e230c2013-08-28 13:50:42 +0200244
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200245test_suite_cipher.ccm$(EXEXT): test_suite_cipher.ccm.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200246 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200247 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard542eac52014-05-15 16:03:07 +0200248
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200249test_suite_cipher.gcm$(EXEXT): test_suite_cipher.gcm.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200250 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200251 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard07f8fa52013-08-30 18:34:08 +0200252
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200253test_suite_cipher.blowfish$(EXEXT): test_suite_cipher.blowfish.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200254 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200255 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker6132d0a2012-07-04 17:10:40 +0000256
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200257test_suite_cipher.camellia$(EXEXT): test_suite_cipher.camellia.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200258 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200259 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker46c17942011-07-13 14:54:54 +0000260
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200261test_suite_cipher.des$(EXEXT): test_suite_cipher.des.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200262 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200263 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000264
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200265test_suite_cipher.null$(EXEXT): test_suite_cipher.null.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200266 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200267 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerfab5c822012-02-06 16:45:10 +0000268
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200269test_suite_cipher.padding$(EXEXT): test_suite_cipher.padding.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200270 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200271 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnardd5fdcaf2013-07-24 18:05:00 +0200272
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200273test_suite_ctr_drbg$(EXEXT): test_suite_ctr_drbg.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200274 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200275 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker8123e9d2011-01-06 15:37:30 +0000276
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200277test_suite_des$(EXEXT): test_suite_des.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200278 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200279 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000280
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200281test_suite_dhm$(EXEXT): test_suite_dhm.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200282 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200283 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000284
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200285test_suite_ecdh$(EXEXT): test_suite_ecdh.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200286 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200287 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerd589a0d2013-03-13 16:30:17 +0100288
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200289test_suite_ecdsa$(EXEXT): test_suite_ecdsa.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200290 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200291 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerd589a0d2013-03-13 16:30:17 +0100292
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200293test_suite_ecp$(EXEXT): test_suite_ecp.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200294 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200295 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkera95919b2013-01-16 17:00:05 +0100296
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200297test_suite_entropy$(EXEXT): test_suite_entropy.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200298 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200299 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard2c25eb02014-05-30 10:38:18 +0200300
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200301test_suite_error$(EXEXT): test_suite_error.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200302 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200303 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker9d781402011-05-09 16:17:09 +0000304
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200305test_suite_gcm.aes128_de$(EXEXT): test_suite_gcm.aes128_de.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200306 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200307 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker89e80c92012-03-20 13:50:09 +0000308
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200309test_suite_gcm.aes192_de$(EXEXT): test_suite_gcm.aes192_de.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200310 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200311 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200312
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200313test_suite_gcm.aes256_de$(EXEXT): test_suite_gcm.aes256_de.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200314 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200315 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200316
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200317test_suite_gcm.aes128_en$(EXEXT): test_suite_gcm.aes128_en.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200318 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200319 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200320
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200321test_suite_gcm.aes192_en$(EXEXT): test_suite_gcm.aes192_en.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200322 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200323 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200324
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200325test_suite_gcm.aes256_en$(EXEXT): test_suite_gcm.aes256_en.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200326 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200327 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker89e80c92012-03-20 13:50:09 +0000328
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200329test_suite_gcm.camellia$(EXEXT): test_suite_gcm.camellia.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200330 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200331 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker9dcc3222011-03-08 14:16:06 +0000332
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200333test_suite_hmac_drbg.misc$(EXEXT): test_suite_hmac_drbg.misc.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200334 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200335 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard48bc3e82014-01-30 21:11:16 +0100336
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200337test_suite_hmac_drbg.no_reseed$(EXEXT): test_suite_hmac_drbg.no_reseed.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200338 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200339 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard6801f392014-01-30 17:22:14 +0100340
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200341test_suite_hmac_drbg.nopr$(EXEXT): test_suite_hmac_drbg.nopr.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200342 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200343 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard24600b72014-01-31 09:54:14 +0100344
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200345test_suite_hmac_drbg.pr$(EXEXT): test_suite_hmac_drbg.pr.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200346 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200347 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard62273b82014-01-31 10:16:57 +0100348
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200349test_suite_md$(EXEXT): test_suite_md.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200350 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200351 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker17373852011-01-06 14:20:01 +0000352
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200353test_suite_mdx$(EXEXT): test_suite_mdx.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200354 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200355 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000356
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200357test_suite_memory_buffer_alloc$(EXEXT): test_suite_memory_buffer_alloc.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200358 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200359 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard765bb312014-11-27 11:55:27 +0100360
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200361test_suite_mpi$(EXEXT): test_suite_mpi.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200362 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200363 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000364
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200365test_suite_pbkdf2$(EXEXT): test_suite_pbkdf2.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200366 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200367 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerf518b162012-08-23 13:03:18 +0000368
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200369test_suite_pem$(EXEXT): test_suite_pem.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200370 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200371 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker16300582014-04-11 13:28:43 +0200372
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200373test_suite_pkcs1_v21$(EXEXT): test_suite_pkcs1_v21.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200374 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200375 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker9dcc3222011-03-08 14:16:06 +0000376
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200377test_suite_pkcs5$(EXEXT): test_suite_pkcs5.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200378 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200379 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerb0c19a42013-06-24 19:26:38 +0200380
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200381test_suite_pkparse$(EXEXT): test_suite_pkparse.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200382 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200383 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker1a7550a2013-09-15 13:01:22 +0200384
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200385test_suite_pkwrite$(EXEXT): test_suite_pkwrite.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200386 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200387 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerc7bb02b2013-09-15 14:54:56 +0200388
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200389test_suite_pk$(EXEXT): test_suite_pk.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200390 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200391 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker32925622013-10-28 17:32:48 +0100392
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200393test_suite_rsa$(EXEXT): test_suite_rsa.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200394 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200395 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000396
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200397test_suite_shax$(EXEXT): test_suite_shax.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200398 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200399 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000400
Manuel Pégourié-Gonnardd901d172015-02-16 18:37:53 +0000401test_suite_ssl$(EXEXT): test_suite_ssl.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200402 echo " CC $<"
Manuel Pégourié-Gonnard7f7aebc2015-03-13 17:15:49 +0000403 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard4956fd72014-09-24 11:13:44 +0200404
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200405test_suite_x509parse$(EXEXT): test_suite_x509parse.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200406 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200407 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000408
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200409test_suite_x509write$(EXEXT): test_suite_x509write.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200410 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200411 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker6d620502012-02-16 14:09:13 +0000412
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200413test_suite_xtea$(EXEXT): test_suite_xtea.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200414 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200415 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000416
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200417test_suite_debug$(EXEXT): test_suite_debug.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200418 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200419 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker7d7f4f42010-02-18 18:26:04 +0000420
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200421test_suite_version$(EXEXT): test_suite_version.c $(DEP)
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200422 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200423 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker3ac1b2d2010-06-18 22:47:29 +0000424
Paul Bakker0049c2f2009-07-11 19:15:43 +0000425clean:
Paul Bakker62f88dc2012-05-10 21:26:28 +0000426ifndef WINDOWS
Manuel Pégourié-Gonnardea9556a2015-06-25 14:18:20 +0200427 rm -f $(APPS) *.c
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200428else
Paul Bakker62f88dc2012-05-10 21:26:28 +0000429 del /Q /F *.c *.exe
430endif
Paul Bakker0049c2f2009-07-11 19:15:43 +0000431
Paul Bakker62f88dc2012-05-10 21:26:28 +0000432ifndef WINDOWS
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200433check: $(APPS)
Paul Bakker674e0b02014-03-26 13:26:52 +0100434 echo "Running checks (Success if all tests PASSED)"
Paul Bakkerd14cd352012-05-08 15:39:50 +0000435 RETURN=0; \
Paul Bakkerd947d762009-07-28 20:16:47 +0000436 for i in $(APPS); \
437 do \
438 echo " - $${i}"; \
Manuel Pégourié-Gonnardc84d0e12015-06-25 10:44:31 +0200439 RESULT=`LD_LIBRARY_PATH=../library ./$${i} | grep -v 'PASS$$' | grep -v -- '----' | grep -v '^$$'`; \
Rich Evansb1c846e2015-02-02 12:15:44 +0000440 PASSED=`echo $$RESULT |grep PASSED`; \
Paul Bakkerd14cd352012-05-08 15:39:50 +0000441 echo " $$RESULT"; \
Manuel Pégourié-Gonnard70b8b372015-04-02 09:51:03 +0100442 if [ "x$$PASSED" = "x" ]; \
Paul Bakkerd14cd352012-05-08 15:39:50 +0000443 then \
444 echo "**** Failed ***************"; \
445 RETURN=1; \
446 fi; \
Paul Bakkerd947d762009-07-28 20:16:47 +0000447 echo ""; \
Paul Bakkerd14cd352012-05-08 15:39:50 +0000448 done; \
449 if [ "$$RETURN" -eq 1 ]; then exit 1; fi
Manuel Pégourié-Gonnard5c59a4f2015-06-24 13:06:24 +0200450
451test: check
Paul Bakker62f88dc2012-05-10 21:26:28 +0000452endif