blob: c4ee35d3108e96e51081451b3ff1452f2e7ec607 [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 ?=
Alon Bar-Levf7a9f302015-02-18 17:55:05 +02008
9LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64
Alon Bar-Levada41052015-02-18 17:47:52 +020010LOCAL_LDFLAGS = -L../library -lmbedtls$(SHARED_SUFFIX)
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020011DLEXT=so
Paul Bakker0049c2f2009-07-11 19:15:43 +000012
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +010013PERL ?= perl
14
Paul Bakker674e0b02014-03-26 13:26:52 +010015ifndef SHARED
Manuel Pégourié-Gonnardc26a0922015-01-23 12:51:33 +000016DEP=../library/libmbedtls.a
Paul Bakker674e0b02014-03-26 13:26:52 +010017CHECK_PRELOAD=
18else
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020019DEP=../library/libmbedtls.$(DLEXT)
20CHECK_PRELOAD= LD_PRELOAD=../library/libmbedtls.$(DLEXT)
Paul Bakker674e0b02014-03-26 13:26:52 +010021endif
22
Paul Bakkerc7ffd362012-04-05 12:08:29 +000023ifdef DEBUG
Alon Bar-Levf7a9f302015-02-18 17:55:05 +020024LOCAL_CFLAGS += -g3
Paul Bakkerc7ffd362012-04-05 12:08:29 +000025endif
26
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020027#
28# if we running on Windows build
29# for Windows
30#
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
Paul Bakkercd5b5292012-05-10 20:49:10 +000042endif
43
Paul Bakker2770fbd2012-07-03 13:30:23 +000044# Zlib shared library extensions:
45ifdef ZLIB
Alon Bar-Levada41052015-02-18 17:47:52 +020046LOCAL_LDFLAGS += -lz
Paul Bakker2770fbd2012-07-03 13:30:23 +000047endif
48
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020049APPS = test_suite_aes.ecb$(EXEXT) test_suite_aes.cbc$(EXEXT) \
50 test_suite_aes.cfb$(EXEXT) test_suite_aes.rest$(EXEXT) \
51 test_suite_arc4$(EXEXT) test_suite_asn1write$(EXEXT) \
52 test_suite_base64$(EXEXT) test_suite_blowfish$(EXEXT) \
53 test_suite_camellia$(EXEXT) test_suite_ccm$(EXEXT) \
54 test_suite_cipher.aes$(EXEXT) \
55 test_suite_cipher.arc4$(EXEXT) test_suite_cipher.ccm$(EXEXT) \
56 test_suite_cipher.gcm$(EXEXT) \
57 test_suite_cipher.blowfish$(EXEXT) \
58 test_suite_cipher.camellia$(EXEXT) \
59 test_suite_cipher.des$(EXEXT) test_suite_cipher.null$(EXEXT) \
60 test_suite_cipher.padding$(EXEXT) \
61 test_suite_ctr_drbg$(EXEXT) test_suite_debug$(EXEXT) \
62 test_suite_des$(EXEXT) test_suite_dhm$(EXEXT) \
63 test_suite_ecdh$(EXEXT) test_suite_ecdsa$(EXEXT) \
64 test_suite_ecp$(EXEXT) \
65 test_suite_error$(EXEXT) test_suite_entropy$(EXEXT) \
66 test_suite_gcm.aes128_de$(EXEXT) \
67 test_suite_gcm.aes192_de$(EXEXT) \
68 test_suite_gcm.aes256_de$(EXEXT) \
69 test_suite_gcm.aes128_en$(EXEXT) \
70 test_suite_gcm.aes192_en$(EXEXT) \
71 test_suite_gcm.aes256_en$(EXEXT) \
72 test_suite_gcm.camellia$(EXEXT) test_suite_hmac_shax$(EXEXT) \
73 test_suite_hmac_drbg.misc$(EXEXT) \
74 test_suite_hmac_drbg.no_reseed$(EXEXT) \
75 test_suite_hmac_drbg.nopr$(EXEXT) \
76 test_suite_hmac_drbg.pr$(EXEXT) \
77 test_suite_md$(EXEXT) test_suite_mdx$(EXEXT) \
78 test_suite_memory_buffer_alloc$(EXEXT) \
79 test_suite_mpi$(EXEXT) test_suite_pbkdf2$(EXEXT) \
Simon Butcher6301f442016-04-10 00:03:16 +010080 test_suite_pem$(EXEXT) test_suite_pkcs1_v15$(EXEXT) \
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +020081 test_suite_pkcs1_v21$(EXEXT) test_suite_pkcs5$(EXEXT) \
82 test_suite_pkparse$(EXEXT) test_suite_pkwrite$(EXEXT) \
83 test_suite_pk$(EXEXT) \
84 test_suite_rsa$(EXEXT) test_suite_shax$(EXEXT) \
85 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
90all: $(APPS)
91
Paul Bakker19343182013-08-16 13:31:10 +020092test_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
Paul Bakker286bf3c2013-04-08 18:09:51 +020093 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +010094 $(PERL) scripts/generate_code.pl suites test_suite_aes test_suite_aes.ecb
Paul Bakker286bf3c2013-04-08 18:09:51 +020095
Paul Bakker19343182013-08-16 13:31:10 +020096test_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
Paul Bakker286bf3c2013-04-08 18:09:51 +020097 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +010098 $(PERL) scripts/generate_code.pl suites test_suite_aes test_suite_aes.cbc
Paul Bakker286bf3c2013-04-08 18:09:51 +020099
Paul Bakker19343182013-08-16 13:31:10 +0200100test_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
Paul Bakker286bf3c2013-04-08 18:09:51 +0200101 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100102 $(PERL) scripts/generate_code.pl suites test_suite_aes test_suite_aes.cfb
Paul Bakker286bf3c2013-04-08 18:09:51 +0200103
Paul Bakker19343182013-08-16 13:31:10 +0200104test_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
Paul Bakker286bf3c2013-04-08 18:09:51 +0200105 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100106 $(PERL) scripts/generate_code.pl suites test_suite_aes test_suite_aes.rest
Paul Bakker286bf3c2013-04-08 18:09:51 +0200107
Paul Bakker19343182013-08-16 13:31:10 +0200108test_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
Paul Bakker46c17942011-07-13 14:54:54 +0000109 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100110 $(PERL) scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.aes
Paul Bakker46c17942011-07-13 14:54:54 +0000111
Manuel Pégourié-Gonnard37e230c2013-08-28 13:50:42 +0200112test_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
113 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100114 $(PERL) scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.arc4
Manuel Pégourié-Gonnard37e230c2013-08-28 13:50:42 +0200115
Manuel Pégourié-Gonnard542eac52014-05-15 16:03:07 +0200116test_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
117 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100118 $(PERL) scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.ccm
Manuel Pégourié-Gonnard542eac52014-05-15 16:03:07 +0200119
Manuel Pégourié-Gonnard07f8fa52013-08-30 18:34:08 +0200120test_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
121 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100122 $(PERL) scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.gcm
Manuel Pégourié-Gonnard07f8fa52013-08-30 18:34:08 +0200123
Paul Bakker19343182013-08-16 13:31:10 +0200124test_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
Paul Bakker6132d0a2012-07-04 17:10:40 +0000125 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100126 $(PERL) scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.blowfish
Paul Bakker6132d0a2012-07-04 17:10:40 +0000127
Paul Bakker19343182013-08-16 13:31:10 +0200128test_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
Paul Bakker46c17942011-07-13 14:54:54 +0000129 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100130 $(PERL) scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.camellia
Paul Bakker46c17942011-07-13 14:54:54 +0000131
Paul Bakker19343182013-08-16 13:31:10 +0200132test_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
Paul Bakker46c17942011-07-13 14:54:54 +0000133 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100134 $(PERL) scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.des
Paul Bakker46c17942011-07-13 14:54:54 +0000135
Paul Bakker19343182013-08-16 13:31:10 +0200136test_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
Paul Bakkerfab5c822012-02-06 16:45:10 +0000137 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100138 $(PERL) scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.null
Paul Bakkerfab5c822012-02-06 16:45:10 +0000139
Paul Bakker19343182013-08-16 13:31:10 +0200140test_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é-Gonnardd5fdcaf2013-07-24 18:05:00 +0200141 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100142 $(PERL) scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.padding
Manuel Pégourié-Gonnardd5fdcaf2013-07-24 18:05:00 +0200143
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200144test_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
Paul Bakker89e80c92012-03-20 13:50:09 +0000145 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100146 $(PERL) scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_de
Paul Bakker89e80c92012-03-20 13:50:09 +0000147
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200148test_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
Paul Bakker89e80c92012-03-20 13:50:09 +0000149 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100150 $(PERL) scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_de
Paul Bakker286bf3c2013-04-08 18:09:51 +0200151
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200152test_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
Paul Bakker286bf3c2013-04-08 18:09:51 +0200153 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100154 $(PERL) scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_de
Paul Bakker286bf3c2013-04-08 18:09:51 +0200155
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200156test_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
Paul Bakker286bf3c2013-04-08 18:09:51 +0200157 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100158 $(PERL) scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_en
Paul Bakker286bf3c2013-04-08 18:09:51 +0200159
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200160test_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
Paul Bakker286bf3c2013-04-08 18:09:51 +0200161 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100162 $(PERL) scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_en
Paul Bakker286bf3c2013-04-08 18:09:51 +0200163
Manuel Pégourié-Gonnard94dd5b42013-10-24 11:57:47 +0200164test_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
Paul Bakker286bf3c2013-04-08 18:09:51 +0200165 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100166 $(PERL) scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_en
Paul Bakker89e80c92012-03-20 13:50:09 +0000167
Manuel Pégourié-Gonnard13e0d442013-10-24 12:59:00 +0200168test_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
169 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100170 $(PERL) scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.camellia
Paul Bakker0049c2f2009-07-11 19:15:43 +0000171
Manuel Pégourié-Gonnard48bc3e82014-01-30 21:11:16 +0100172test_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
173 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100174 $(PERL) scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.misc
Manuel Pégourié-Gonnard48bc3e82014-01-30 21:11:16 +0100175
Manuel Pégourié-Gonnard6801f392014-01-30 17:22:14 +0100176test_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
177 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100178 $(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 +0100179
Manuel Pégourié-Gonnard24600b72014-01-31 09:54:14 +0100180test_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
181 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100182 $(PERL) scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.nopr
Manuel Pégourié-Gonnard24600b72014-01-31 09:54:14 +0100183
Manuel Pégourié-Gonnard62273b82014-01-31 10:16:57 +0100184test_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
185 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100186 $(PERL) scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.pr
Manuel Pégourié-Gonnard62273b82014-01-31 10:16:57 +0100187
Paul Bakker19343182013-08-16 13:31:10 +0200188%.c : suites/%.function suites/%.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
Paul Bakker0049c2f2009-07-11 19:15:43 +0000189 echo " Generate $@"
Andres Amaya Garcia97818fb2017-07-06 13:09:26 +0100190 $(PERL) scripts/generate_code.pl suites $* $*
Paul Bakker0049c2f2009-07-11 19:15:43 +0000191
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200192test_suite_aes.ecb$(EXEXT): test_suite_aes.ecb.c $(DEP)
193 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200194 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200195
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200196test_suite_aes.cbc$(EXEXT): test_suite_aes.cbc.c $(DEP)
197 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200198 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200199
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200200test_suite_aes.cfb$(EXEXT): test_suite_aes.cfb.c $(DEP)
201 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200202 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200203
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200204test_suite_aes.rest$(EXEXT): test_suite_aes.rest.c $(DEP)
205 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200206 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000207
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200208test_suite_arc4$(EXEXT): test_suite_arc4.c $(DEP)
209 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200210 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000211
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200212test_suite_asn1write$(EXEXT): test_suite_asn1write.c $(DEP)
213 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200214 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard36178ff2014-05-29 14:26:03 +0200215
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200216test_suite_base64$(EXEXT): test_suite_base64.c $(DEP)
217 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200218 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000219
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200220test_suite_blowfish$(EXEXT): test_suite_blowfish.c $(DEP)
221 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200222 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkera9379c02012-07-04 11:02:11 +0000223
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200224test_suite_camellia$(EXEXT): test_suite_camellia.c $(DEP)
225 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200226 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000227
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200228test_suite_ccm$(EXEXT): test_suite_ccm.c $(DEP)
229 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200230 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnarda6916fa2014-05-02 15:17:29 +0200231
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200232test_suite_cipher.aes$(EXEXT): test_suite_cipher.aes.c $(DEP)
233 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200234 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker46c17942011-07-13 14:54:54 +0000235
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200236test_suite_cipher.arc4$(EXEXT): test_suite_cipher.arc4.c $(DEP)
237 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200238 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard37e230c2013-08-28 13:50:42 +0200239
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200240test_suite_cipher.ccm$(EXEXT): test_suite_cipher.ccm.c $(DEP)
241 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200242 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard542eac52014-05-15 16:03:07 +0200243
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200244test_suite_cipher.gcm$(EXEXT): test_suite_cipher.gcm.c $(DEP)
245 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200246 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard07f8fa52013-08-30 18:34:08 +0200247
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200248test_suite_cipher.blowfish$(EXEXT): test_suite_cipher.blowfish.c $(DEP)
249 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200250 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker6132d0a2012-07-04 17:10:40 +0000251
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200252test_suite_cipher.camellia$(EXEXT): test_suite_cipher.camellia.c $(DEP)
253 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200254 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker46c17942011-07-13 14:54:54 +0000255
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200256test_suite_cipher.des$(EXEXT): test_suite_cipher.des.c $(DEP)
257 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200258 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0e04d0e2011-11-27 14:46:59 +0000259
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200260test_suite_cipher.null$(EXEXT): test_suite_cipher.null.c $(DEP)
261 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200262 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerfab5c822012-02-06 16:45:10 +0000263
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200264test_suite_cipher.padding$(EXEXT): test_suite_cipher.padding.c $(DEP)
265 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200266 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnardd5fdcaf2013-07-24 18:05:00 +0200267
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200268test_suite_ctr_drbg$(EXEXT): test_suite_ctr_drbg.c $(DEP)
269 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200270 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker8123e9d2011-01-06 15:37:30 +0000271
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200272test_suite_des$(EXEXT): test_suite_des.c $(DEP)
273 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200274 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000275
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200276test_suite_dhm$(EXEXT): test_suite_dhm.c $(DEP)
277 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200278 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000279
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200280test_suite_ecdh$(EXEXT): test_suite_ecdh.c $(DEP)
281 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200282 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerd589a0d2013-03-13 16:30:17 +0100283
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200284test_suite_ecdsa$(EXEXT): test_suite_ecdsa.c $(DEP)
285 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200286 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerd589a0d2013-03-13 16:30:17 +0100287
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200288test_suite_ecp$(EXEXT): test_suite_ecp.c $(DEP)
289 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200290 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkera95919b2013-01-16 17:00:05 +0100291
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200292test_suite_entropy$(EXEXT): test_suite_entropy.c $(DEP)
293 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200294 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard2c25eb02014-05-30 10:38:18 +0200295
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200296test_suite_error$(EXEXT): test_suite_error.c $(DEP)
297 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200298 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker9d781402011-05-09 16:17:09 +0000299
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200300test_suite_gcm.aes128_de$(EXEXT): test_suite_gcm.aes128_de.c $(DEP)
301 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200302 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker89e80c92012-03-20 13:50:09 +0000303
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200304test_suite_gcm.aes192_de$(EXEXT): test_suite_gcm.aes192_de.c $(DEP)
305 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200306 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200307
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200308test_suite_gcm.aes256_de$(EXEXT): test_suite_gcm.aes256_de.c $(DEP)
309 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200310 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200311
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200312test_suite_gcm.aes128_en$(EXEXT): test_suite_gcm.aes128_en.c $(DEP)
313 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200314 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200315
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200316test_suite_gcm.aes192_en$(EXEXT): test_suite_gcm.aes192_en.c $(DEP)
317 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200318 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker286bf3c2013-04-08 18:09:51 +0200319
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200320test_suite_gcm.aes256_en$(EXEXT): test_suite_gcm.aes256_en.c $(DEP)
321 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200322 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker89e80c92012-03-20 13:50:09 +0000323
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200324test_suite_gcm.camellia$(EXEXT): test_suite_gcm.camellia.c $(DEP)
325 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200326 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker9dcc3222011-03-08 14:16:06 +0000327
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200328test_suite_hmac_drbg.misc$(EXEXT): test_suite_hmac_drbg.misc.c $(DEP)
329 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200330 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard48bc3e82014-01-30 21:11:16 +0100331
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200332test_suite_hmac_drbg.no_reseed$(EXEXT): test_suite_hmac_drbg.no_reseed.c $(DEP)
333 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200334 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard6801f392014-01-30 17:22:14 +0100335
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200336test_suite_hmac_drbg.nopr$(EXEXT): test_suite_hmac_drbg.nopr.c $(DEP)
337 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200338 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard24600b72014-01-31 09:54:14 +0100339
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200340test_suite_hmac_drbg.pr$(EXEXT): test_suite_hmac_drbg.pr.c $(DEP)
341 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200342 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard62273b82014-01-31 10:16:57 +0100343
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200344test_suite_hmac_shax$(EXEXT): test_suite_hmac_shax.c $(DEP)
345 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200346 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000347
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200348test_suite_md$(EXEXT): test_suite_md.c $(DEP)
349 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200350 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker17373852011-01-06 14:20:01 +0000351
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200352test_suite_mdx$(EXEXT): test_suite_mdx.c $(DEP)
353 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200354 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000355
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200356test_suite_memory_buffer_alloc$(EXEXT): test_suite_memory_buffer_alloc.c $(DEP)
357 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200358 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Manuel Pégourié-Gonnard765bb312014-11-27 11:55:27 +0100359
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200360test_suite_mpi$(EXEXT): test_suite_mpi.c $(DEP)
361 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200362 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000363
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200364test_suite_pbkdf2$(EXEXT): test_suite_pbkdf2.c $(DEP)
365 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200366 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerf518b162012-08-23 13:03:18 +0000367
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200368test_suite_pem$(EXEXT): test_suite_pem.c $(DEP)
369 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200370 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker16300582014-04-11 13:28:43 +0200371
Simon Butcher6301f442016-04-10 00:03:16 +0100372test_suite_pkcs1_v15$(EXEXT): test_suite_pkcs1_v15.c $(DEP)
373 echo " CC $<"
374 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
375
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200376test_suite_pkcs1_v21$(EXEXT): test_suite_pkcs1_v21.c $(DEP)
377 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200378 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker9dcc3222011-03-08 14:16:06 +0000379
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200380test_suite_pkcs5$(EXEXT): test_suite_pkcs5.c $(DEP)
381 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200382 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerb0c19a42013-06-24 19:26:38 +0200383
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200384test_suite_pkparse$(EXEXT): test_suite_pkparse.c $(DEP)
385 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200386 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker1a7550a2013-09-15 13:01:22 +0200387
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200388test_suite_pkwrite$(EXEXT): test_suite_pkwrite.c $(DEP)
389 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200390 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakkerc7bb02b2013-09-15 14:54:56 +0200391
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200392test_suite_pk$(EXEXT): test_suite_pk.c $(DEP)
393 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200394 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker32925622013-10-28 17:32:48 +0100395
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200396test_suite_rsa$(EXEXT): test_suite_rsa.c $(DEP)
397 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200398 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000399
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200400test_suite_shax$(EXEXT): test_suite_shax.c $(DEP)
401 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200402 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000403
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200404test_suite_x509parse$(EXEXT): test_suite_x509parse.c $(DEP)
405 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200406 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000407
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200408test_suite_x509write$(EXEXT): test_suite_x509write.c $(DEP)
409 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200410 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker6d620502012-02-16 14:09:13 +0000411
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200412test_suite_xtea$(EXEXT): test_suite_xtea.c $(DEP)
413 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200414 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker0049c2f2009-07-11 19:15:43 +0000415
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200416test_suite_debug$(EXEXT): test_suite_debug.c $(DEP)
417 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200418 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker7d7f4f42010-02-18 18:26:04 +0000419
Alon Bar-Lev18ba0cc2015-02-14 01:04:58 +0200420test_suite_version$(EXEXT): test_suite_version.c $(DEP)
421 echo " CC $<"
Alon Bar-Levf7a9f302015-02-18 17:55:05 +0200422 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
Paul Bakker3ac1b2d2010-06-18 22:47:29 +0000423
Paul Bakker0049c2f2009-07-11 19:15:43 +0000424clean:
Manuel Pégourié-Gonnard09eb14c2015-02-16 15:25:31 +0000425ifndef WINDOWS
Paul Bakker0049c2f2009-07-11 19:15:43 +0000426 rm -f $(APPS) *.c
Manuel Pégourié-Gonnard09eb14c2015-02-16 15:25:31 +0000427endif
428ifdef WINDOWS
429 del /Q /F *.c *.exe
430endif
Paul Bakker0049c2f2009-07-11 19:15:43 +0000431
Paul Bakker9794cb42009-07-28 18:55:00 +0000432check: $(APPS)
Manuel Pégourié-Gonnard09eb14c2015-02-16 15:25:31 +0000433ifndef WINDOWS
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}"; \
Paul Bakker674e0b02014-03-26 13:26:52 +0100439 RESULT=`$(CHECK_PRELOAD) ./$${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é-Gonnard09eb14c2015-02-16 15:25:31 +0000450endif