starter: Add new bison/flex based parser for ipsec.conf
[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 starter_SOURCES := \
6 starter.c files.h \
7 parser/parser.c parser/lexer.c parser/conf_parser.c parser/conf_parser.h \
8 parser.c lexer.c ipsec-parser.h args.c args.h \
9 confread.c confread.h keywords.c keywords.h cmp.c cmp.h \
10 invokecharon.c invokecharon.h starterstroke.c starterstroke.h \
11 netkey.c netkey.h klips.c klips.h
12
13 LOCAL_SRC_FILES := $(filter %.c,$(starter_SOURCES))
14
15 # build starter ----------------------------------------------------------------
16
17 LOCAL_C_INCLUDES += \
18 $(strongswan_PATH)/src/libhydra \
19 $(strongswan_PATH)/src/libstrongswan \
20 $(strongswan_PATH)/src/starter \
21 $(strongswan_PATH)/src/stroke
22
23 LOCAL_CFLAGS := $(strongswan_CFLAGS) -DSTART_CHARON \
24 -DIPSEC_SCRIPT='"ipsec"' \
25 -DPLUGINS='"$(strongswan_STARTER_PLUGINS)"'
26
27 LOCAL_MODULE := starter
28
29 LOCAL_MODULE_TAGS := optional
30
31 LOCAL_ARM_MODE := arm
32
33 LOCAL_PRELINK_MODULE := false
34
35 LOCAL_REQUIRED_MODULES := stroke
36
37 LOCAL_SHARED_LIBRARIES += libstrongswan libhydra
38
39 include $(BUILD_EXECUTABLE)
40