c5d987977b7aaa1a3dfa95133308bd5e55b19073
[strongswan.git] / src / libipsec / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 # copy-n-paste from Makefile.am
5 libipsec_la_SOURCES := \
6 ipsec.c ipsec.h \
7 esp_context.c esp_context.h \
8 esp_packet.c esp_packet.h \
9 ip_packet.c ip_packet.h \
10 ipsec_event_listener.h \
11 ipsec_event_relay.c ipsec_event_relay.h \
12 ipsec_policy.c ipsec_policy.h \
13 ipsec_policy_mgr.c ipsec_policy_mgr.h \
14 ipsec_processor.c ipsec_processor.h \
15 ipsec_sa.c ipsec_sa.h \
16 ipsec_sa_mgr.c ipsec_sa_mgr.h
17
18 LOCAL_SRC_FILES := $(filter %.c,$(libipsec_la_SOURCES))
19
20 # build libipsec ---------------------------------------------------------------
21
22 LOCAL_C_INCLUDES += \
23 $(strongswan_PATH)/src/include \
24 $(strongswan_PATH)/src/libstrongswan
25
26 LOCAL_CFLAGS := $(strongswan_CFLAGS)
27
28 LOCAL_MODULE := libipsec
29
30 LOCAL_MODULE_TAGS := optional
31
32 LOCAL_ARM_MODE := arm
33
34 LOCAL_PRELINK_MODULE := false
35
36 LOCAL_SHARED_LIBRARIES += libstrongswan
37
38 include $(BUILD_SHARED_LIBRARY)
39