mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-29 04:55:07 +00:00
c269a00344
Build position-indepent executables, required for Android L (5.0+) They also work with kitkat. Add new maketarget "cross-android-old" that builds without PIE for older versions. Include both new and old versions in latest-android.zip. Add arm64. Hopefully solves github PR #14.
34 lines
857 B
Makefile
34 lines
857 B
Makefile
#
|
|
# iodine for Android
|
|
#
|
|
# by Marcel Bokhorst
|
|
# http://blog.bokhorst.biz/5123/computers-en-internet/iodine-for-android/
|
|
#
|
|
# cd iodine-0.6.0-rc1/src
|
|
# make base64u.h base64u.c
|
|
# .../ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk
|
|
#
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
HEAD_COMMIT = `git rev-parse --short HEAD`
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := iodine
|
|
LOCAL_SRC_FILES := tun.c dns.c read.c encoding.c login.c base32.c base64.c base64u.c base128.c md5.c common.c iodine.c client.c util.c
|
|
LOCAL_CFLAGS := -c -DANDROID -DLINUX -DIFCONFIGPATH=\"/system/bin/\" -Wall -DGITREVISION=\"$(HEAD_COMMIT)\"
|
|
LOCAL_LDLIBS := -lz
|
|
|
|
#Choose platform level (for PIE support)
|
|
ifeq (kitkat, $(strip $(MY_PLATFORM)))
|
|
APP_PLATFORM := android-16
|
|
LOCAL_CFLAGS += -fPIE
|
|
LOCAL_LDFLAGS += -fPIE -pie
|
|
else
|
|
APP_PLATFORM := android-3
|
|
endif
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|