The parser simply returns key/value pairs of all sections, it already resolves also= and allows overriding options in all included sections (not only %default), options set in included section can also be cleared again (key=). It provides other improvements too, like quoted strings (with escape sequences), unlimited includes and better whitespace/comment handling.
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
# copy-n-paste from Makefile.am (update for LEX/YACC)
|
|
starter_SOURCES := \
|
|
starter.c files.h \
|
|
parser/parser.c parser/lexer.c parser/conf_parser.c parser/conf_parser.h \
|
|
parser.c lexer.c ipsec-parser.h args.c args.h \
|
|
confread.c confread.h keywords.c keywords.h cmp.c cmp.h \
|
|
invokecharon.c invokecharon.h starterstroke.c starterstroke.h \
|
|
netkey.c netkey.h klips.c klips.h
|
|
|
|
LOCAL_SRC_FILES := $(filter %.c,$(starter_SOURCES))
|
|
|
|
# build starter ----------------------------------------------------------------
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
$(strongswan_PATH)/src/libhydra \
|
|
$(strongswan_PATH)/src/libstrongswan \
|
|
$(strongswan_PATH)/src/starter \
|
|
$(strongswan_PATH)/src/stroke
|
|
|
|
LOCAL_CFLAGS := $(strongswan_CFLAGS) -DSTART_CHARON \
|
|
-DIPSEC_SCRIPT='"ipsec"' \
|
|
-DPLUGINS='"$(strongswan_STARTER_PLUGINS)"'
|
|
|
|
LOCAL_MODULE := starter
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_ARM_MODE := arm
|
|
|
|
LOCAL_PRELINK_MODULE := false
|
|
|
|
LOCAL_REQUIRED_MODULES := stroke
|
|
|
|
LOCAL_SHARED_LIBRARIES += libstrongswan libhydra
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|