Alexandre Savard | 7541067 | 2012-08-08 09:50:01 -0400 | [diff] [blame] | 1 | # Copyright 2006 The Android Open Source Project |
| 2 | |
| 3 | LOCAL_PATH:= $(call my-dir) |
| 4 | |
| 5 | local_src_files:= \ |
| 6 | app_rand.c \ |
| 7 | apps.c \ |
| 8 | asn1pars.c \ |
| 9 | ca.c \ |
| 10 | ciphers.c \ |
| 11 | crl.c \ |
| 12 | crl2p7.c \ |
| 13 | dgst.c \ |
| 14 | dh.c \ |
| 15 | dhparam.c \ |
| 16 | dsa.c \ |
| 17 | dsaparam.c \ |
| 18 | ecparam.c \ |
| 19 | ec.c \ |
| 20 | enc.c \ |
| 21 | engine.c \ |
| 22 | errstr.c \ |
| 23 | gendh.c \ |
| 24 | gendsa.c \ |
| 25 | genpkey.c \ |
| 26 | genrsa.c \ |
| 27 | nseq.c \ |
| 28 | ocsp.c \ |
| 29 | openssl.c \ |
| 30 | passwd.c \ |
| 31 | pkcs12.c \ |
| 32 | pkcs7.c \ |
| 33 | pkcs8.c \ |
| 34 | pkey.c \ |
| 35 | pkeyparam.c \ |
| 36 | pkeyutl.c \ |
| 37 | prime.c \ |
| 38 | rand.c \ |
| 39 | req.c \ |
| 40 | rsa.c \ |
| 41 | rsautl.c \ |
| 42 | s_cb.c \ |
| 43 | s_client.c \ |
| 44 | s_server.c \ |
| 45 | s_socket.c \ |
| 46 | s_time.c \ |
| 47 | sess_id.c \ |
| 48 | smime.c \ |
| 49 | speed.c \ |
| 50 | spkac.c \ |
| 51 | verify.c \ |
| 52 | version.c \ |
| 53 | x509.c |
| 54 | |
| 55 | local_shared_libraries := \ |
| 56 | libssl \ |
| 57 | libcrypto |
| 58 | |
| 59 | local_c_includes := \ |
Alexandre Savard | 134c328 | 2012-08-09 14:20:53 -0400 | [diff] [blame] | 60 | $(LOCAL_PATH)/.. \ |
| 61 | $(LOCAL_PATH)/../include \ |
Alexandre Savard | 7541067 | 2012-08-08 09:50:01 -0400 | [diff] [blame] | 62 | external/openssl \ |
| 63 | external/openssl/include |
| 64 | |
| 65 | local_cflags := -DMONOLITH |
| 66 | |
| 67 | # These flags omit whole features from the commandline "openssl". |
| 68 | # However, portions of these features are actually turned on. |
| 69 | local_cflags += -DOPENSSL_NO_DTLS1 |
| 70 | |
| 71 | include $(CLEAR_VARS) |
| 72 | LOCAL_MODULE:= openssl |
| 73 | LOCAL_MODULE_TAGS := optional |
| 74 | LOCAL_SRC_FILES := $(local_src_files) |
| 75 | LOCAL_SHARED_LIBRARIES := $(local_shared_libraries) |
| 76 | LOCAL_C_INCLUDES := $(local_c_includes) |
| 77 | LOCAL_CFLAGS := $(local_cflags) |
| 78 | include $(LOCAL_PATH)/../android-config.mk |
| 79 | include $(BUILD_EXECUTABLE) |
| 80 | |
| 81 | #include $(CLEAR_VARS) |
| 82 | #LOCAL_MODULE:= openssl |
| 83 | #LOCAL_MODULE_TAGS := optional |
| 84 | #LOCAL_SRC_FILES := $(local_src_files) |
| 85 | #LOCAL_SHARED_LIBRARIES := $(local_shared_libraries) |
| 86 | #LOCAL_C_INCLUDES := $(local_c_includes) |
| 87 | #LOCAL_CFLAGS := $(local_cflags) |
| 88 | #include $(LOCAL_PATH)/../android-config.mk |
| 89 | #include $(BUILD_HOST_EXECUTABLE) |