starter: Only try to start pluto on Android if it is actually enabled.
[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
26 ifneq ($(strongswan_BUILD_PLUTO),)
27 LOCAL_CFLAGS += -DSTART_PLUTO
28 endif
29
30 LOCAL_MODULE := starter
31
32 LOCAL_ARM_MODE := arm
33
34 LOCAL_PRELINK_MODULE := false
35
36 LOCAL_SHARED_LIBRARIES += libstrongswan libfreeswan
37
38 include $(BUILD_EXECUTABLE)
39