diff --git a/Android.mk.in b/Android.mk.in index f03800910..bae53189a 100644 --- a/Android.mk.in +++ b/Android.mk.in @@ -83,4 +83,5 @@ include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \ libstrongswan \ libtncif \ libfreeswan \ + stroke \ )) diff --git a/src/stroke/Android.mk b/src/stroke/Android.mk new file mode 100644 index 000000000..833130e25 --- /dev/null +++ b/src/stroke/Android.mk @@ -0,0 +1,25 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) + +# copy-n-paste from Makefile.am +LOCAL_SRC_FILES := \ +stroke.c stroke_msg.h stroke_keywords.c stroke_keywords.h + +# build stroke ----------------------------------------------------------------- + +LOCAL_C_INCLUDES += \ + $(libvstr_PATH) \ + $(strongswan_PATH)/src/libstrongswan + +LOCAL_CFLAGS := $(strongswan_CFLAGS) + +LOCAL_MODULE := stroke + +LOCAL_ARM_MODE := arm + +LOCAL_PRELINK_MODULE := false + +LOCAL_SHARED_LIBRARIES += libstrongswan + +include $(BUILD_EXECUTABLE) + diff --git a/src/stroke/Makefile.am b/src/stroke/Makefile.am index 363cde717..6eee8cd6c 100644 --- a/src/stroke/Makefile.am +++ b/src/stroke/Makefile.am @@ -1,6 +1,8 @@ ipsec_PROGRAMS = stroke -stroke_SOURCES = stroke.c stroke_msg.h stroke_keywords.c stroke_keywords.h +stroke_SOURCES = \ +stroke.c stroke_msg.h stroke_keywords.c stroke_keywords.h + stroke_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la $(SOCKLIB) INCLUDES = -I$(top_srcdir)/src/libstrongswan EXTRA_DIST = stroke_keywords.txt