Starter depends on whack/stroke on Android.
[strongswan.git] / src / starter / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 # copy-n-paste from Makefile.am (update for LEX/YACC)
5 LOCAL_SRC_FILES := \
6 parser.c lexer.c ipsec-parser.h netkey.c args.h netkey.h \
7 starterwhack.c starterwhack.h starterstroke.c invokepluto.c confread.c \
8 starterstroke.h interfaces.c invokepluto.h confread.h interfaces.h args.c \
9 keywords.c files.h keywords.h cmp.c starter.c cmp.h exec.c invokecharon.c \
10 exec.h invokecharon.h loglite.c klips.c klips.h
11
12 # build starter ----------------------------------------------------------------
13
14 LOCAL_C_INCLUDES += \
15 $(libvstr_PATH) \
16 $(strongswan_PATH)/src/libhydra \
17 $(strongswan_PATH)/src/libfreeswan \
18 $(strongswan_PATH)/src/libstrongswan \
19 $(strongswan_PATH)/src/libfreeswan \
20 $(strongswan_PATH)/src/pluto \
21 $(strongswan_PATH)/src/whack \
22 $(strongswan_PATH)/src/stroke
23
24 LOCAL_CFLAGS := $(strongswan_CFLAGS) -DSTART_CHARON \
25 -DPLUGINS='"$(strongswan_STARTER_PLUGINS)"'
26
27 ifneq ($(strongswan_BUILD_PLUTO),)
28 LOCAL_CFLAGS += -DSTART_PLUTO
29 endif
30
31 LOCAL_MODULE := starter
32
33 LOCAL_MODULE_TAGS := optional
34
35 LOCAL_ARM_MODE := arm
36
37 LOCAL_PRELINK_MODULE := false
38
39 LOCAL_REQUIRED_MODULES := stroke
40 ifneq ($(strongswan_BUILD_PLUTO),)
41 LOCAL_REQUIRED_MODULES += whack
42 endif
43
44 LOCAL_SHARED_LIBRARIES += libstrongswan libhydra libfreeswan
45
46 include $(BUILD_EXECUTABLE)
47