Merge branch 'modular-load'
[strongswan.git] / src / libhydra / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 # copy-n-paste from Makefile.am
5 libhydra_la_SOURCES := \
6 hydra.c hydra.h \
7 attributes/attributes.c attributes/attributes.h \
8 attributes/attribute_provider.h attributes/attribute_handler.h \
9 attributes/attribute_manager.c attributes/attribute_manager.h \
10 attributes/mem_pool.c attributes/mem_pool.h \
11 kernel/kernel_interface.c kernel/kernel_interface.h \
12 kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
13 kernel/kernel_net.c kernel/kernel_net.h \
14 kernel/kernel_listener.h
15
16 LOCAL_SRC_FILES := $(filter %.c,$(libhydra_la_SOURCES))
17
18 # adding the plugin source files
19
20 LOCAL_SRC_FILES += $(call add_plugin, attr)
21
22 LOCAL_SRC_FILES += $(call add_plugin, kernel-pfkey)
23
24 LOCAL_SRC_FILES += $(call add_plugin, kernel-netlink)
25
26 # build libhydra ---------------------------------------------------------------
27
28 LOCAL_C_INCLUDES += \
29 $(strongswan_PATH)/src/include \
30 $(strongswan_PATH)/src/libstrongswan
31
32 LOCAL_CFLAGS := $(strongswan_CFLAGS)
33
34 LOCAL_MODULE := libhydra
35
36 LOCAL_MODULE_TAGS := optional
37
38 LOCAL_ARM_MODE := arm
39
40 LOCAL_PRELINK_MODULE := false
41
42 LOCAL_SHARED_LIBRARIES += libstrongswan
43
44 include $(BUILD_SHARED_LIBRARY)
45