Added Android.mk for whack.
authorTobias Brunner <tobias@strongswan.org>
Thu, 13 Oct 2011 16:33:03 +0000 (18:33 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 13 Oct 2011 16:33:03 +0000 (18:33 +0200)
Android.mk.in
src/whack/Android.mk [new file with mode: 0644]
src/whack/Makefile.am

index b63e0d3..4b6d485 100644 (file)
@@ -86,6 +86,7 @@ include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \
                libfreeswan \
                pluto \
                stroke \
+               whack \
                starter \
                ipsec \
        ))
diff --git a/src/whack/Android.mk b/src/whack/Android.mk
new file mode 100644 (file)
index 0000000..08d96a0
--- /dev/null
@@ -0,0 +1,28 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+# copy-n-paste from Makefile.am
+LOCAL_SRC_FILES := \
+whack.c whack.h
+
+# build whack ------------------------------------------------------------------
+
+LOCAL_C_INCLUDES += \
+       $(libvstr_PATH) \
+       $(strongswan_PATH)/src/libstrongswan \
+       $(strongswan_PATH)/src/libfreeswan \
+       $(strongswan_PATH)/src/libhydra \
+       $(strongswan_PATH)/src/pluto
+
+LOCAL_CFLAGS := $(strongswan_CFLAGS)
+
+LOCAL_MODULE := whack
+
+LOCAL_ARM_MODE := arm
+
+LOCAL_PRELINK_MODULE := false
+
+LOCAL_SHARED_LIBRARIES += libstrongswan libfreeswan
+
+include $(BUILD_EXECUTABLE)
+
index 316a833..8c03289 100644 (file)
@@ -1,6 +1,7 @@
 ipsec_PROGRAMS = whack
 
-whack_SOURCES = whack.c whack.h
+whack_SOURCES = \
+whack.c whack.h
 
 INCLUDES = \
 -I$(top_srcdir)/src/libstrongswan \