1arm_cflags := -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DGHASH_ASM -DAES_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM 2mips_cflags := -DOPENSSL_BN_ASM_MONT -DAES_ASM -DSHA1_ASM -DSHA256_ASM 3x86_cflags := -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_PART_WORDS -DAES_ASM -DGHASH_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DDES_PTR -DDES_RISC1 -DDES_UNROLL 4 5arm_src_files := \ 6 crypto/aes/asm/aes-armv4.s \ 7 crypto/bn/asm/armv4-gf2m.s \ 8 crypto/bn/asm/armv4-mont.s \ 9 crypto/bn/bn_asm.c \ 10 crypto/modes/asm/ghash-armv4.s \ 11 crypto/sha/asm/sha1-armv4-large.s \ 12 crypto/sha/asm/sha256-armv4.s \ 13 crypto/sha/asm/sha512-armv4.s 14 15mips_src_files := \ 16 crypto/aes/asm/aes-mips.s \ 17 crypto/bn/asm/bn-mips.s \ 18 crypto/bn/asm/mips-mont.s \ 19 crypto/sha/asm/sha1-mips.s \ 20 crypto/sha/asm/sha256-mips.s 21 22x86_src_files := \ 23 crypto/aes/asm/aes-586.s \ 24 crypto/aes/asm/vpaes-x86.s \ 25 crypto/aes/asm/aesni-x86.s \ 26 crypto/bn/asm/bn-586.s \ 27 crypto/bn/asm/co-586.s \ 28 crypto/bn/asm/x86-mont.s \ 29 crypto/bn/asm/x86-gf2m.s \ 30 crypto/modes/asm/ghash-x86.s \ 31 crypto/sha/asm/sha1-586.s \ 32 crypto/sha/asm/sha256-586.s \ 33 crypto/sha/asm/sha512-586.s \ 34 crypto/md5/asm/md5-586.s \ 35 crypto/des/asm/des-586.s \ 36 crypto/des/asm/crypt586.s \ 37 crypto/bf/asm/bf-586.s 38 39x86_exclude_files := \ 40 crypto/aes/aes_cbc.c \ 41 crypto/des/des_enc.c \ 42 crypto/des/fcrypt_b.c \ 43 crypto/bf/bf_enc.c 44 45other_arch_src_files := \ 46 crypto/aes/aes_core.c \ 47 crypto/bn/bn_asm.c 48 49local_src_files := \ 50 crypto/cryptlib.c \ 51 crypto/mem.c \ 52 crypto/mem_clr.c \ 53 crypto/mem_dbg.c \ 54 crypto/cversion.c \ 55 crypto/ex_data.c \ 56 crypto/cpt_err.c \ 57 crypto/ebcdic.c \ 58 crypto/uid.c \ 59 crypto/o_time.c \ 60 crypto/o_str.c \ 61 crypto/o_dir.c \ 62 crypto/aes/aes_cbc.c \ 63 crypto/aes/aes_cfb.c \ 64 crypto/aes/aes_ctr.c \ 65 crypto/aes/aes_ecb.c \ 66 crypto/aes/aes_misc.c \ 67 crypto/aes/aes_ofb.c \ 68 crypto/aes/aes_wrap.c \ 69 crypto/asn1/a_bitstr.c \ 70 crypto/asn1/a_bool.c \ 71 crypto/asn1/a_bytes.c \ 72 crypto/asn1/a_d2i_fp.c \ 73 crypto/asn1/a_digest.c \ 74 crypto/asn1/a_dup.c \ 75 crypto/asn1/a_enum.c \ 76 crypto/asn1/a_gentm.c \ 77 crypto/asn1/a_i2d_fp.c \ 78 crypto/asn1/a_int.c \ 79 crypto/asn1/a_mbstr.c \ 80 crypto/asn1/a_object.c \ 81 crypto/asn1/a_octet.c \ 82 crypto/asn1/a_print.c \ 83 crypto/asn1/a_set.c \ 84 crypto/asn1/a_sign.c \ 85 crypto/asn1/a_strex.c \ 86 crypto/asn1/a_strnid.c \ 87 crypto/asn1/a_time.c \ 88 crypto/asn1/a_type.c \ 89 crypto/asn1/a_utctm.c \ 90 crypto/asn1/a_utf8.c \ 91 crypto/asn1/a_verify.c \ 92 crypto/asn1/ameth_lib.c \ 93 crypto/asn1/asn1_err.c \ 94 crypto/asn1/asn1_gen.c \ 95 crypto/asn1/asn1_lib.c \ 96 crypto/asn1/asn1_par.c \ 97 crypto/asn1/asn_mime.c \ 98 crypto/asn1/asn_moid.c \ 99 crypto/asn1/asn_pack.c \ 100 crypto/asn1/bio_asn1.c \ 101 crypto/asn1/bio_ndef.c \ 102 crypto/asn1/d2i_pr.c \ 103 crypto/asn1/d2i_pu.c \ 104 crypto/asn1/evp_asn1.c \ 105 crypto/asn1/f_enum.c \ 106 crypto/asn1/f_int.c \ 107 crypto/asn1/f_string.c \ 108 crypto/asn1/i2d_pr.c \ 109 crypto/asn1/i2d_pu.c \ 110 crypto/asn1/n_pkey.c \ 111 crypto/asn1/nsseq.c \ 112 crypto/asn1/p5_pbe.c \ 113 crypto/asn1/p5_pbev2.c \ 114 crypto/asn1/p8_pkey.c \ 115 crypto/asn1/t_bitst.c \ 116 crypto/asn1/t_crl.c \ 117 crypto/asn1/t_pkey.c \ 118 crypto/asn1/t_req.c \ 119 crypto/asn1/t_spki.c \ 120 crypto/asn1/t_x509.c \ 121 crypto/asn1/t_x509a.c \ 122 crypto/asn1/tasn_dec.c \ 123 crypto/asn1/tasn_enc.c \ 124 crypto/asn1/tasn_fre.c \ 125 crypto/asn1/tasn_new.c \ 126 crypto/asn1/tasn_prn.c \ 127 crypto/asn1/tasn_typ.c \ 128 crypto/asn1/tasn_utl.c \ 129 crypto/asn1/x_algor.c \ 130 crypto/asn1/x_attrib.c \ 131 crypto/asn1/x_bignum.c \ 132 crypto/asn1/x_crl.c \ 133 crypto/asn1/x_exten.c \ 134 crypto/asn1/x_info.c \ 135 crypto/asn1/x_long.c \ 136 crypto/asn1/x_name.c \ 137 crypto/asn1/x_nx509.c \ 138 crypto/asn1/x_pkey.c \ 139 crypto/asn1/x_pubkey.c \ 140 crypto/asn1/x_req.c \ 141 crypto/asn1/x_sig.c \ 142 crypto/asn1/x_spki.c \ 143 crypto/asn1/x_val.c \ 144 crypto/asn1/x_x509.c \ 145 crypto/asn1/x_x509a.c \ 146 crypto/bf/bf_cfb64.c \ 147 crypto/bf/bf_ecb.c \ 148 crypto/bf/bf_enc.c \ 149 crypto/bf/bf_ofb64.c \ 150 crypto/bf/bf_skey.c \ 151 crypto/bio/b_dump.c \ 152 crypto/bio/b_print.c \ 153 crypto/bio/b_sock.c \ 154 crypto/bio/bf_buff.c \ 155 crypto/bio/bf_nbio.c \ 156 crypto/bio/bf_null.c \ 157 crypto/bio/bio_cb.c \ 158 crypto/bio/bio_err.c \ 159 crypto/bio/bio_lib.c \ 160 crypto/bio/bss_acpt.c \ 161 crypto/bio/bss_bio.c \ 162 crypto/bio/bss_conn.c \ 163 crypto/bio/bss_dgram.c \ 164 crypto/bio/bss_fd.c \ 165 crypto/bio/bss_file.c \ 166 crypto/bio/bss_log.c \ 167 crypto/bio/bss_mem.c \ 168 crypto/bio/bss_null.c \ 169 crypto/bio/bss_sock.c \ 170 crypto/bn/bn_add.c \ 171 crypto/bn/bn_blind.c \ 172 crypto/bn/bn_const.c \ 173 crypto/bn/bn_ctx.c \ 174 crypto/bn/bn_div.c \ 175 crypto/bn/bn_err.c \ 176 crypto/bn/bn_exp.c \ 177 crypto/bn/bn_exp2.c \ 178 crypto/bn/bn_gcd.c \ 179 crypto/bn/bn_gf2m.c \ 180 crypto/bn/bn_kron.c \ 181 crypto/bn/bn_lib.c \ 182 crypto/bn/bn_mod.c \ 183 crypto/bn/bn_mont.c \ 184 crypto/bn/bn_mpi.c \ 185 crypto/bn/bn_mul.c \ 186 crypto/bn/bn_nist.c \ 187 crypto/bn/bn_prime.c \ 188 crypto/bn/bn_print.c \ 189 crypto/bn/bn_rand.c \ 190 crypto/bn/bn_recp.c \ 191 crypto/bn/bn_shift.c \ 192 crypto/bn/bn_sqr.c \ 193 crypto/bn/bn_sqrt.c \ 194 crypto/bn/bn_word.c \ 195 crypto/buffer/buf_err.c \ 196 crypto/buffer/buf_str.c \ 197 crypto/buffer/buffer.c \ 198 crypto/cmac/cm_ameth.c \ 199 crypto/cmac/cm_pmeth.c \ 200 crypto/cmac/cmac.c \ 201 crypto/comp/c_rle.c \ 202 crypto/comp/c_zlib.c \ 203 crypto/comp/comp_err.c \ 204 crypto/comp/comp_lib.c \ 205 crypto/conf/conf_api.c \ 206 crypto/conf/conf_def.c \ 207 crypto/conf/conf_err.c \ 208 crypto/conf/conf_lib.c \ 209 crypto/conf/conf_mall.c \ 210 crypto/conf/conf_mod.c \ 211 crypto/conf/conf_sap.c \ 212 crypto/des/cbc_cksm.c \ 213 crypto/des/cbc_enc.c \ 214 crypto/des/cfb64ede.c \ 215 crypto/des/cfb64enc.c \ 216 crypto/des/cfb_enc.c \ 217 crypto/des/des_enc.c \ 218 crypto/des/des_old.c \ 219 crypto/des/des_old2.c \ 220 crypto/des/ecb3_enc.c \ 221 crypto/des/ecb_enc.c \ 222 crypto/des/ede_cbcm_enc.c \ 223 crypto/des/enc_read.c \ 224 crypto/des/enc_writ.c \ 225 crypto/des/fcrypt.c \ 226 crypto/des/fcrypt_b.c \ 227 crypto/des/ofb64ede.c \ 228 crypto/des/ofb64enc.c \ 229 crypto/des/ofb_enc.c \ 230 crypto/des/pcbc_enc.c \ 231 crypto/des/qud_cksm.c \ 232 crypto/des/rand_key.c \ 233 crypto/des/read2pwd.c \ 234 crypto/des/rpc_enc.c \ 235 crypto/des/set_key.c \ 236 crypto/des/str2key.c \ 237 crypto/des/xcbc_enc.c \ 238 crypto/dh/dh_ameth.c \ 239 crypto/dh/dh_asn1.c \ 240 crypto/dh/dh_check.c \ 241 crypto/dh/dh_depr.c \ 242 crypto/dh/dh_err.c \ 243 crypto/dh/dh_gen.c \ 244 crypto/dh/dh_key.c \ 245 crypto/dh/dh_lib.c \ 246 crypto/dh/dh_pmeth.c \ 247 crypto/dsa/dsa_ameth.c \ 248 crypto/dsa/dsa_asn1.c \ 249 crypto/dsa/dsa_depr.c \ 250 crypto/dsa/dsa_err.c \ 251 crypto/dsa/dsa_gen.c \ 252 crypto/dsa/dsa_key.c \ 253 crypto/dsa/dsa_lib.c \ 254 crypto/dsa/dsa_ossl.c \ 255 crypto/dsa/dsa_pmeth.c \ 256 crypto/dsa/dsa_prn.c \ 257 crypto/dsa/dsa_sign.c \ 258 crypto/dsa/dsa_vrf.c \ 259 crypto/dso/dso_dl.c \ 260 crypto/dso/dso_dlfcn.c \ 261 crypto/dso/dso_err.c \ 262 crypto/dso/dso_lib.c \ 263 crypto/dso/dso_null.c \ 264 crypto/dso/dso_openssl.c \ 265 crypto/ec/ec2_mult.c \ 266 crypto/ec/ec2_oct.c \ 267 crypto/ec/ec2_smpl.c \ 268 crypto/ec/ec_ameth.c \ 269 crypto/ec/ec_asn1.c \ 270 crypto/ec/ec_check.c \ 271 crypto/ec/ec_curve.c \ 272 crypto/ec/ec_cvt.c \ 273 crypto/ec/ec_err.c \ 274 crypto/ec/ec_key.c \ 275 crypto/ec/ec_lib.c \ 276 crypto/ec/ec_mult.c \ 277 crypto/ec/ec_oct.c \ 278 crypto/ec/ec_pmeth.c \ 279 crypto/ec/ec_print.c \ 280 crypto/ec/eck_prn.c \ 281 crypto/ec/ecp_mont.c \ 282 crypto/ec/ecp_nist.c \ 283 crypto/ec/ecp_oct.c \ 284 crypto/ec/ecp_smpl.c \ 285 crypto/ecdh/ech_err.c \ 286 crypto/ecdh/ech_key.c \ 287 crypto/ecdh/ech_lib.c \ 288 crypto/ecdh/ech_ossl.c \ 289 crypto/ecdsa/ecs_asn1.c \ 290 crypto/ecdsa/ecs_err.c \ 291 crypto/ecdsa/ecs_lib.c \ 292 crypto/ecdsa/ecs_ossl.c \ 293 crypto/ecdsa/ecs_sign.c \ 294 crypto/ecdsa/ecs_vrf.c \ 295 crypto/engine/eng_all.c \ 296 crypto/engine/eng_cnf.c \ 297 crypto/engine/eng_ctrl.c \ 298 crypto/engine/eng_dyn.c \ 299 crypto/engine/eng_err.c \ 300 crypto/engine/eng_fat.c \ 301 crypto/engine/eng_init.c \ 302 crypto/engine/eng_lib.c \ 303 crypto/engine/eng_list.c \ 304 crypto/engine/eng_pkey.c \ 305 crypto/engine/eng_table.c \ 306 crypto/engine/tb_asnmth.c \ 307 crypto/engine/tb_cipher.c \ 308 crypto/engine/tb_dh.c \ 309 crypto/engine/tb_digest.c \ 310 crypto/engine/tb_dsa.c \ 311 crypto/engine/tb_ecdh.c \ 312 crypto/engine/tb_ecdsa.c \ 313 crypto/engine/tb_pkmeth.c \ 314 crypto/engine/tb_rand.c \ 315 crypto/engine/tb_rsa.c \ 316 crypto/engine/tb_store.c \ 317 crypto/err/err.c \ 318 crypto/err/err_all.c \ 319 crypto/err/err_prn.c \ 320 crypto/evp/bio_b64.c \ 321 crypto/evp/bio_enc.c \ 322 crypto/evp/bio_md.c \ 323 crypto/evp/bio_ok.c \ 324 crypto/evp/c_all.c \ 325 crypto/evp/c_allc.c \ 326 crypto/evp/c_alld.c \ 327 crypto/evp/digest.c \ 328 crypto/evp/e_aes.c \ 329 crypto/evp/e_aes_cbc_hmac_sha1.c \ 330 crypto/evp/e_bf.c \ 331 crypto/evp/e_des.c \ 332 crypto/evp/e_des3.c \ 333 crypto/evp/e_null.c \ 334 crypto/evp/e_old.c \ 335 crypto/evp/e_rc2.c \ 336 crypto/evp/e_rc4.c \ 337 crypto/evp/e_rc4_hmac_md5.c \ 338 crypto/evp/e_rc5.c \ 339 crypto/evp/e_xcbc_d.c \ 340 crypto/evp/encode.c \ 341 crypto/evp/evp_acnf.c \ 342 crypto/evp/evp_enc.c \ 343 crypto/evp/evp_err.c \ 344 crypto/evp/evp_key.c \ 345 crypto/evp/evp_lib.c \ 346 crypto/evp/evp_pbe.c \ 347 crypto/evp/evp_pkey.c \ 348 crypto/evp/m_dss.c \ 349 crypto/evp/m_dss1.c \ 350 crypto/evp/m_ecdsa.c \ 351 crypto/evp/m_md4.c \ 352 crypto/evp/m_md5.c \ 353 crypto/evp/m_mdc2.c \ 354 crypto/evp/m_null.c \ 355 crypto/evp/m_ripemd.c \ 356 crypto/evp/m_sha1.c \ 357 crypto/evp/m_sigver.c \ 358 crypto/evp/m_wp.c \ 359 crypto/evp/names.c \ 360 crypto/evp/p5_crpt.c \ 361 crypto/evp/p5_crpt2.c \ 362 crypto/evp/p_dec.c \ 363 crypto/evp/p_enc.c \ 364 crypto/evp/p_lib.c \ 365 crypto/evp/p_open.c \ 366 crypto/evp/p_seal.c \ 367 crypto/evp/p_sign.c \ 368 crypto/evp/p_verify.c \ 369 crypto/evp/pmeth_fn.c \ 370 crypto/evp/pmeth_gn.c \ 371 crypto/evp/pmeth_lib.c \ 372 crypto/hmac/hm_ameth.c \ 373 crypto/hmac/hm_pmeth.c \ 374 crypto/hmac/hmac.c \ 375 crypto/krb5/krb5_asn.c \ 376 crypto/lhash/lh_stats.c \ 377 crypto/lhash/lhash.c \ 378 crypto/md4/md4_dgst.c \ 379 crypto/md4/md4_one.c \ 380 crypto/md5/md5_dgst.c \ 381 crypto/md5/md5_one.c \ 382 crypto/modes/cbc128.c \ 383 crypto/modes/ccm128.c \ 384 crypto/modes/cfb128.c \ 385 crypto/modes/ctr128.c \ 386 crypto/modes/gcm128.c \ 387 crypto/modes/ofb128.c \ 388 crypto/modes/xts128.c \ 389 crypto/o_init.c \ 390 crypto/objects/o_names.c \ 391 crypto/objects/obj_dat.c \ 392 crypto/objects/obj_err.c \ 393 crypto/objects/obj_lib.c \ 394 crypto/objects/obj_xref.c \ 395 crypto/ocsp/ocsp_asn.c \ 396 crypto/ocsp/ocsp_cl.c \ 397 crypto/ocsp/ocsp_err.c \ 398 crypto/ocsp/ocsp_ext.c \ 399 crypto/ocsp/ocsp_ht.c \ 400 crypto/ocsp/ocsp_lib.c \ 401 crypto/ocsp/ocsp_prn.c \ 402 crypto/ocsp/ocsp_srv.c \ 403 crypto/ocsp/ocsp_vfy.c \ 404 crypto/pem/pem_all.c \ 405 crypto/pem/pem_err.c \ 406 crypto/pem/pem_info.c \ 407 crypto/pem/pem_lib.c \ 408 crypto/pem/pem_oth.c \ 409 crypto/pem/pem_pk8.c \ 410 crypto/pem/pem_pkey.c \ 411 crypto/pem/pem_seal.c \ 412 crypto/pem/pem_sign.c \ 413 crypto/pem/pem_x509.c \ 414 crypto/pem/pem_xaux.c \ 415 crypto/pem/pvkfmt.c \ 416 crypto/pkcs12/p12_add.c \ 417 crypto/pkcs12/p12_asn.c \ 418 crypto/pkcs12/p12_attr.c \ 419 crypto/pkcs12/p12_crpt.c \ 420 crypto/pkcs12/p12_crt.c \ 421 crypto/pkcs12/p12_decr.c \ 422 crypto/pkcs12/p12_init.c \ 423 crypto/pkcs12/p12_key.c \ 424 crypto/pkcs12/p12_kiss.c \ 425 crypto/pkcs12/p12_mutl.c \ 426 crypto/pkcs12/p12_npas.c \ 427 crypto/pkcs12/p12_p8d.c \ 428 crypto/pkcs12/p12_p8e.c \ 429 crypto/pkcs12/p12_utl.c \ 430 crypto/pkcs12/pk12err.c \ 431 crypto/pkcs7/pk7_asn1.c \ 432 crypto/pkcs7/pk7_attr.c \ 433 crypto/pkcs7/pk7_doit.c \ 434 crypto/pkcs7/pk7_lib.c crypto/\ 435 crypto/pkcs7/pk7_mime.c \ 436 crypto/pkcs7/pk7_smime.c \ 437 crypto/pkcs7/pkcs7err.c \ 438 crypto/pqueue/pqueue.c \ 439 crypto/rand/md_rand.c \ 440 crypto/rand/rand_egd.c \ 441 crypto/rand/rand_err.c \ 442 crypto/rand/rand_lib.c \ 443 crypto/rand/rand_unix.c \ 444 crypto/rand/rand_win.c \ 445 crypto/rand/randfile.c \ 446 crypto/rc2/rc2_cbc.c \ 447 crypto/rc2/rc2_ecb.c \ 448 crypto/rc2/rc2_skey.c \ 449 crypto/rc2/rc2cfb64.c \ 450 crypto/rc2/rc2ofb64.c \ 451 crypto/rc4/rc4_enc.c \ 452 crypto/rc4/rc4_skey.c \ 453 crypto/rc4/rc4_utl.c \ 454 crypto/ripemd/rmd_dgst.c \ 455 crypto/ripemd/rmd_one.c \ 456 crypto/rsa/rsa_ameth.c \ 457 crypto/rsa/rsa_asn1.c \ 458 crypto/rsa/rsa_chk.c \ 459 crypto/rsa/rsa_crpt.c \ 460 crypto/rsa/rsa_eay.c \ 461 crypto/rsa/rsa_err.c \ 462 crypto/rsa/rsa_gen.c \ 463 crypto/rsa/rsa_lib.c \ 464 crypto/rsa/rsa_none.c \ 465 crypto/rsa/rsa_null.c \ 466 crypto/rsa/rsa_oaep.c \ 467 crypto/rsa/rsa_pk1.c \ 468 crypto/rsa/rsa_pmeth.c \ 469 crypto/rsa/rsa_prn.c \ 470 crypto/rsa/rsa_pss.c \ 471 crypto/rsa/rsa_saos.c \ 472 crypto/rsa/rsa_sign.c \ 473 crypto/rsa/rsa_ssl.c \ 474 crypto/rsa/rsa_x931.c \ 475 crypto/sha/sha1_one.c \ 476 crypto/sha/sha1dgst.c \ 477 crypto/sha/sha256.c \ 478 crypto/sha/sha512.c \ 479 crypto/sha/sha_dgst.c \ 480 crypto/srp/srp_lib.c \ 481 crypto/srp/srp_vfy.c \ 482 crypto/stack/stack.c \ 483 crypto/ts/ts_err.c \ 484 crypto/txt_db/txt_db.c \ 485 crypto/ui/ui_compat.c \ 486 crypto/ui/ui_err.c \ 487 crypto/ui/ui_lib.c \ 488 crypto/ui/ui_openssl.c \ 489 crypto/ui/ui_util.c \ 490 crypto/x509/by_dir.c \ 491 crypto/x509/by_file.c \ 492 crypto/x509/x509_att.c \ 493 crypto/x509/x509_cmp.c \ 494 crypto/x509/x509_d2.c \ 495 crypto/x509/x509_def.c \ 496 crypto/x509/x509_err.c \ 497 crypto/x509/x509_ext.c \ 498 crypto/x509/x509_lu.c \ 499 crypto/x509/x509_obj.c \ 500 crypto/x509/x509_r2x.c \ 501 crypto/x509/x509_req.c \ 502 crypto/x509/x509_set.c \ 503 crypto/x509/x509_trs.c \ 504 crypto/x509/x509_txt.c \ 505 crypto/x509/x509_v3.c \ 506 crypto/x509/x509_vfy.c \ 507 crypto/x509/x509_vpm.c \ 508 crypto/x509/x509cset.c \ 509 crypto/x509/x509name.c \ 510 crypto/x509/x509rset.c \ 511 crypto/x509/x509spki.c \ 512 crypto/x509/x509type.c \ 513 crypto/x509/x_all.c \ 514 crypto/x509v3/pcy_cache.c \ 515 crypto/x509v3/pcy_data.c \ 516 crypto/x509v3/pcy_lib.c \ 517 crypto/x509v3/pcy_map.c \ 518 crypto/x509v3/pcy_node.c \ 519 crypto/x509v3/pcy_tree.c \ 520 crypto/x509v3/v3_akey.c \ 521 crypto/x509v3/v3_akeya.c \ 522 crypto/x509v3/v3_alt.c \ 523 crypto/x509v3/v3_bcons.c \ 524 crypto/x509v3/v3_bitst.c \ 525 crypto/x509v3/v3_conf.c \ 526 crypto/x509v3/v3_cpols.c \ 527 crypto/x509v3/v3_crld.c \ 528 crypto/x509v3/v3_enum.c \ 529 crypto/x509v3/v3_extku.c \ 530 crypto/x509v3/v3_genn.c \ 531 crypto/x509v3/v3_ia5.c \ 532 crypto/x509v3/v3_info.c \ 533 crypto/x509v3/v3_int.c \ 534 crypto/x509v3/v3_lib.c \ 535 crypto/x509v3/v3_ncons.c \ 536 crypto/x509v3/v3_ocsp.c \ 537 crypto/x509v3/v3_pci.c \ 538 crypto/x509v3/v3_pcia.c \ 539 crypto/x509v3/v3_pcons.c \ 540 crypto/x509v3/v3_pku.c \ 541 crypto/x509v3/v3_pmaps.c \ 542 crypto/x509v3/v3_prn.c \ 543 crypto/x509v3/v3_purp.c \ 544 crypto/x509v3/v3_skey.c \ 545 crypto/x509v3/v3_sxnet.c \ 546 crypto/x509v3/v3_utl.c \ 547 crypto/x509v3/v3err.c 548 549local_c_includes := \ 550 external/openssl \ 551 external/openssl/crypto \ 552 external/openssl/crypto/asn1 \ 553 external/openssl/crypto/evp \ 554 external/openssl/crypto/modes \ 555 external/openssl/include \ 556 external/openssl/include/openssl \ 557 external/zlib 558 559local_c_flags := -DNO_WINDOWS_BRAINDEATH 560 561local_as_flags := -x assembler-with-cpp 562 563local_c_includes += $(log_c_includes) 564 565local_additional_dependencies := $(LOCAL_PATH)/android-config.mk $(LOCAL_PATH)/Crypto.mk 566 567####################################### 568# target static library 569include $(CLEAR_VARS) 570include $(LOCAL_PATH)/android-config.mk 571 572LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 573 574ifeq ($(TARGET_ARCH),arm) 575LOCAL_SDK_VERSION := 9 576endif 577 578LOCAL_SRC_FILES += $(local_src_files) 579LOCAL_CFLAGS += $(local_c_flags) 580LOCAL_ASFLAGS += $(local_as_flags) 581LOCAL_C_INCLUDES += $(local_c_includes) 582ifeq ($(TARGET_ARCH),arm) 583 LOCAL_SRC_FILES += $(arm_src_files) 584 LOCAL_CFLAGS += $(arm_cflags) 585endif 586ifeq ($(TARGET_ARCH),mips) 587 ifneq (($TARGET_HAS_BIGENDIAN),true) 588 LOCAL_SRC_FILES += $(mips_src_files) 589 LOCAL_CFLAGS += $(mips_cflags) 590 else 591 LOCAL_SRC_FILES += $(other_arch_src_files) 592 endif 593endif 594ifeq ($(TARGET_ARCH),x86) 595 LOCAL_SRC_FILES += $(x86_src_files) 596 LOCAL_SRC_FILES := $(filter-out $(x86_exclude_files),$(LOCAL_SRC_FILES)) 597 LOCAL_CFLAGS += $(x86_cflags) 598endif 599LOCAL_MODULE_TAGS := optional 600LOCAL_MODULE:= libcrypto_static 601LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 602include $(BUILD_STATIC_LIBRARY) 603 604####################################### 605# target shared library 606include $(CLEAR_VARS) 607include $(LOCAL_PATH)/android-config.mk 608 609LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 610 611ifeq ($(TARGET_ARCH),arm) 612LOCAL_SDK_VERSION := 9 613# Use the NDK prebuilt libdl. 614LOCAL_LDFLAGS += -ldl 615else 616LOCAL_SHARED_LIBRARIES += libdl 617endif 618 619LOCAL_SRC_FILES += $(local_src_files) 620LOCAL_CFLAGS += $(local_c_flags) 621LOCAL_ASFLAGS += $(local_as_flags) 622LOCAL_C_INCLUDES += $(local_c_includes) 623ifeq ($(TARGET_ARCH),arm) 624 LOCAL_SRC_FILES += $(arm_src_files) 625 LOCAL_CFLAGS += $(arm_cflags) 626endif 627ifeq ($(TARGET_ARCH),mips) 628 ifneq (($TARGET_HAS_BIGENDIAN),true) 629 LOCAL_SRC_FILES += $(mips_src_files) 630 LOCAL_CFLAGS += $(mips_cflags) 631 else 632 LOCAL_SRC_FILES += $(other_arch_src_files) 633 endif 634endif 635ifeq ($(TARGET_ARCH),x86) 636 LOCAL_SRC_FILES += $(x86_src_files) 637 LOCAL_SRC_FILES := $(filter-out $(x86_exclude_files),$(LOCAL_SRC_FILES)) 638 LOCAL_CFLAGS += $(x86_cflags) 639endif 640LOCAL_MODULE_TAGS := optional 641LOCAL_MODULE:= libcrypto 642LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 643include $(BUILD_SHARED_LIBRARY) 644 645####################################### 646# host shared library 647include $(CLEAR_VARS) 648include $(LOCAL_PATH)/android-config.mk 649LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 650LOCAL_SRC_FILES += $(local_src_files) 651ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86) 652 LOCAL_SRC_FILES += $(x86_src_files) 653 LOCAL_SRC_FILES := $(filter-out $(x86_exclude_files),$(LOCAL_SRC_FILES)) 654 LOCAL_CFLAGS += $(x86_cflags) 655else 656 LOCAL_SRC_FILES += $(other_arch_src_files) 657endif 658LOCAL_CFLAGS += $(local_c_flags) -DPURIFY 659LOCAL_ASFLAGS += $(local_as_flags) 660LOCAL_C_INCLUDES += $(local_c_includes) 661LOCAL_LDLIBS += -ldl 662LOCAL_MODULE_TAGS := optional 663LOCAL_MODULE:= libcrypto 664LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 665include $(BUILD_HOST_SHARED_LIBRARY) 666 667######################################## 668# host static library, which is used by some SDK tools. 669 670include $(CLEAR_VARS) 671include $(LOCAL_PATH)/android-config.mk 672LOCAL_SHARED_LIBRARIES := $(log_shared_libraries) 673LOCAL_SRC_FILES += $(local_src_files) 674ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86) 675 LOCAL_SRC_FILES += $(x86_src_files) 676 LOCAL_SRC_FILES := $(filter-out $(x86_exclude_files),$(LOCAL_SRC_FILES)) 677 LOCAL_CFLAGS += $(x86_cflags) 678else 679 LOCAL_SRC_FILES += $(other_arch_src_files) 680endif 681LOCAL_CFLAGS += $(local_c_flags) -DPURIFY 682LOCAL_ASFLAGS += $(local_as_flags) 683LOCAL_C_INCLUDES += $(local_c_includes) 684LOCAL_LDLIBS += -ldl 685LOCAL_MODULE_TAGS := optional 686LOCAL_MODULE:= libcrypto_static 687LOCAL_ADDITIONAL_DEPENDENCIES := $(local_additional_dependencies) 688include $(BUILD_HOST_STATIC_LIBRARY) 689