mbed TLS Build

Dependents:   Encrypt_Decrypt1 mbed_blink_tls encrypt encrypt

Committer:
markrad
Date:
Thu Jan 05 00:18:44 2017 +0000
Revision:
0:cdf462088d13
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
markrad 0:cdf462088d13 1
markrad 0:cdf462088d13 2 # To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS
markrad 0:cdf462088d13 3 # To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
markrad 0:cdf462088d13 4
markrad 0:cdf462088d13 5 CFLAGS ?= -O2
markrad 0:cdf462088d13 6 WARNING_CFLAGS ?= -Wall -W -Wdeclaration-after-statement -Wno-unused-function -Wno-unused-value
markrad 0:cdf462088d13 7 LDFLAGS ?=
markrad 0:cdf462088d13 8
markrad 0:cdf462088d13 9 LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64
markrad 0:cdf462088d13 10 LOCAL_LDFLAGS = -L../library \
markrad 0:cdf462088d13 11 -lmbedtls$(SHARED_SUFFIX) \
markrad 0:cdf462088d13 12 -lmbedx509$(SHARED_SUFFIX) \
markrad 0:cdf462088d13 13 -lmbedcrypto$(SHARED_SUFFIX)
markrad 0:cdf462088d13 14
markrad 0:cdf462088d13 15 ifndef SHARED
markrad 0:cdf462088d13 16 DEP=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a
markrad 0:cdf462088d13 17 else
markrad 0:cdf462088d13 18 DEP=../library/libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT)
markrad 0:cdf462088d13 19 endif
markrad 0:cdf462088d13 20
markrad 0:cdf462088d13 21 ifdef DEBUG
markrad 0:cdf462088d13 22 LOCAL_CFLAGS += -g3
markrad 0:cdf462088d13 23 endif
markrad 0:cdf462088d13 24
markrad 0:cdf462088d13 25 # if we're running on Windows, build for Windows
markrad 0:cdf462088d13 26 ifdef WINDOWS
markrad 0:cdf462088d13 27 WINDOWS_BUILD=1
markrad 0:cdf462088d13 28 endif
markrad 0:cdf462088d13 29
markrad 0:cdf462088d13 30 ifdef WINDOWS_BUILD
markrad 0:cdf462088d13 31 DLEXT=dll
markrad 0:cdf462088d13 32 EXEXT=.exe
markrad 0:cdf462088d13 33 LOCAL_LDFLAGS += -lws2_32
markrad 0:cdf462088d13 34 ifdef SHARED
markrad 0:cdf462088d13 35 SHARED_SUFFIX=.$(DLEXT)
markrad 0:cdf462088d13 36 endif
markrad 0:cdf462088d13 37 else
markrad 0:cdf462088d13 38 DLEXT=so
markrad 0:cdf462088d13 39 EXEXT=
markrad 0:cdf462088d13 40 SHARED_SUFFIX=
markrad 0:cdf462088d13 41 endif
markrad 0:cdf462088d13 42
markrad 0:cdf462088d13 43 # Zlib shared library extensions:
markrad 0:cdf462088d13 44 ifdef ZLIB
markrad 0:cdf462088d13 45 LOCAL_LDFLAGS += -lz
markrad 0:cdf462088d13 46 endif
markrad 0:cdf462088d13 47
markrad 0:cdf462088d13 48 APPS = test_suite_aes.ecb$(EXEXT) test_suite_aes.cbc$(EXEXT) \
markrad 0:cdf462088d13 49 test_suite_aes.cfb$(EXEXT) test_suite_aes.rest$(EXEXT) \
markrad 0:cdf462088d13 50 test_suite_arc4$(EXEXT) test_suite_asn1write$(EXEXT) \
markrad 0:cdf462088d13 51 test_suite_base64$(EXEXT) test_suite_blowfish$(EXEXT) \
markrad 0:cdf462088d13 52 test_suite_camellia$(EXEXT) test_suite_ccm$(EXEXT) \
markrad 0:cdf462088d13 53 test_suite_cmac$(EXEXT) \
markrad 0:cdf462088d13 54 test_suite_cipher.aes$(EXEXT) \
markrad 0:cdf462088d13 55 test_suite_cipher.arc4$(EXEXT) test_suite_cipher.ccm$(EXEXT) \
markrad 0:cdf462088d13 56 test_suite_cipher.gcm$(EXEXT) \
markrad 0:cdf462088d13 57 test_suite_cipher.blowfish$(EXEXT) \
markrad 0:cdf462088d13 58 test_suite_cipher.camellia$(EXEXT) \
markrad 0:cdf462088d13 59 test_suite_cipher.des$(EXEXT) test_suite_cipher.null$(EXEXT) \
markrad 0:cdf462088d13 60 test_suite_cipher.padding$(EXEXT) \
markrad 0:cdf462088d13 61 test_suite_ctr_drbg$(EXEXT) test_suite_debug$(EXEXT) \
markrad 0:cdf462088d13 62 test_suite_des$(EXEXT) test_suite_dhm$(EXEXT) \
markrad 0:cdf462088d13 63 test_suite_ecdh$(EXEXT) test_suite_ecdsa$(EXEXT) \
markrad 0:cdf462088d13 64 test_suite_ecjpake$(EXEXT) test_suite_ecp$(EXEXT) \
markrad 0:cdf462088d13 65 test_suite_error$(EXEXT) test_suite_entropy$(EXEXT) \
markrad 0:cdf462088d13 66 test_suite_gcm.aes128_de$(EXEXT) \
markrad 0:cdf462088d13 67 test_suite_gcm.aes192_de$(EXEXT) \
markrad 0:cdf462088d13 68 test_suite_gcm.aes256_de$(EXEXT) \
markrad 0:cdf462088d13 69 test_suite_gcm.aes128_en$(EXEXT) \
markrad 0:cdf462088d13 70 test_suite_gcm.aes192_en$(EXEXT) \
markrad 0:cdf462088d13 71 test_suite_gcm.aes256_en$(EXEXT) \
markrad 0:cdf462088d13 72 test_suite_gcm.camellia$(EXEXT) \
markrad 0:cdf462088d13 73 test_suite_hmac_drbg.misc$(EXEXT) \
markrad 0:cdf462088d13 74 test_suite_hmac_drbg.no_reseed$(EXEXT) \
markrad 0:cdf462088d13 75 test_suite_hmac_drbg.nopr$(EXEXT) \
markrad 0:cdf462088d13 76 test_suite_hmac_drbg.pr$(EXEXT) \
markrad 0:cdf462088d13 77 test_suite_md$(EXEXT) test_suite_mdx$(EXEXT) \
markrad 0:cdf462088d13 78 test_suite_memory_buffer_alloc$(EXEXT) \
markrad 0:cdf462088d13 79 test_suite_mpi$(EXEXT) \
markrad 0:cdf462088d13 80 test_suite_pem$(EXEXT) test_suite_pkcs1_v15$(EXEXT) \
markrad 0:cdf462088d13 81 test_suite_pkcs1_v21$(EXEXT) test_suite_pkcs5$(EXEXT) \
markrad 0:cdf462088d13 82 test_suite_pkparse$(EXEXT) test_suite_pkwrite$(EXEXT) \
markrad 0:cdf462088d13 83 test_suite_pk$(EXEXT) \
markrad 0:cdf462088d13 84 test_suite_rsa$(EXEXT) test_suite_shax$(EXEXT) \
markrad 0:cdf462088d13 85 test_suite_ssl$(EXEXT) test_suite_timing$(EXEXT) \
markrad 0:cdf462088d13 86 test_suite_x509parse$(EXEXT) test_suite_x509write$(EXEXT) \
markrad 0:cdf462088d13 87 test_suite_xtea$(EXEXT) test_suite_version$(EXEXT)
markrad 0:cdf462088d13 88
markrad 0:cdf462088d13 89 .SILENT:
markrad 0:cdf462088d13 90
markrad 0:cdf462088d13 91 .PHONY: all check test clean
markrad 0:cdf462088d13 92
markrad 0:cdf462088d13 93 all: $(APPS)
markrad 0:cdf462088d13 94
markrad 0:cdf462088d13 95 $(DEP):
markrad 0:cdf462088d13 96 $(MAKE) -C ../library
markrad 0:cdf462088d13 97
markrad 0:cdf462088d13 98 # invoke perl explicitly for the sake of mingw32-make
markrad 0:cdf462088d13 99
markrad 0:cdf462088d13 100 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
markrad 0:cdf462088d13 101 echo " Gen $@"
markrad 0:cdf462088d13 102 perl scripts/generate_code.pl suites test_suite_aes test_suite_aes.ecb
markrad 0:cdf462088d13 103
markrad 0:cdf462088d13 104 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
markrad 0:cdf462088d13 105 echo " Gen $@"
markrad 0:cdf462088d13 106 perl scripts/generate_code.pl suites test_suite_aes test_suite_aes.cbc
markrad 0:cdf462088d13 107
markrad 0:cdf462088d13 108 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
markrad 0:cdf462088d13 109 echo " Gen $@"
markrad 0:cdf462088d13 110 perl scripts/generate_code.pl suites test_suite_aes test_suite_aes.cfb
markrad 0:cdf462088d13 111
markrad 0:cdf462088d13 112 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
markrad 0:cdf462088d13 113 echo " Gen $@"
markrad 0:cdf462088d13 114 perl scripts/generate_code.pl suites test_suite_aes test_suite_aes.rest
markrad 0:cdf462088d13 115
markrad 0:cdf462088d13 116 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
markrad 0:cdf462088d13 117 echo " Gen $@"
markrad 0:cdf462088d13 118 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.aes
markrad 0:cdf462088d13 119
markrad 0:cdf462088d13 120 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
markrad 0:cdf462088d13 121 echo " Gen $@"
markrad 0:cdf462088d13 122 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.arc4
markrad 0:cdf462088d13 123
markrad 0:cdf462088d13 124 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
markrad 0:cdf462088d13 125 echo " Gen $@"
markrad 0:cdf462088d13 126 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.ccm
markrad 0:cdf462088d13 127
markrad 0:cdf462088d13 128 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
markrad 0:cdf462088d13 129 echo " Gen $@"
markrad 0:cdf462088d13 130 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.gcm
markrad 0:cdf462088d13 131
markrad 0:cdf462088d13 132 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
markrad 0:cdf462088d13 133 echo " Gen $@"
markrad 0:cdf462088d13 134 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.blowfish
markrad 0:cdf462088d13 135
markrad 0:cdf462088d13 136 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
markrad 0:cdf462088d13 137 echo " Gen $@"
markrad 0:cdf462088d13 138 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.camellia
markrad 0:cdf462088d13 139
markrad 0:cdf462088d13 140 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
markrad 0:cdf462088d13 141 echo " Gen $@"
markrad 0:cdf462088d13 142 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.des
markrad 0:cdf462088d13 143
markrad 0:cdf462088d13 144 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
markrad 0:cdf462088d13 145 echo " Gen $@"
markrad 0:cdf462088d13 146 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.null
markrad 0:cdf462088d13 147
markrad 0:cdf462088d13 148 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
markrad 0:cdf462088d13 149 echo " Gen $@"
markrad 0:cdf462088d13 150 perl scripts/generate_code.pl suites test_suite_cipher test_suite_cipher.padding
markrad 0:cdf462088d13 151
markrad 0:cdf462088d13 152 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
markrad 0:cdf462088d13 153 echo " Gen $@"
markrad 0:cdf462088d13 154 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_de
markrad 0:cdf462088d13 155
markrad 0:cdf462088d13 156 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
markrad 0:cdf462088d13 157 echo " Gen $@"
markrad 0:cdf462088d13 158 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_de
markrad 0:cdf462088d13 159
markrad 0:cdf462088d13 160 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
markrad 0:cdf462088d13 161 echo " Gen $@"
markrad 0:cdf462088d13 162 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_de
markrad 0:cdf462088d13 163
markrad 0:cdf462088d13 164 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
markrad 0:cdf462088d13 165 echo " Gen $@"
markrad 0:cdf462088d13 166 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes128_en
markrad 0:cdf462088d13 167
markrad 0:cdf462088d13 168 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
markrad 0:cdf462088d13 169 echo " Gen $@"
markrad 0:cdf462088d13 170 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes192_en
markrad 0:cdf462088d13 171
markrad 0:cdf462088d13 172 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
markrad 0:cdf462088d13 173 echo " Gen $@"
markrad 0:cdf462088d13 174 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.aes256_en
markrad 0:cdf462088d13 175
markrad 0:cdf462088d13 176 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
markrad 0:cdf462088d13 177 echo " Gen $@"
markrad 0:cdf462088d13 178 perl scripts/generate_code.pl suites test_suite_gcm test_suite_gcm.camellia
markrad 0:cdf462088d13 179
markrad 0:cdf462088d13 180 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
markrad 0:cdf462088d13 181 echo " Gen $@"
markrad 0:cdf462088d13 182 perl scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.misc
markrad 0:cdf462088d13 183
markrad 0:cdf462088d13 184 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
markrad 0:cdf462088d13 185 echo " Gen $@"
markrad 0:cdf462088d13 186 perl scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.no_reseed
markrad 0:cdf462088d13 187
markrad 0:cdf462088d13 188 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
markrad 0:cdf462088d13 189 echo " Gen $@"
markrad 0:cdf462088d13 190 perl scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.nopr
markrad 0:cdf462088d13 191
markrad 0:cdf462088d13 192 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
markrad 0:cdf462088d13 193 echo " Gen $@"
markrad 0:cdf462088d13 194 perl scripts/generate_code.pl suites test_suite_hmac_drbg test_suite_hmac_drbg.pr
markrad 0:cdf462088d13 195
markrad 0:cdf462088d13 196 %.c : suites/%.function suites/%.data scripts/generate_code.pl suites/helpers.function suites/main_test.function
markrad 0:cdf462088d13 197 echo " Gen $@"
markrad 0:cdf462088d13 198 perl scripts/generate_code.pl suites $* $*
markrad 0:cdf462088d13 199
markrad 0:cdf462088d13 200 test_suite_aes.ecb$(EXEXT): test_suite_aes.ecb.c $(DEP)
markrad 0:cdf462088d13 201 echo " CC $<"
markrad 0:cdf462088d13 202 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 203
markrad 0:cdf462088d13 204 test_suite_aes.cbc$(EXEXT): test_suite_aes.cbc.c $(DEP)
markrad 0:cdf462088d13 205 echo " CC $<"
markrad 0:cdf462088d13 206 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 207
markrad 0:cdf462088d13 208 test_suite_aes.cfb$(EXEXT): test_suite_aes.cfb.c $(DEP)
markrad 0:cdf462088d13 209 echo " CC $<"
markrad 0:cdf462088d13 210 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 211
markrad 0:cdf462088d13 212 test_suite_aes.rest$(EXEXT): test_suite_aes.rest.c $(DEP)
markrad 0:cdf462088d13 213 echo " CC $<"
markrad 0:cdf462088d13 214 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 215
markrad 0:cdf462088d13 216 test_suite_arc4$(EXEXT): test_suite_arc4.c $(DEP)
markrad 0:cdf462088d13 217 echo " CC $<"
markrad 0:cdf462088d13 218 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 219
markrad 0:cdf462088d13 220 test_suite_asn1write$(EXEXT): test_suite_asn1write.c $(DEP)
markrad 0:cdf462088d13 221 echo " CC $<"
markrad 0:cdf462088d13 222 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 223
markrad 0:cdf462088d13 224 test_suite_base64$(EXEXT): test_suite_base64.c $(DEP)
markrad 0:cdf462088d13 225 echo " CC $<"
markrad 0:cdf462088d13 226 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 227
markrad 0:cdf462088d13 228 test_suite_blowfish$(EXEXT): test_suite_blowfish.c $(DEP)
markrad 0:cdf462088d13 229 echo " CC $<"
markrad 0:cdf462088d13 230 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 231
markrad 0:cdf462088d13 232 test_suite_camellia$(EXEXT): test_suite_camellia.c $(DEP)
markrad 0:cdf462088d13 233 echo " CC $<"
markrad 0:cdf462088d13 234 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 235
markrad 0:cdf462088d13 236 test_suite_ccm$(EXEXT): test_suite_ccm.c $(DEP)
markrad 0:cdf462088d13 237 echo " CC $<"
markrad 0:cdf462088d13 238 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 239
markrad 0:cdf462088d13 240 test_suite_cmac$(EXEXT): test_suite_cmac.c $(DEP)
markrad 0:cdf462088d13 241 echo " CC $<"
markrad 0:cdf462088d13 242 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 243
markrad 0:cdf462088d13 244 test_suite_cipher.aes$(EXEXT): test_suite_cipher.aes.c $(DEP)
markrad 0:cdf462088d13 245 echo " CC $<"
markrad 0:cdf462088d13 246 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 247
markrad 0:cdf462088d13 248 test_suite_cipher.arc4$(EXEXT): test_suite_cipher.arc4.c $(DEP)
markrad 0:cdf462088d13 249 echo " CC $<"
markrad 0:cdf462088d13 250 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 251
markrad 0:cdf462088d13 252 test_suite_cipher.ccm$(EXEXT): test_suite_cipher.ccm.c $(DEP)
markrad 0:cdf462088d13 253 echo " CC $<"
markrad 0:cdf462088d13 254 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 255
markrad 0:cdf462088d13 256 test_suite_cipher.gcm$(EXEXT): test_suite_cipher.gcm.c $(DEP)
markrad 0:cdf462088d13 257 echo " CC $<"
markrad 0:cdf462088d13 258 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 259
markrad 0:cdf462088d13 260 test_suite_cipher.blowfish$(EXEXT): test_suite_cipher.blowfish.c $(DEP)
markrad 0:cdf462088d13 261 echo " CC $<"
markrad 0:cdf462088d13 262 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 263
markrad 0:cdf462088d13 264 test_suite_cipher.camellia$(EXEXT): test_suite_cipher.camellia.c $(DEP)
markrad 0:cdf462088d13 265 echo " CC $<"
markrad 0:cdf462088d13 266 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 267
markrad 0:cdf462088d13 268 test_suite_cipher.des$(EXEXT): test_suite_cipher.des.c $(DEP)
markrad 0:cdf462088d13 269 echo " CC $<"
markrad 0:cdf462088d13 270 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 271
markrad 0:cdf462088d13 272 test_suite_cipher.null$(EXEXT): test_suite_cipher.null.c $(DEP)
markrad 0:cdf462088d13 273 echo " CC $<"
markrad 0:cdf462088d13 274 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 275
markrad 0:cdf462088d13 276 test_suite_cipher.padding$(EXEXT): test_suite_cipher.padding.c $(DEP)
markrad 0:cdf462088d13 277 echo " CC $<"
markrad 0:cdf462088d13 278 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 279
markrad 0:cdf462088d13 280 test_suite_ctr_drbg$(EXEXT): test_suite_ctr_drbg.c $(DEP)
markrad 0:cdf462088d13 281 echo " CC $<"
markrad 0:cdf462088d13 282 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 283
markrad 0:cdf462088d13 284 test_suite_des$(EXEXT): test_suite_des.c $(DEP)
markrad 0:cdf462088d13 285 echo " CC $<"
markrad 0:cdf462088d13 286 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 287
markrad 0:cdf462088d13 288 test_suite_dhm$(EXEXT): test_suite_dhm.c $(DEP)
markrad 0:cdf462088d13 289 echo " CC $<"
markrad 0:cdf462088d13 290 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 291
markrad 0:cdf462088d13 292 test_suite_ecdh$(EXEXT): test_suite_ecdh.c $(DEP)
markrad 0:cdf462088d13 293 echo " CC $<"
markrad 0:cdf462088d13 294 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 295
markrad 0:cdf462088d13 296 test_suite_ecdsa$(EXEXT): test_suite_ecdsa.c $(DEP)
markrad 0:cdf462088d13 297 echo " CC $<"
markrad 0:cdf462088d13 298 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 299
markrad 0:cdf462088d13 300 test_suite_ecjpake$(EXEXT): test_suite_ecjpake.c $(DEP)
markrad 0:cdf462088d13 301 echo " CC $<"
markrad 0:cdf462088d13 302 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 303
markrad 0:cdf462088d13 304 test_suite_ecp$(EXEXT): test_suite_ecp.c $(DEP)
markrad 0:cdf462088d13 305 echo " CC $<"
markrad 0:cdf462088d13 306 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 307
markrad 0:cdf462088d13 308 test_suite_entropy$(EXEXT): test_suite_entropy.c $(DEP)
markrad 0:cdf462088d13 309 echo " CC $<"
markrad 0:cdf462088d13 310 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 311
markrad 0:cdf462088d13 312 test_suite_error$(EXEXT): test_suite_error.c $(DEP)
markrad 0:cdf462088d13 313 echo " CC $<"
markrad 0:cdf462088d13 314 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 315
markrad 0:cdf462088d13 316 test_suite_gcm.aes128_de$(EXEXT): test_suite_gcm.aes128_de.c $(DEP)
markrad 0:cdf462088d13 317 echo " CC $<"
markrad 0:cdf462088d13 318 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 319
markrad 0:cdf462088d13 320 test_suite_gcm.aes192_de$(EXEXT): test_suite_gcm.aes192_de.c $(DEP)
markrad 0:cdf462088d13 321 echo " CC $<"
markrad 0:cdf462088d13 322 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 323
markrad 0:cdf462088d13 324 test_suite_gcm.aes256_de$(EXEXT): test_suite_gcm.aes256_de.c $(DEP)
markrad 0:cdf462088d13 325 echo " CC $<"
markrad 0:cdf462088d13 326 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 327
markrad 0:cdf462088d13 328 test_suite_gcm.aes128_en$(EXEXT): test_suite_gcm.aes128_en.c $(DEP)
markrad 0:cdf462088d13 329 echo " CC $<"
markrad 0:cdf462088d13 330 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 331
markrad 0:cdf462088d13 332 test_suite_gcm.aes192_en$(EXEXT): test_suite_gcm.aes192_en.c $(DEP)
markrad 0:cdf462088d13 333 echo " CC $<"
markrad 0:cdf462088d13 334 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 335
markrad 0:cdf462088d13 336 test_suite_gcm.aes256_en$(EXEXT): test_suite_gcm.aes256_en.c $(DEP)
markrad 0:cdf462088d13 337 echo " CC $<"
markrad 0:cdf462088d13 338 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 339
markrad 0:cdf462088d13 340 test_suite_gcm.camellia$(EXEXT): test_suite_gcm.camellia.c $(DEP)
markrad 0:cdf462088d13 341 echo " CC $<"
markrad 0:cdf462088d13 342 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 343
markrad 0:cdf462088d13 344 test_suite_hmac_drbg.misc$(EXEXT): test_suite_hmac_drbg.misc.c $(DEP)
markrad 0:cdf462088d13 345 echo " CC $<"
markrad 0:cdf462088d13 346 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 347
markrad 0:cdf462088d13 348 test_suite_hmac_drbg.no_reseed$(EXEXT): test_suite_hmac_drbg.no_reseed.c $(DEP)
markrad 0:cdf462088d13 349 echo " CC $<"
markrad 0:cdf462088d13 350 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 351
markrad 0:cdf462088d13 352 test_suite_hmac_drbg.nopr$(EXEXT): test_suite_hmac_drbg.nopr.c $(DEP)
markrad 0:cdf462088d13 353 echo " CC $<"
markrad 0:cdf462088d13 354 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 355
markrad 0:cdf462088d13 356 test_suite_hmac_drbg.pr$(EXEXT): test_suite_hmac_drbg.pr.c $(DEP)
markrad 0:cdf462088d13 357 echo " CC $<"
markrad 0:cdf462088d13 358 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 359
markrad 0:cdf462088d13 360 test_suite_md$(EXEXT): test_suite_md.c $(DEP)
markrad 0:cdf462088d13 361 echo " CC $<"
markrad 0:cdf462088d13 362 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 363
markrad 0:cdf462088d13 364 test_suite_mdx$(EXEXT): test_suite_mdx.c $(DEP)
markrad 0:cdf462088d13 365 echo " CC $<"
markrad 0:cdf462088d13 366 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 367
markrad 0:cdf462088d13 368 test_suite_memory_buffer_alloc$(EXEXT): test_suite_memory_buffer_alloc.c $(DEP)
markrad 0:cdf462088d13 369 echo " CC $<"
markrad 0:cdf462088d13 370 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 371
markrad 0:cdf462088d13 372 test_suite_mpi$(EXEXT): test_suite_mpi.c $(DEP)
markrad 0:cdf462088d13 373 echo " CC $<"
markrad 0:cdf462088d13 374 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 375
markrad 0:cdf462088d13 376 test_suite_pem$(EXEXT): test_suite_pem.c $(DEP)
markrad 0:cdf462088d13 377 echo " CC $<"
markrad 0:cdf462088d13 378 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 379
markrad 0:cdf462088d13 380 test_suite_pkcs1_v15$(EXEXT): test_suite_pkcs1_v15.c $(DEP)
markrad 0:cdf462088d13 381 echo " CC $<"
markrad 0:cdf462088d13 382 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 383
markrad 0:cdf462088d13 384 test_suite_pkcs1_v21$(EXEXT): test_suite_pkcs1_v21.c $(DEP)
markrad 0:cdf462088d13 385 echo " CC $<"
markrad 0:cdf462088d13 386 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 387
markrad 0:cdf462088d13 388 test_suite_pkcs5$(EXEXT): test_suite_pkcs5.c $(DEP)
markrad 0:cdf462088d13 389 echo " CC $<"
markrad 0:cdf462088d13 390 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 391
markrad 0:cdf462088d13 392 test_suite_pkparse$(EXEXT): test_suite_pkparse.c $(DEP)
markrad 0:cdf462088d13 393 echo " CC $<"
markrad 0:cdf462088d13 394 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 395
markrad 0:cdf462088d13 396 test_suite_pkwrite$(EXEXT): test_suite_pkwrite.c $(DEP)
markrad 0:cdf462088d13 397 echo " CC $<"
markrad 0:cdf462088d13 398 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 399
markrad 0:cdf462088d13 400 test_suite_pk$(EXEXT): test_suite_pk.c $(DEP)
markrad 0:cdf462088d13 401 echo " CC $<"
markrad 0:cdf462088d13 402 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 403
markrad 0:cdf462088d13 404 test_suite_rsa$(EXEXT): test_suite_rsa.c $(DEP)
markrad 0:cdf462088d13 405 echo " CC $<"
markrad 0:cdf462088d13 406 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 407
markrad 0:cdf462088d13 408 test_suite_shax$(EXEXT): test_suite_shax.c $(DEP)
markrad 0:cdf462088d13 409 echo " CC $<"
markrad 0:cdf462088d13 410 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 411
markrad 0:cdf462088d13 412 test_suite_ssl$(EXEXT): test_suite_ssl.c $(DEP)
markrad 0:cdf462088d13 413 echo " CC $<"
markrad 0:cdf462088d13 414 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 415
markrad 0:cdf462088d13 416 test_suite_timing$(EXEXT): test_suite_timing.c $(DEP)
markrad 0:cdf462088d13 417 echo " CC $<"
markrad 0:cdf462088d13 418 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 419
markrad 0:cdf462088d13 420 test_suite_x509parse$(EXEXT): test_suite_x509parse.c $(DEP)
markrad 0:cdf462088d13 421 echo " CC $<"
markrad 0:cdf462088d13 422 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 423
markrad 0:cdf462088d13 424 test_suite_x509write$(EXEXT): test_suite_x509write.c $(DEP)
markrad 0:cdf462088d13 425 echo " CC $<"
markrad 0:cdf462088d13 426 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 427
markrad 0:cdf462088d13 428 test_suite_xtea$(EXEXT): test_suite_xtea.c $(DEP)
markrad 0:cdf462088d13 429 echo " CC $<"
markrad 0:cdf462088d13 430 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 431
markrad 0:cdf462088d13 432 test_suite_debug$(EXEXT): test_suite_debug.c $(DEP)
markrad 0:cdf462088d13 433 echo " CC $<"
markrad 0:cdf462088d13 434 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 435
markrad 0:cdf462088d13 436 test_suite_version$(EXEXT): test_suite_version.c $(DEP)
markrad 0:cdf462088d13 437 echo " CC $<"
markrad 0:cdf462088d13 438 $(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
markrad 0:cdf462088d13 439
markrad 0:cdf462088d13 440 clean:
markrad 0:cdf462088d13 441 ifndef WINDOWS
markrad 0:cdf462088d13 442 rm -f $(APPS) *.c
markrad 0:cdf462088d13 443 else
markrad 0:cdf462088d13 444 del /Q /F *.c *.exe
markrad 0:cdf462088d13 445 endif
markrad 0:cdf462088d13 446
markrad 0:cdf462088d13 447 check: $(APPS)
markrad 0:cdf462088d13 448 perl scripts/run-test-suites.pl
markrad 0:cdf462088d13 449
markrad 0:cdf462088d13 450 test: check