blob: c318affd243a4fc507f3c2824c3734eedf3407a5 [file] [log] [blame]
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +08001#
Chia-chi Yeh96869bd2011-03-23 11:32:28 -07002# Copyright (C) 2011 The Android Open Source Project
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +08003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080017LOCAL_PATH := $(call my-dir)
Chia-chi Yeh96869bd2011-03-23 11:32:28 -070018
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080019include $(CLEAR_VARS)
20
21LOCAL_SRC_FILES := \
Chia-chi Yehf8a6a762011-07-04 17:21:23 -070022 src/racoon/algorithm.c \
23 src/racoon/crypto_openssl.c \
24 src/racoon/genlist.c \
25 src/racoon/handler.c \
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080026 src/racoon/isakmp.c \
27 src/racoon/isakmp_agg.c \
28 src/racoon/isakmp_base.c \
Chia-chi Yeh514ffe22011-07-07 13:52:27 -070029 src/racoon/isakmp_cfg.c \
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080030 src/racoon/isakmp_frag.c \
31 src/racoon/isakmp_ident.c \
32 src/racoon/isakmp_inf.c \
33 src/racoon/isakmp_newg.c \
34 src/racoon/isakmp_quick.c \
Chia-chi Yeh514ffe22011-07-07 13:52:27 -070035 src/racoon/isakmp_unity.c \
36 src/racoon/isakmp_xauth.c \
Chia-chi Yeh2ff6ed02011-07-12 19:55:48 -070037 src/racoon/ipsec_doi.c \
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080038 src/racoon/nattraversal.c \
Chia-chi Yehf8a6a762011-07-04 17:21:23 -070039 src/racoon/oakley.c \
40 src/racoon/pfkey.c \
41 src/racoon/policy.c \
42 src/racoon/proposal.c \
43 src/racoon/remoteconf.c \
44 src/racoon/schedule.c \
45 src/racoon/sockmisc.c \
46 src/racoon/str2val.c \
47 src/racoon/strnames.c \
48 src/racoon/vendorid.c \
49 src/racoon/vmbuf.c \
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080050 main.c \
51 setup.c
52
53LOCAL_C_INCLUDES += \
54 $(LOCAL_PATH) \
55 $(LOCAL_PATH)/src/include-glibc \
56 $(LOCAL_PATH)/src/libipsec \
57 $(LOCAL_PATH)/src/racoon \
Robin Lee1a2c5e92017-03-10 16:07:39 +000058 $(LOCAL_PATH)/src/racoon/missing \
59 system/netd/include
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080060
Chia-chi Yeh96869bd2011-03-23 11:32:28 -070061LOCAL_STATIC_LIBRARIES := libipsec
62
Robin Lee1a2c5e92017-03-10 16:07:39 +000063LOCAL_SHARED_LIBRARIES := libcutils liblog libcrypto libkeystore-engine libnetd_client
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080064
Kenny Root9b8e7d02016-09-16 12:45:19 -070065LOCAL_CFLAGS := -DANDROID_CHANGES -DHAVE_CONFIG_H -D_BSD_SOURCE=1
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080066
Adam Langleya0292812014-09-30 15:20:01 -070067LOCAL_CFLAGS += -Wno-sign-compare -Wno-missing-field-initializers -Wno-unused-parameter -Wno-pointer-sign -Werror
Chia-chi Yeh514ffe22011-07-07 13:52:27 -070068
Andreas Gampea169bc02014-12-05 01:23:32 -080069# Turn off unused XXX warnings. Should be removed/fixed when syncing with upstream. b/18523687, b/18632512
70LOCAL_CFLAGS += -Wno-unused-variable \
71 -Wno-unused-but-set-variable \
72 -Wno-unused-function \
73 -Wno-unused-label \
74 -Wno-unused-value
Andreas Gampeaf1ce1a2014-11-25 11:54:06 -080075
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080076LOCAL_MODULE := racoon
77
Tom Cherrya817ca02015-08-14 13:00:13 -070078LOCAL_INIT_RC := racoon.rc
79
Chia-chi Yeh458fe1e2009-06-26 14:36:17 +080080include $(BUILD_EXECUTABLE)
81
Chia-chi Yeh96869bd2011-03-23 11:32:28 -070082##########################################################################
83
84include $(CLEAR_VARS)
85
86LOCAL_SRC_FILES := \
87 src/libipsec/pfkey.c \
88 src/libipsec/ipsec_strerror.c
89
Kenny Root9b8e7d02016-09-16 12:45:19 -070090LOCAL_CFLAGS := -DANDROID_CHANGES -DHAVE_CONFIG_H
Chia-chi Yeh96869bd2011-03-23 11:32:28 -070091
Adam Langleya0292812014-09-30 15:20:01 -070092LOCAL_CFLAGS += -Wno-sign-compare -Wno-missing-field-initializers -Wno-unused-parameter -Wno-pointer-sign -Werror
Chia-chi Yeh514ffe22011-07-07 13:52:27 -070093
Chia-chi Yeh96869bd2011-03-23 11:32:28 -070094LOCAL_C_INCLUDES += \
95 $(LOCAL_PATH) \
96 $(LOCAL_PATH)/src/include-glibc \
97 $(LOCAL_PATH)/src/libipsec
98
99LOCAL_MODULE := libipsec
100
101LOCAL_MODULE_TAGS := optional
102
103include $(BUILD_STATIC_LIBRARY)