android: Fix build after updating Linux headers
[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 kernel/kernel_interface.c kernel/kernel_interface.h \
8 kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
9 kernel/kernel_net.c kernel/kernel_net.h \
10 kernel/kernel_listener.h
11
12 LOCAL_SRC_FILES := $(filter %.c,$(libhydra_la_SOURCES))
13
14 # adding the plugin source files
15
16 LOCAL_SRC_FILES += $(call add_plugin, kernel-pfkey)
17
18 LOCAL_SRC_FILES += $(call add_plugin, kernel-netlink)
19
20 # build libhydra ---------------------------------------------------------------
21
22 LOCAL_C_INCLUDES += \
23 $(strongswan_PATH)/src/libstrongswan
24
25 LOCAL_CFLAGS := $(strongswan_CFLAGS)
26
27 LOCAL_MODULE := libhydra
28
29 LOCAL_MODULE_TAGS := optional
30
31 LOCAL_ARM_MODE := arm
32
33 LOCAL_PRELINK_MODULE := false
34
35 LOCAL_SHARED_LIBRARIES += libstrongswan
36
37 include $(BUILD_SHARED_LIBRARY)