configure: Fix typo when enabling CPAN modules as dependency
[strongswan.git] / src / starter / Android.mk
index ac685cb..8c5d1a9 100644 (file)
@@ -2,32 +2,27 @@ LOCAL_PATH := $(call my-dir)
 include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am (update for LEX/YACC)
-LOCAL_SRC_FILES := \
-parser.c lexer.c ipsec-parser.h netkey.c args.h netkey.h \
-starterwhack.c starterwhack.h starterstroke.c invokepluto.c confread.c \
-starterstroke.h interfaces.c invokepluto.h confread.h interfaces.h args.c \
-keywords.c files.h keywords.h cmp.c starter.c cmp.h invokecharon.c \
-invokecharon.h loglite.c klips.c klips.h
+starter_SOURCES := \
+starter.c files.h \
+parser/parser.c parser/lexer.c parser/conf_parser.c parser/conf_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 += \
-       $(libvstr_PATH) \
        $(strongswan_PATH)/src/libhydra \
-       $(strongswan_PATH)/src/libfreeswan \
        $(strongswan_PATH)/src/libstrongswan \
-       $(strongswan_PATH)/src/libfreeswan \
-       $(strongswan_PATH)/src/pluto \
-       $(strongswan_PATH)/src/whack \
+       $(strongswan_PATH)/src/starter \
        $(strongswan_PATH)/src/stroke
 
-LOCAL_CFLAGS := $(strongswan_CFLAGS) -DSTART_CHARON \
+LOCAL_CFLAGS := $(strongswan_CFLAGS) \
+       -DIPSEC_SCRIPT='"ipsec"' \
        -DPLUGINS='"$(strongswan_STARTER_PLUGINS)"'
 
-ifneq ($(strongswan_BUILD_PLUTO),)
-LOCAL_CFLAGS += -DSTART_PLUTO
-endif
-
 LOCAL_MODULE := starter
 
 LOCAL_MODULE_TAGS := optional
@@ -37,11 +32,8 @@ LOCAL_ARM_MODE := arm
 LOCAL_PRELINK_MODULE := false
 
 LOCAL_REQUIRED_MODULES := stroke
-ifneq ($(strongswan_BUILD_PLUTO),)
-LOCAL_REQUIRED_MODULES += whack
-endif
 
-LOCAL_SHARED_LIBRARIES += libstrongswan libhydra libfreeswan
+LOCAL_SHARED_LIBRARIES += libstrongswan libhydra
 
 include $(BUILD_EXECUTABLE)