
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

###LOCAL_CFLAGS += -D NDEBUG -g -O2
LOCAL_CFLAGS += -D NDEBUG -Wall
LOCAL_CFLAGS += -nostdlib -fno-rtti -Wno-multichar -fno-exceptions
####LOCAL_CFLAGS += -nostdlib -Wno-multichar

###LOCAL_CFLAGS += -I /home/okamoto/dm-client-android/tools/openssl-0.9.8x/include
###LOCAL_CFLAGS += -I /home/okamoto/dm-client-android/tools/openssl-0.9.8x
LOCAL_C_INCLUDES += $(DMCATOOLS)/openssl-0.9.8x/include
LOCAL_C_INCLUDES += $(DMCATOOLS)/openssl-0.9.8x

###LOCAL_LDLIBS += -pthread

LOCAL_SRC_FILES := \
cpt_err.c \
cryptlib.c \
dyn_lck.c \
ebcdic.c \
ex_data.c \
fips_err.c \
mem.c \
mem_clr.c \
mem_dbg.c \
o_dir.c \
o_init.c \
o_str.c \
o_time.c \
tmdiff.c \
uid.c \
aes/aes_core.c \
aes/aes_misc.c \
aes/aes_ecb.c \
aes/aes_cbc.c \
aes/aes_cfb.c \
aes/aes_ofb.c \
aes/aes_ctr.c \
aes/aes_ige.c \
aes/aes_wrap.c \
asn1/a_bitstr.c \
asn1/a_bool.c \
asn1/a_bytes.c \
asn1/a_d2i_fp.c \
asn1/a_digest.c \
asn1/a_dup.c \
asn1/a_enum.c \
asn1/a_gentm.c \
asn1/a_hdr.c \
asn1/a_i2d_fp.c \
asn1/a_int.c \
asn1/a_mbstr.c \
asn1/a_meth.c \
asn1/a_object.c \
asn1/a_octet.c \
asn1/a_print.c \
asn1/a_set.c \
asn1/a_sign.c \
asn1/a_strex.c \
asn1/a_strnid.c \
asn1/a_time.c \
asn1/a_type.c \
asn1/a_utctm.c \
asn1/a_utf8.c \
asn1/a_verify.c \
asn1/asn1_err.c \
asn1/asn1_gen.c \
asn1/asn1_lib.c \
asn1/asn1_par.c \
asn1/asn_mime.c \
asn1/asn_moid.c \
asn1/asn_pack.c \
asn1/d2i_pr.c \
asn1/d2i_pu.c \
asn1/evp_asn1.c \
asn1/f_enum.c \
asn1/f_int.c \
asn1/f_string.c \
asn1/i2d_pr.c \
asn1/i2d_pu.c \
asn1/n_pkey.c \
asn1/nsseq.c \
asn1/p5_pbe.c \
asn1/p5_pbev2.c \
asn1/p8_pkey.c \
asn1/t_bitst.c \
asn1/t_crl.c \
asn1/t_pkey.c \
asn1/t_req.c \
asn1/t_spki.c \
asn1/t_x509.c \
asn1/t_x509a.c \
asn1/tasn_dec.c \
asn1/tasn_enc.c \
asn1/tasn_fre.c \
asn1/tasn_new.c \
asn1/tasn_typ.c \
asn1/tasn_utl.c \
asn1/x_algor.c \
asn1/x_attrib.c \
asn1/x_bignum.c \
asn1/x_crl.c \
asn1/x_exten.c \
asn1/x_info.c \
asn1/x_long.c \
asn1/x_name.c \
asn1/x_pkey.c \
asn1/x_pubkey.c \
asn1/x_req.c \
asn1/x_sig.c \
asn1/x_spki.c \
asn1/x_val.c \
asn1/x_x509.c \
asn1/x_x509a.c \
bio/b_dump.c \
bio/b_print.c \
bio/b_sock.c \
bio/bf_buff.c \
bio/bf_nbio.c \
bio/bf_null.c \
bio/bio_cb.c \
bio/bio_err.c \
bio/bio_lib.c \
bio/bss_acpt.c \
bio/bss_bio.c \
bio/bss_conn.c \
bio/bss_dgram.c \
bio/bss_fd.c \
bio/bss_file.c \
bio/bss_log.c \
bio/bss_mem.c \
bio/bss_null.c \
bio/bss_sock.c \
bn/bn_add.c \
bn/bn_div.c \
bn/bn_exp.c \
bn/bn_lib.c \
bn/bn_ctx.c \
bn/bn_mul.c \
bn/bn_mod.c \
bn/bn_print.c \
bn/bn_rand.c \
bn/bn_shift.c \
bn/bn_word.c \
bn/bn_blind.c \
bn/bn_kron.c \
bn/bn_sqrt.c \
bn/bn_gcd.c \
bn/bn_prime.c \
bn/bn_err.c \
bn/bn_sqr.c \
bn/bn_asm.c \
bn/bn_recp.c \
bn/bn_mont.c \
bn/bn_mpi.c \
bn/bn_exp2.c \
bn/bn_gf2m.c \
bn/bn_nist.c \
bn/bn_depr.c \
bn/bn_x931p.c \
bn/bn_const.c \
bn/bn_opt.c \
buffer/buffer.c \
buffer/buf_str.c \
buffer/buf_err.c \
engine/eng_all.c \
engine/eng_cnf.c \
engine/eng_cryptodev.c \
engine/eng_ctrl.c \
engine/eng_dyn.c \
engine/eng_err.c \
engine/eng_fat.c \
engine/eng_init.c \
engine/eng_lib.c \
engine/eng_list.c \
engine/eng_openssl.c \
engine/eng_padlock.c \
engine/eng_pkey.c \
engine/eng_table.c \
engine/tb_cipher.c \
engine/tb_dh.c \
engine/tb_digest.c \
engine/tb_dsa.c \
engine/tb_ecdh.c \
engine/tb_ecdsa.c \
engine/tb_rand.c \
engine/tb_rsa.c \
engine/tb_store.c \
err/err.c \
err/err_def.c \
err/err_all.c \
err/err_prn.c \
err/err_str.c \
err/err_bio.c \
evp/bio_b64.c \
evp/bio_enc.c \
evp/bio_md.c \
evp/bio_ok.c \
evp/c_all.c \
evp/c_allc.c \
evp/c_alld.c \
evp/dig_eng.c \
evp/digest.c \
evp/e_aes.c \
evp/e_bf.c \
evp/e_camellia.c \
evp/e_cast.c \
evp/e_des.c \
evp/e_des3.c \
evp/e_idea.c \
evp/e_null.c \
evp/e_old.c \
evp/e_rc2.c \
evp/e_rc4.c \
evp/e_rc5.c \
evp/e_seed.c \
evp/e_xcbc_d.c \
evp/enc_min.c \
evp/encode.c \
evp/evp_acnf.c \
evp/evp_cnf.c \
evp/evp_enc.c \
evp/evp_err.c \
evp/evp_key.c \
evp/evp_lib.c \
evp/evp_pbe.c \
evp/evp_pkey.c \
evp/m_dss.c \
evp/m_dss1.c \
evp/m_ecdsa.c \
evp/m_md2.c \
evp/m_md4.c \
evp/m_md5.c \
evp/m_mdc2.c \
evp/m_null.c \
evp/m_ripemd.c \
evp/m_sha.c \
evp/m_sha1.c \
evp/names.c \
evp/p5_crpt.c \
evp/p5_crpt2.c \
evp/p_dec.c \
evp/p_enc.c \
evp/p_lib.c \
evp/p_open.c \
evp/p_seal.c \
evp/p_sign.c \
evp/p_verify.c \
hmac/hmac.c \
lhash/lhash.c \
lhash/lh_stats.c \
objects/o_names.c \
objects/obj_dat.c \
objects/obj_lib.c \
objects/obj_err.c \
rand/md_rand.c \
rand/randfile.c \
rand/rand_lib.c \
rand/rand_eng.c \
rand/rand_err.c \
rand/rand_egd.c \
rand/rand_win.c \
rand/rand_unix.c \
rand/rand_os2.c \
rand/rand_nw.c \
rsa/rsa_eay.c \
rsa/rsa_gen.c \
rsa/rsa_lib.c \
rsa/rsa_sign.c \
rsa/rsa_saos.c \
rsa/rsa_err.c \
rsa/rsa_pk1.c \
rsa/rsa_ssl.c \
rsa/rsa_none.c \
rsa/rsa_oaep.c \
rsa/rsa_chk.c \
rsa/rsa_null.c \
rsa/rsa_pss.c \
rsa/rsa_x931.c \
rsa/rsa_x931g.c \
rsa/rsa_asn1.c \
rsa/rsa_depr.c \
rsa/rsa_eng.c \
sha/sha_dgst.c \
sha/sha1dgst.c \
sha/sha_one.c \
sha/sha1_one.c \
sha/sha256.c \
sha/sha512.c \
stack/stack.c

LOCAL_MODULE:= libcrypto

include $(BUILD_STATIC_LIBRARY)

