summaryrefslogtreecommitdiff
path: root/src/whack/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/whack/Android.mk')
-rw-r--r--src/whack/Android.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/whack/Android.mk b/src/whack/Android.mk
new file mode 100644
index 000000000..bf5ec0e98
--- /dev/null
+++ b/src/whack/Android.mk
@@ -0,0 +1,30 @@
+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_MODULE_TAGS := optional
+
+LOCAL_ARM_MODE := arm
+
+LOCAL_PRELINK_MODULE := false
+
+LOCAL_SHARED_LIBRARIES += libstrongswan libfreeswan
+
+include $(BUILD_EXECUTABLE)
+