blob: 70db167333ec6182ae1f4ade70c417e69d7761b3 [file] [log] [blame]
Alexandre Savard75410672012-08-08 09:50:01 -04001# Copyright 2006 The Android Open Source Project
2
3LOCAL_PATH:= $(call my-dir)
4
5local_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
55local_shared_libraries := \
56 libssl \
57 libcrypto
58
59local_c_includes := \
Alexandre Savard134c3282012-08-09 14:20:53 -040060 $(LOCAL_PATH)/.. \
61 $(LOCAL_PATH)/../include \
Alexandre Savard75410672012-08-08 09:50:01 -040062 external/openssl \
63 external/openssl/include
64
65local_cflags := -DMONOLITH
66
67# These flags omit whole features from the commandline "openssl".
68# However, portions of these features are actually turned on.
69local_cflags += -DOPENSSL_NO_DTLS1
70
71include $(CLEAR_VARS)
72LOCAL_MODULE:= openssl
73LOCAL_MODULE_TAGS := optional
74LOCAL_SRC_FILES := $(local_src_files)
75LOCAL_SHARED_LIBRARIES := $(local_shared_libraries)
76LOCAL_C_INCLUDES := $(local_c_includes)
77LOCAL_CFLAGS := $(local_cflags)
78include $(LOCAL_PATH)/../android-config.mk
79include $(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)