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