Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 1 | |
| 2 | # To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS |
Paul Bakker | 62f88dc | 2012-05-10 21:26:28 +0000 | [diff] [blame] | 3 | # To compile on MinGW: add "-lws2_32" to LDFLAGS or define WINDOWS in your env |
Paul Bakker | 43b7e35 | 2011-01-18 15:27:19 +0000 | [diff] [blame] | 4 | # To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 5 | |
Paul Bakker | 46eb138 | 2011-01-30 17:10:13 +0000 | [diff] [blame] | 6 | CFLAGS += -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement \ |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 7 | -Wno-unused-function -Wno-unused-value |
| 8 | |
Paul Bakker | f1ab0ec | 2012-10-23 12:12:53 +0000 | [diff] [blame] | 9 | OFLAGS = -O2 |
Paul Bakker | a585beb | 2011-06-21 08:59:44 +0000 | [diff] [blame] | 10 | LDFLAGS += -L../library -lpolarssl $(SYS_LDFLAGS) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 11 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 12 | ifndef SHARED |
| 13 | DEP=../library/libpolarssl.a |
| 14 | CHECK_PRELOAD= |
| 15 | else |
| 16 | DEP=../library/libpolarssl.so |
| 17 | CHECK_PRELOAD= LD_PRELOAD=../library/libpolarssl.so |
| 18 | endif |
| 19 | |
Paul Bakker | c7ffd36 | 2012-04-05 12:08:29 +0000 | [diff] [blame] | 20 | ifdef DEBUG |
| 21 | CFLAGS += -g3 |
| 22 | endif |
| 23 | |
Paul Bakker | cd5b529 | 2012-05-10 20:49:10 +0000 | [diff] [blame] | 24 | ifdef WINDOWS |
| 25 | LDFLAGS += -lws2_32 |
| 26 | endif |
| 27 | |
Paul Bakker | 2770fbd | 2012-07-03 13:30:23 +0000 | [diff] [blame] | 28 | # Zlib shared library extensions: |
| 29 | ifdef ZLIB |
| 30 | LDFLAGS += -lz |
| 31 | endif |
| 32 | |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 33 | APPS = test_suite_aes.ecb test_suite_aes.cbc \ |
| 34 | test_suite_aes.cfb test_suite_aes.rest \ |
Manuel Pégourié-Gonnard | 36178ff | 2014-05-29 14:26:03 +0200 | [diff] [blame] | 35 | test_suite_arc4 test_suite_asn1write \ |
Paul Bakker | a9379c0 | 2012-07-04 11:02:11 +0000 | [diff] [blame] | 36 | test_suite_base64 test_suite_blowfish \ |
Manuel Pégourié-Gonnard | a6916fa | 2014-05-02 15:17:29 +0200 | [diff] [blame] | 37 | test_suite_camellia test_suite_ccm \ |
| 38 | test_suite_cipher.aes \ |
Manuel Pégourié-Gonnard | 542eac5 | 2014-05-15 16:03:07 +0200 | [diff] [blame] | 39 | test_suite_cipher.arc4 test_suite_cipher.ccm \ |
| 40 | test_suite_cipher.gcm \ |
Paul Bakker | 6132d0a | 2012-07-04 17:10:40 +0000 | [diff] [blame] | 41 | test_suite_cipher.blowfish \ |
| 42 | test_suite_cipher.camellia \ |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 43 | test_suite_cipher.des test_suite_cipher.null \ |
Manuel Pégourié-Gonnard | d5fdcaf | 2013-07-24 18:05:00 +0200 | [diff] [blame] | 44 | test_suite_cipher.padding \ |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 45 | test_suite_ctr_drbg test_suite_debug \ |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 46 | test_suite_des test_suite_dhm \ |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 47 | test_suite_ecdh test_suite_ecdsa \ |
Paul Bakker | a95919b | 2013-01-16 17:00:05 +0100 | [diff] [blame] | 48 | test_suite_ecp \ |
Manuel Pégourié-Gonnard | 2c25eb0 | 2014-05-30 10:38:18 +0200 | [diff] [blame^] | 49 | test_suite_error test_suite_entropy \ |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 50 | test_suite_gcm.aes128_de \ |
| 51 | test_suite_gcm.aes192_de \ |
| 52 | test_suite_gcm.aes256_de \ |
| 53 | test_suite_gcm.aes128_en \ |
| 54 | test_suite_gcm.aes192_en \ |
| 55 | test_suite_gcm.aes256_en \ |
Manuel Pégourié-Gonnard | 13e0d44 | 2013-10-24 12:59:00 +0200 | [diff] [blame] | 56 | test_suite_gcm.camellia test_suite_hmac_shax \ |
Manuel Pégourié-Gonnard | 48bc3e8 | 2014-01-30 21:11:16 +0100 | [diff] [blame] | 57 | test_suite_hmac_drbg.misc \ |
Manuel Pégourié-Gonnard | 6801f39 | 2014-01-30 17:22:14 +0100 | [diff] [blame] | 58 | test_suite_hmac_drbg.no_reseed \ |
Manuel Pégourié-Gonnard | 24600b7 | 2014-01-31 09:54:14 +0100 | [diff] [blame] | 59 | test_suite_hmac_drbg.nopr \ |
Manuel Pégourié-Gonnard | 62273b8 | 2014-01-31 10:16:57 +0100 | [diff] [blame] | 60 | test_suite_hmac_drbg.pr \ |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 61 | test_suite_md test_suite_mdx \ |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 62 | test_suite_mpi test_suite_pbkdf2 \ |
Paul Bakker | 1630058 | 2014-04-11 13:28:43 +0200 | [diff] [blame] | 63 | test_suite_pem \ |
Paul Bakker | b0c19a4 | 2013-06-24 19:26:38 +0200 | [diff] [blame] | 64 | test_suite_pkcs1_v21 test_suite_pkcs5 \ |
Paul Bakker | c7bb02b | 2013-09-15 14:54:56 +0200 | [diff] [blame] | 65 | test_suite_pkparse test_suite_pkwrite \ |
Manuel Pégourié-Gonnard | b0a467f | 2013-09-21 12:31:05 +0200 | [diff] [blame] | 66 | test_suite_pk \ |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 67 | test_suite_rsa test_suite_shax \ |
Paul Bakker | 6d62050 | 2012-02-16 14:09:13 +0000 | [diff] [blame] | 68 | test_suite_x509parse test_suite_x509write \ |
| 69 | test_suite_xtea test_suite_version |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 70 | |
| 71 | .SILENT: |
| 72 | |
| 73 | all: $(APPS) |
| 74 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 75 | test_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 Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 76 | echo " Generate $@" |
| 77 | scripts/generate_code.pl suites test_suite_aes test_suite_aes.ecb |
| 78 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 79 | test_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 Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 80 | echo " Generate $@" |
| 81 | scripts/generate_code.pl suites test_suite_aes test_suite_aes.cbc |
| 82 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 83 | test_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 Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 84 | echo " Generate $@" |
| 85 | scripts/generate_code.pl suites test_suite_aes test_suite_aes.cfb |
| 86 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 87 | test_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 Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 88 | echo " Generate $@" |
| 89 | scripts/generate_code.pl suites test_suite_aes test_suite_aes.rest |
| 90 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 91 | test_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 Bakker | 46c1794 | 2011-07-13 14:54:54 +0000 | [diff] [blame] | 92 | echo " Generate $@" |
| 93 | scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.aes |
| 94 | |
Manuel Pégourié-Gonnard | 37e230c | 2013-08-28 13:50:42 +0200 | [diff] [blame] | 95 | test_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 |
| 96 | echo " Generate $@" |
| 97 | scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.arc4 |
| 98 | |
Manuel Pégourié-Gonnard | 542eac5 | 2014-05-15 16:03:07 +0200 | [diff] [blame] | 99 | test_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 |
| 100 | echo " Generate $@" |
| 101 | scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.ccm |
| 102 | |
Manuel Pégourié-Gonnard | 07f8fa5 | 2013-08-30 18:34:08 +0200 | [diff] [blame] | 103 | test_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 |
| 104 | echo " Generate $@" |
| 105 | scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.gcm |
| 106 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 107 | test_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 Bakker | 6132d0a | 2012-07-04 17:10:40 +0000 | [diff] [blame] | 108 | echo " Generate $@" |
| 109 | scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.blowfish |
| 110 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 111 | test_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 Bakker | 46c1794 | 2011-07-13 14:54:54 +0000 | [diff] [blame] | 112 | echo " Generate $@" |
| 113 | scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.camellia |
| 114 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 115 | test_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 Bakker | 46c1794 | 2011-07-13 14:54:54 +0000 | [diff] [blame] | 116 | echo " Generate $@" |
| 117 | scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.des |
| 118 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 119 | test_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 Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 120 | echo " Generate $@" |
| 121 | scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.null |
| 122 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 123 | test_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é-Gonnard | d5fdcaf | 2013-07-24 18:05:00 +0200 | [diff] [blame] | 124 | echo " Generate $@" |
| 125 | scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.padding |
| 126 | |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 127 | test_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 Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 128 | echo " Generate $@" |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 129 | scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_de |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 130 | |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 131 | test_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 Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 132 | echo " Generate $@" |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 133 | scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_de |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 134 | |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 135 | test_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 Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 136 | echo " Generate $@" |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 137 | scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_de |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 138 | |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 139 | test_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 Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 140 | echo " Generate $@" |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 141 | scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_en |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 142 | |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 143 | test_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 Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 144 | echo " Generate $@" |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 145 | scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_en |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 146 | |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 147 | test_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 Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 148 | echo " Generate $@" |
Manuel Pégourié-Gonnard | 94dd5b4 | 2013-10-24 11:57:47 +0200 | [diff] [blame] | 149 | scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_en |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 150 | |
Manuel Pégourié-Gonnard | 13e0d44 | 2013-10-24 12:59:00 +0200 | [diff] [blame] | 151 | test_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 |
| 152 | echo " Generate $@" |
| 153 | scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.camellia |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 154 | |
Manuel Pégourié-Gonnard | 48bc3e8 | 2014-01-30 21:11:16 +0100 | [diff] [blame] | 155 | test_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 |
| 156 | echo " Generate $@" |
| 157 | scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.misc |
| 158 | |
Manuel Pégourié-Gonnard | 6801f39 | 2014-01-30 17:22:14 +0100 | [diff] [blame] | 159 | test_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 |
| 160 | echo " Generate $@" |
| 161 | scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.no_reseed |
| 162 | |
Manuel Pégourié-Gonnard | 24600b7 | 2014-01-31 09:54:14 +0100 | [diff] [blame] | 163 | test_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 |
| 164 | echo " Generate $@" |
| 165 | scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.nopr |
| 166 | |
Manuel Pégourié-Gonnard | 62273b8 | 2014-01-31 10:16:57 +0100 | [diff] [blame] | 167 | test_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 |
| 168 | echo " Generate $@" |
| 169 | scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.pr |
| 170 | |
Paul Bakker | 1934318 | 2013-08-16 13:31:10 +0200 | [diff] [blame] | 171 | %.c : suites/%.function suites/%.data scripts/generate_code.pl suites/helpers.function suites/main_test.function |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 172 | echo " Generate $@" |
Paul Bakker | 46c1794 | 2011-07-13 14:54:54 +0000 | [diff] [blame] | 173 | scripts/generate_code.pl suites $* $* |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 174 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 175 | test_suite_aes.ecb: test_suite_aes.ecb.c $(DEP) |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 176 | echo " CC $@.c" |
| 177 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 178 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 179 | test_suite_aes.cbc: test_suite_aes.cbc.c $(DEP) |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 180 | echo " CC $@.c" |
| 181 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 182 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 183 | test_suite_aes.cfb: test_suite_aes.cfb.c $(DEP) |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 184 | echo " CC $@.c" |
| 185 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 186 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 187 | test_suite_aes.rest: test_suite_aes.rest.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 188 | echo " CC $@.c" |
| 189 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 190 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 191 | test_suite_arc4: test_suite_arc4.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 192 | echo " CC $@.c" |
| 193 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 194 | |
Manuel Pégourié-Gonnard | 36178ff | 2014-05-29 14:26:03 +0200 | [diff] [blame] | 195 | test_suite_asn1write: test_suite_asn1write.c $(DEP) |
| 196 | echo " CC $@.c" |
| 197 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 198 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 199 | test_suite_base64: test_suite_base64.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 200 | echo " CC $@.c" |
| 201 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 202 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 203 | test_suite_blowfish: test_suite_blowfish.c $(DEP) |
Paul Bakker | a9379c0 | 2012-07-04 11:02:11 +0000 | [diff] [blame] | 204 | echo " CC $@.c" |
| 205 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 206 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 207 | test_suite_camellia: test_suite_camellia.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 208 | echo " CC $@.c" |
| 209 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 210 | |
Manuel Pégourié-Gonnard | a6916fa | 2014-05-02 15:17:29 +0200 | [diff] [blame] | 211 | test_suite_ccm: test_suite_ccm.c $(DEP) |
| 212 | echo " CC $@.c" |
| 213 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 214 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 215 | test_suite_cipher.aes: test_suite_cipher.aes.c $(DEP) |
Paul Bakker | 46c1794 | 2011-07-13 14:54:54 +0000 | [diff] [blame] | 216 | echo " CC $@.c" |
| 217 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 218 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 219 | test_suite_cipher.arc4: test_suite_cipher.arc4.c $(DEP) |
Manuel Pégourié-Gonnard | 37e230c | 2013-08-28 13:50:42 +0200 | [diff] [blame] | 220 | echo " CC $@.c" |
| 221 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 222 | |
Manuel Pégourié-Gonnard | 542eac5 | 2014-05-15 16:03:07 +0200 | [diff] [blame] | 223 | test_suite_cipher.ccm: test_suite_cipher.ccm.c $(DEP) |
| 224 | echo " CC $@.c" |
| 225 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 226 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 227 | test_suite_cipher.gcm: test_suite_cipher.gcm.c $(DEP) |
Manuel Pégourié-Gonnard | 07f8fa5 | 2013-08-30 18:34:08 +0200 | [diff] [blame] | 228 | echo " CC $@.c" |
| 229 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 230 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 231 | test_suite_cipher.blowfish: test_suite_cipher.blowfish.c $(DEP) |
Paul Bakker | 6132d0a | 2012-07-04 17:10:40 +0000 | [diff] [blame] | 232 | echo " CC $@.c" |
| 233 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 234 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 235 | test_suite_cipher.camellia: test_suite_cipher.camellia.c $(DEP) |
Paul Bakker | 46c1794 | 2011-07-13 14:54:54 +0000 | [diff] [blame] | 236 | echo " CC $@.c" |
| 237 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 238 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 239 | test_suite_cipher.des: test_suite_cipher.des.c $(DEP) |
Paul Bakker | 0e04d0e | 2011-11-27 14:46:59 +0000 | [diff] [blame] | 240 | echo " CC $@.c" |
| 241 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 242 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 243 | test_suite_cipher.null: test_suite_cipher.null.c $(DEP) |
Paul Bakker | fab5c82 | 2012-02-06 16:45:10 +0000 | [diff] [blame] | 244 | echo " CC $@.c" |
| 245 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 246 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 247 | test_suite_cipher.padding: test_suite_cipher.padding.c $(DEP) |
Manuel Pégourié-Gonnard | d5fdcaf | 2013-07-24 18:05:00 +0200 | [diff] [blame] | 248 | echo " CC $@.c" |
| 249 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 250 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 251 | test_suite_ctr_drbg: test_suite_ctr_drbg.c $(DEP) |
Paul Bakker | 8123e9d | 2011-01-06 15:37:30 +0000 | [diff] [blame] | 252 | echo " CC $@.c" |
| 253 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 254 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 255 | test_suite_des: test_suite_des.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 256 | echo " CC $@.c" |
| 257 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 258 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 259 | test_suite_dhm: test_suite_dhm.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 260 | echo " CC $@.c" |
| 261 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 262 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 263 | test_suite_ecdh: test_suite_ecdh.c $(DEP) |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 264 | echo " CC $@.c" |
| 265 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 266 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 267 | test_suite_ecdsa: test_suite_ecdsa.c $(DEP) |
Paul Bakker | d589a0d | 2013-03-13 16:30:17 +0100 | [diff] [blame] | 268 | echo " CC $@.c" |
| 269 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 270 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 271 | test_suite_ecp: test_suite_ecp.c $(DEP) |
Paul Bakker | a95919b | 2013-01-16 17:00:05 +0100 | [diff] [blame] | 272 | echo " CC $@.c" |
| 273 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 274 | |
Manuel Pégourié-Gonnard | 2c25eb0 | 2014-05-30 10:38:18 +0200 | [diff] [blame^] | 275 | test_suite_entropy: test_suite_entropy.c $(DEP) |
| 276 | echo " CC $@.c" |
| 277 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 278 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 279 | test_suite_error: test_suite_error.c $(DEP) |
Paul Bakker | 9d78140 | 2011-05-09 16:17:09 +0000 | [diff] [blame] | 280 | echo " CC $@.c" |
| 281 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 282 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 283 | test_suite_gcm.aes128_de: test_suite_gcm.aes128_de.c $(DEP) |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 284 | echo " CC $@.c" |
| 285 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 286 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 287 | test_suite_gcm.aes192_de: test_suite_gcm.aes192_de.c $(DEP) |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 288 | echo " CC $@.c" |
| 289 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 290 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 291 | test_suite_gcm.aes256_de: test_suite_gcm.aes256_de.c $(DEP) |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 292 | echo " CC $@.c" |
| 293 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 294 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 295 | test_suite_gcm.aes128_en: test_suite_gcm.aes128_en.c $(DEP) |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 296 | echo " CC $@.c" |
| 297 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 298 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 299 | test_suite_gcm.aes192_en: test_suite_gcm.aes192_en.c $(DEP) |
Paul Bakker | 286bf3c | 2013-04-08 18:09:51 +0200 | [diff] [blame] | 300 | echo " CC $@.c" |
| 301 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 302 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 303 | test_suite_gcm.aes256_en: test_suite_gcm.aes256_en.c $(DEP) |
Paul Bakker | 89e80c9 | 2012-03-20 13:50:09 +0000 | [diff] [blame] | 304 | echo " CC $@.c" |
| 305 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 306 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 307 | test_suite_gcm.camellia: test_suite_gcm.camellia.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 308 | echo " CC $@.c" |
| 309 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 310 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 311 | test_suite_hmac_drbg.misc: test_suite_hmac_drbg.misc.c $(DEP) |
Manuel Pégourié-Gonnard | 48bc3e8 | 2014-01-30 21:11:16 +0100 | [diff] [blame] | 312 | echo " CC $@.c" |
| 313 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 314 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 315 | test_suite_hmac_drbg.no_reseed: test_suite_hmac_drbg.no_reseed.c $(DEP) |
Manuel Pégourié-Gonnard | 6801f39 | 2014-01-30 17:22:14 +0100 | [diff] [blame] | 316 | echo " CC $@.c" |
| 317 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 318 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 319 | test_suite_hmac_drbg.nopr: test_suite_hmac_drbg.nopr.c $(DEP) |
Manuel Pégourié-Gonnard | 24600b7 | 2014-01-31 09:54:14 +0100 | [diff] [blame] | 320 | echo " CC $@.c" |
| 321 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 322 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 323 | test_suite_hmac_drbg.pr: test_suite_hmac_drbg.pr.c $(DEP) |
Manuel Pégourié-Gonnard | 62273b8 | 2014-01-31 10:16:57 +0100 | [diff] [blame] | 324 | echo " CC $@.c" |
| 325 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 326 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 327 | test_suite_hmac_shax: test_suite_hmac_shax.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 328 | echo " CC $@.c" |
| 329 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 330 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 331 | test_suite_md: test_suite_md.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 332 | echo " CC $@.c" |
| 333 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 334 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 335 | test_suite_mdx: test_suite_mdx.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 336 | echo " CC $@.c" |
| 337 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 338 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 339 | test_suite_mpi: test_suite_mpi.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 340 | echo " CC $@.c" |
| 341 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 342 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 343 | test_suite_pbkdf2: test_suite_pbkdf2.c $(DEP) |
Paul Bakker | f518b16 | 2012-08-23 13:03:18 +0000 | [diff] [blame] | 344 | echo " CC $@.c" |
| 345 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 346 | |
Paul Bakker | 1630058 | 2014-04-11 13:28:43 +0200 | [diff] [blame] | 347 | test_suite_pem: test_suite_pem.c $(DEP) |
| 348 | echo " CC $@.c" |
| 349 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 350 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 351 | test_suite_pkcs1_v21: test_suite_pkcs1_v21.c $(DEP) |
Paul Bakker | 9dcc322 | 2011-03-08 14:16:06 +0000 | [diff] [blame] | 352 | echo " CC $@.c" |
| 353 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 354 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 355 | test_suite_pkcs5: test_suite_pkcs5.c $(DEP) |
Paul Bakker | b0c19a4 | 2013-06-24 19:26:38 +0200 | [diff] [blame] | 356 | echo " CC $@.c" |
| 357 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 358 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 359 | test_suite_pkparse: test_suite_pkparse.c $(DEP) |
Paul Bakker | 1a7550a | 2013-09-15 13:01:22 +0200 | [diff] [blame] | 360 | echo " CC $@.c" |
| 361 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 362 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 363 | test_suite_pkwrite: test_suite_pkwrite.c $(DEP) |
Paul Bakker | c7bb02b | 2013-09-15 14:54:56 +0200 | [diff] [blame] | 364 | echo " CC $@.c" |
| 365 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 366 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 367 | test_suite_pk: test_suite_pk.c $(DEP) |
Paul Bakker | 3292562 | 2013-10-28 17:32:48 +0100 | [diff] [blame] | 368 | echo " CC $@.c" |
| 369 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 370 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 371 | test_suite_rsa: test_suite_rsa.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 372 | echo " CC $@.c" |
| 373 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 374 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 375 | test_suite_shax: test_suite_shax.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 376 | echo " CC $@.c" |
| 377 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 378 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 379 | test_suite_x509parse: test_suite_x509parse.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 380 | echo " CC $@.c" |
| 381 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 382 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 383 | test_suite_x509write: test_suite_x509write.c $(DEP) |
Paul Bakker | 6d62050 | 2012-02-16 14:09:13 +0000 | [diff] [blame] | 384 | echo " CC $@.c" |
| 385 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 386 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 387 | test_suite_xtea: test_suite_xtea.c $(DEP) |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 388 | echo " CC $@.c" |
| 389 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 390 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 391 | test_suite_debug: test_suite_debug.c $(DEP) |
Paul Bakker | 7d7f4f4 | 2010-02-18 18:26:04 +0000 | [diff] [blame] | 392 | echo " CC $@.c" |
| 393 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 394 | |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 395 | test_suite_version: test_suite_version.c $(DEP) |
Paul Bakker | 3ac1b2d | 2010-06-18 22:47:29 +0000 | [diff] [blame] | 396 | echo " CC $@.c" |
| 397 | $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@ |
| 398 | |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 399 | clean: |
Paul Bakker | 62f88dc | 2012-05-10 21:26:28 +0000 | [diff] [blame] | 400 | ifndef WINDOWS |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 401 | rm -f $(APPS) *.c |
Paul Bakker | 62f88dc | 2012-05-10 21:26:28 +0000 | [diff] [blame] | 402 | endif |
| 403 | ifdef WINDOWS |
| 404 | del /Q /F *.c *.exe |
| 405 | endif |
Paul Bakker | 0049c2f | 2009-07-11 19:15:43 +0000 | [diff] [blame] | 406 | |
Paul Bakker | 9794cb4 | 2009-07-28 18:55:00 +0000 | [diff] [blame] | 407 | check: $(APPS) |
Paul Bakker | 62f88dc | 2012-05-10 21:26:28 +0000 | [diff] [blame] | 408 | ifndef WINDOWS |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 409 | echo "Running checks (Success if all tests PASSED)" |
Paul Bakker | d14cd35 | 2012-05-08 15:39:50 +0000 | [diff] [blame] | 410 | RETURN=0; \ |
Paul Bakker | d947d76 | 2009-07-28 20:16:47 +0000 | [diff] [blame] | 411 | for i in $(APPS); \ |
| 412 | do \ |
| 413 | echo " - $${i}"; \ |
Paul Bakker | 674e0b0 | 2014-03-26 13:26:52 +0100 | [diff] [blame] | 414 | RESULT=`$(CHECK_PRELOAD) ./$${i} | grep -v 'PASS$$' | grep -v -- '----' | grep -v '^$$'`; \ |
Paul Bakker | d14cd35 | 2012-05-08 15:39:50 +0000 | [diff] [blame] | 415 | FAILED=`echo $$RESULT |grep FAILED`; \ |
| 416 | echo " $$RESULT"; \ |
| 417 | if [ "$$FAILED" != "" ]; \ |
| 418 | then \ |
| 419 | echo "**** Failed ***************"; \ |
| 420 | RETURN=1; \ |
| 421 | fi; \ |
Paul Bakker | d947d76 | 2009-07-28 20:16:47 +0000 | [diff] [blame] | 422 | echo ""; \ |
Paul Bakker | d14cd35 | 2012-05-08 15:39:50 +0000 | [diff] [blame] | 423 | done; \ |
| 424 | if [ "$$RETURN" -eq 1 ]; then exit 1; fi |
Paul Bakker | 62f88dc | 2012-05-10 21:26:28 +0000 | [diff] [blame] | 425 | endif |