LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := samples LOCAL_MODULE:= libruby RUBY_TOP:= ruby-1.9.1-rc1 LOCAL_SRC_FILES:= \ $(RUBY_TOP)/array.c \ $(RUBY_TOP)/bignum.c \ $(RUBY_TOP)/class.c \ $(RUBY_TOP)/compar.c \ $(RUBY_TOP)/compile.c \ $(RUBY_TOP)/complex.c \ $(RUBY_TOP)/cont.c \ $(RUBY_TOP)/debug.c \ $(RUBY_TOP)/dir.c \ $(RUBY_TOP)/dln.c \ $(RUBY_TOP)/enc/ascii.c \ $(RUBY_TOP)/enc/unicode.c \ $(RUBY_TOP)/enc/us_ascii.c \ $(RUBY_TOP)/enc/utf_8.c \ $(RUBY_TOP)/encoding.c \ $(RUBY_TOP)/enum.c \ $(RUBY_TOP)/enumerator.c \ $(RUBY_TOP)/error.c \ $(RUBY_TOP)/eval.c \ $(RUBY_TOP)/ext/bigdecimal/bigdecimal.c \ $(RUBY_TOP)/ext/continuation/continuation.c \ $(RUBY_TOP)/ext/coverage/coverage.c \ $(RUBY_TOP)/ext/digest/bubblebabble/bubblebabble.c \ $(RUBY_TOP)/ext/digest/digest.c \ $(RUBY_TOP)/ext/digest/md5/md5.c \ $(RUBY_TOP)/ext/digest/md5/md5init.c \ $(RUBY_TOP)/ext/digest/rmd160/rmd160.c \ $(RUBY_TOP)/ext/digest/rmd160/rmd160init.c \ $(RUBY_TOP)/ext/digest/sha1/sha1.c \ $(RUBY_TOP)/ext/digest/sha1/sha1init.c \ $(RUBY_TOP)/ext/digest/sha2/sha2.c \ $(RUBY_TOP)/ext/digest/sha2/sha2init.c \ $(RUBY_TOP)/ext/dl/callback-0.c \ $(RUBY_TOP)/ext/dl/callback-1.c \ $(RUBY_TOP)/ext/dl/callback-2.c \ $(RUBY_TOP)/ext/dl/callback-3.c \ $(RUBY_TOP)/ext/dl/callback-4.c \ $(RUBY_TOP)/ext/dl/callback-5.c \ $(RUBY_TOP)/ext/dl/callback-6.c \ $(RUBY_TOP)/ext/dl/callback-7.c \ $(RUBY_TOP)/ext/dl/callback-8.c \ $(RUBY_TOP)/ext/dl/cfunc.c \ $(RUBY_TOP)/ext/dl/cptr.c \ $(RUBY_TOP)/ext/dl/dl.c \ $(RUBY_TOP)/ext/dl/handle.c \ $(RUBY_TOP)/ext/etc/etc.c \ $(RUBY_TOP)/ext/extinit.c \ $(RUBY_TOP)/ext/fcntl/fcntl.c \ $(RUBY_TOP)/ext/fiber/fiber.c \ $(RUBY_TOP)/ext/io/wait/wait.c \ $(RUBY_TOP)/ext/json/ext/generator/generator.c \ $(RUBY_TOP)/ext/json/ext/generator/json_generator_unicode.c \ $(RUBY_TOP)/ext/json/ext/parser/json_parser_unicode.c \ $(RUBY_TOP)/ext/json/ext/parser/parser.c \ $(RUBY_TOP)/ext/mathn/complex/mathn_complex.c \ $(RUBY_TOP)/ext/mathn/rational/mathn_rational.c \ $(RUBY_TOP)/ext/nkf/nkf.c \ $(RUBY_TOP)/ext/openssl/bn_depr.c \ $(RUBY_TOP)/ext/openssl/openssl_missing.c \ $(RUBY_TOP)/ext/openssl/ossl.c \ $(RUBY_TOP)/ext/openssl/ossl_asn1.c \ $(RUBY_TOP)/ext/openssl/ossl_bio.c \ $(RUBY_TOP)/ext/openssl/ossl_bn.c \ $(RUBY_TOP)/ext/openssl/ossl_cipher.c \ $(RUBY_TOP)/ext/openssl/ossl_config.c \ $(RUBY_TOP)/ext/openssl/ossl_digest.c \ $(RUBY_TOP)/ext/openssl/ossl_engine.c \ $(RUBY_TOP)/ext/openssl/ossl_hmac.c \ $(RUBY_TOP)/ext/openssl/ossl_ns_spki.c \ $(RUBY_TOP)/ext/openssl/ossl_ocsp.c \ $(RUBY_TOP)/ext/openssl/ossl_pkcs12.c \ $(RUBY_TOP)/ext/openssl/ossl_pkcs5.c \ $(RUBY_TOP)/ext/openssl/ossl_pkcs7.c \ $(RUBY_TOP)/ext/openssl/ossl_pkey.c \ $(RUBY_TOP)/ext/openssl/ossl_pkey_dh.c \ $(RUBY_TOP)/ext/openssl/ossl_pkey_dsa.c \ $(RUBY_TOP)/ext/openssl/ossl_pkey_ec.c \ $(RUBY_TOP)/ext/openssl/ossl_pkey_rsa.c \ $(RUBY_TOP)/ext/openssl/ossl_rand.c \ $(RUBY_TOP)/ext/openssl/ossl_ssl.c \ $(RUBY_TOP)/ext/openssl/ossl_ssl_session.c \ $(RUBY_TOP)/ext/openssl/ossl_x509.c \ $(RUBY_TOP)/ext/openssl/ossl_x509attr.c \ $(RUBY_TOP)/ext/openssl/ossl_x509cert.c \ $(RUBY_TOP)/ext/openssl/ossl_x509crl.c \ $(RUBY_TOP)/ext/openssl/ossl_x509ext.c \ $(RUBY_TOP)/ext/openssl/ossl_x509name.c \ $(RUBY_TOP)/ext/openssl/ossl_x509req.c \ $(RUBY_TOP)/ext/openssl/ossl_x509revoked.c \ $(RUBY_TOP)/ext/openssl/ossl_x509store.c \ $(RUBY_TOP)/ext/openssl/rsa_depr.c \ $(RUBY_TOP)/ext/pty/pty.c \ $(RUBY_TOP)/ext/racc/cparse/cparse.c \ $(RUBY_TOP)/ext/ripper/ripper.c \ $(RUBY_TOP)/ext/sdbm/_sdbm.c \ $(RUBY_TOP)/ext/sdbm/init.c \ $(RUBY_TOP)/ext/socket/socket.c \ $(RUBY_TOP)/ext/stringio/stringio.c \ $(RUBY_TOP)/ext/strscan/strscan.c \ $(RUBY_TOP)/ext/syck/bytecode.c \ $(RUBY_TOP)/ext/syck/emitter.c \ $(RUBY_TOP)/ext/syck/gram.c \ $(RUBY_TOP)/ext/syck/handler.c \ $(RUBY_TOP)/ext/syck/implicit.c \ $(RUBY_TOP)/ext/syck/node.c \ $(RUBY_TOP)/ext/syck/rubyext.c \ $(RUBY_TOP)/ext/syck/syck.c \ $(RUBY_TOP)/ext/syck/token.c \ $(RUBY_TOP)/ext/syck/yaml2byte.c \ $(RUBY_TOP)/ext/syslog/syslog.c \ $(RUBY_TOP)/ext/zlib/zlib.c \ $(RUBY_TOP)/file.c \ $(RUBY_TOP)/gc.c \ $(RUBY_TOP)/hash.c \ $(RUBY_TOP)/inits.c \ $(RUBY_TOP)/io.c \ $(RUBY_TOP)/iseq.c \ $(RUBY_TOP)/load.c \ $(RUBY_TOP)/marshal.c \ $(RUBY_TOP)/math.c \ $(RUBY_TOP)/missing/crypt.c \ $(RUBY_TOP)/missing/dup2.c \ $(RUBY_TOP)/missing/flock.c \ $(RUBY_TOP)/missing/memcmp.c \ $(RUBY_TOP)/newline.c \ $(RUBY_TOP)/numeric.c \ $(RUBY_TOP)/object.c \ $(RUBY_TOP)/pack.c \ $(RUBY_TOP)/parse.c \ $(RUBY_TOP)/prelude.c \ $(RUBY_TOP)/proc.c \ $(RUBY_TOP)/process.c \ $(RUBY_TOP)/random.c \ $(RUBY_TOP)/range.c \ $(RUBY_TOP)/rational.c \ $(RUBY_TOP)/re.c \ $(RUBY_TOP)/regcomp.c \ $(RUBY_TOP)/regenc.c \ $(RUBY_TOP)/regerror.c \ $(RUBY_TOP)/regexec.c \ $(RUBY_TOP)/regparse.c \ $(RUBY_TOP)/regsyntax.c \ $(RUBY_TOP)/ruby.c \ $(RUBY_TOP)/safe.c \ $(RUBY_TOP)/signal.c \ $(RUBY_TOP)/sprintf.c \ $(RUBY_TOP)/st.c \ $(RUBY_TOP)/strftime.c \ $(RUBY_TOP)/string.c \ $(RUBY_TOP)/struct.c \ $(RUBY_TOP)/thread.c \ $(RUBY_TOP)/time.c \ $(RUBY_TOP)/transcode.c \ $(RUBY_TOP)/util.c \ $(RUBY_TOP)/variable.c \ $(RUBY_TOP)/version.c \ $(RUBY_TOP)/vm.c \ $(RUBY_TOP)/vm_dump.c LOCAL_SHARED_LIBRARIES := \ libcrypto \ libssl \ libz \ libdl LOCAL_C_INCLUDES += \ external/openssl/include \ external/zlib \ $(LOCAL_PATH)/$(RUBY_TOP) \ $(LOCAL_PATH)/$(RUBY_TOP)/.ext/include/arm-linux \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/bigdecimal \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/continuation \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/coverage \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/digest \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/digest/bubblebabble \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/digest/md5 \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/digest/rmd160 \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/digest/sha1 \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/digest/sha2 \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/dl \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/etc \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/fcntl \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/fiber \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/io/wait \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/json/ext/generator \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/json/ext/parser \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/mathn/complex \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/mathn/rational \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/nkf \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/openssl \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/pty \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/racc/cparse \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/ripper \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/sdbm \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/socket \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/stringio \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/strscan \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/syck \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/syslog \ $(LOCAL_PATH)/$(RUBY_TOP)/ext/zlib \ $(LOCAL_PATH)/$(RUBY_TOP)/include LOCAL_CFLAGS += \ -DHAVE_GETCWD \ -DHAVE_FORK \ -DOPENSSL_NO_STATIC_ENGINE \ -DRUBY_EXPORT \ -DRUBY_EXTCONF_H=\"rubyextconf.h\" \ -include fcntl.h \ -include stdio.h \ -include sys/mman.h \ -include unistd.h LOCAL_PRELINK_MODULE := false include $(BUILD_SHARED_LIBRARY)